amazonka-ssm-1.5.0: Amazon Simple Systems Manager (SSM) SDK.

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.SSM.CreateDocument

Contents

Description

Creates a Systems Manager document.

After you create a document, you can use CreateAssociation to associate it with one or more running instances.

Synopsis

Creating a Request

createDocument Source #

Creates a value of CreateDocument with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cdDocumentType - The type of document to create. Valid document types include: Policy, Automation, and Command.
  • cdContent - A valid JSON string.
  • cdName - A name for the Systems Manager document.

data CreateDocument Source #

See: createDocument smart constructor.

Instances

Eq CreateDocument Source # 
Data CreateDocument Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateDocument -> c CreateDocument #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateDocument #

toConstr :: CreateDocument -> Constr #

dataTypeOf :: CreateDocument -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateDocument) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateDocument) #

gmapT :: (forall b. Data b => b -> b) -> CreateDocument -> CreateDocument #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateDocument -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateDocument -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateDocument -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateDocument -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateDocument -> m CreateDocument #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateDocument -> m CreateDocument #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateDocument -> m CreateDocument #

Read CreateDocument Source # 
Show CreateDocument Source # 
Generic CreateDocument Source # 

Associated Types

type Rep CreateDocument :: * -> * #

Hashable CreateDocument Source # 
ToJSON CreateDocument Source # 
NFData CreateDocument Source # 

Methods

rnf :: CreateDocument -> () #

AWSRequest CreateDocument Source # 
ToQuery CreateDocument Source # 
ToPath CreateDocument Source # 
ToHeaders CreateDocument Source # 
type Rep CreateDocument Source # 
type Rep CreateDocument = D1 (MetaData "CreateDocument" "Network.AWS.SSM.CreateDocument" "amazonka-ssm-1.5.0-7otWUS4XVRaHT5J0sMcEDs" False) (C1 (MetaCons "CreateDocument'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cdDocumentType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DocumentType))) ((:*:) (S1 (MetaSel (Just Symbol "_cdContent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_cdName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateDocument Source # 

Request Lenses

cdDocumentType :: Lens' CreateDocument (Maybe DocumentType) Source #

The type of document to create. Valid document types include: Policy, Automation, and Command.

cdContent :: Lens' CreateDocument Text Source #

A valid JSON string.

cdName :: Lens' CreateDocument Text Source #

A name for the Systems Manager document.

Destructuring the Response

createDocumentResponse Source #

Creates a value of CreateDocumentResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateDocumentResponse Source #

See: createDocumentResponse smart constructor.

Instances

Eq CreateDocumentResponse Source # 
Data CreateDocumentResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateDocumentResponse -> c CreateDocumentResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateDocumentResponse #

toConstr :: CreateDocumentResponse -> Constr #

dataTypeOf :: CreateDocumentResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateDocumentResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateDocumentResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateDocumentResponse -> CreateDocumentResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateDocumentResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateDocumentResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateDocumentResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateDocumentResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateDocumentResponse -> m CreateDocumentResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateDocumentResponse -> m CreateDocumentResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateDocumentResponse -> m CreateDocumentResponse #

Read CreateDocumentResponse Source # 
Show CreateDocumentResponse Source # 
Generic CreateDocumentResponse Source # 
NFData CreateDocumentResponse Source # 

Methods

rnf :: CreateDocumentResponse -> () #

type Rep CreateDocumentResponse Source # 
type Rep CreateDocumentResponse = D1 (MetaData "CreateDocumentResponse" "Network.AWS.SSM.CreateDocument" "amazonka-ssm-1.5.0-7otWUS4XVRaHT5J0sMcEDs" False) (C1 (MetaCons "CreateDocumentResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cdrsDocumentDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DocumentDescription))) (S1 (MetaSel (Just Symbol "_cdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

cdrsDocumentDescription :: Lens' CreateDocumentResponse (Maybe DocumentDescription) Source #

Information about the Systems Manager document.

cdrsResponseStatus :: Lens' CreateDocumentResponse Int Source #

  • - | The response status code.