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

Copyright(c) 2013-2018 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.
  • cdTargetType - Specify a target type to define the kinds of resources the document can run on. For example, to run a document on EC2 instances, specify the following value: AWS::EC2::Instance. If you specify a value of '' the document can run on all types of resources. If you don't specify a value, the document can't run on any resources. For a list of valid resource types, see AWS Resource Types Reference in the AWS CloudFormation User Guide .
  • cdDocumentFormat - Specify the document format for the request. The document format can be either JSON or YAML. JSON is the default format.
  • cdContent - A valid JSON or YAML string.
  • cdName - A name for the Systems Manager document. Important: Do not use the following to begin the names of documents you create. They are reserved by AWS for use as document prefixes: * aws * amazon * amzn

data CreateDocument Source #

See: createDocument smart constructor.

Instances
Eq CreateDocument Source # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

Data CreateDocument Source # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

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 # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

Show CreateDocument Source # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

Generic CreateDocument Source # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

Associated Types

type Rep CreateDocument :: Type -> Type #

Hashable CreateDocument Source # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

ToJSON CreateDocument Source # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

AWSRequest CreateDocument Source # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

Associated Types

type Rs CreateDocument :: Type #

ToHeaders CreateDocument Source # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

ToPath CreateDocument Source # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

ToQuery CreateDocument Source # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

NFData CreateDocument Source # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

Methods

rnf :: CreateDocument -> () #

type Rep CreateDocument Source # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

type Rep CreateDocument = D1 (MetaData "CreateDocument" "Network.AWS.SSM.CreateDocument" "amazonka-ssm-1.6.1-7PbnocxNW5qAr7pEvzAy6Q" False) (C1 (MetaCons "CreateDocument'" PrefixI True) ((S1 (MetaSel (Just "_cdDocumentType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DocumentType)) :*: S1 (MetaSel (Just "_cdTargetType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_cdDocumentFormat") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DocumentFormat)) :*: (S1 (MetaSel (Just "_cdContent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cdName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateDocument Source # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

Request Lenses

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

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

cdTargetType :: Lens' CreateDocument (Maybe Text) Source #

Specify a target type to define the kinds of resources the document can run on. For example, to run a document on EC2 instances, specify the following value: AWS::EC2::Instance. If you specify a value of '' the document can run on all types of resources. If you don't specify a value, the document can't run on any resources. For a list of valid resource types, see AWS Resource Types Reference in the AWS CloudFormation User Guide .

cdDocumentFormat :: Lens' CreateDocument (Maybe DocumentFormat) Source #

Specify the document format for the request. The document format can be either JSON or YAML. JSON is the default format.

cdContent :: Lens' CreateDocument Text Source #

A valid JSON or YAML string.

cdName :: Lens' CreateDocument Text Source #

A name for the Systems Manager document. Important: Do not use the following to begin the names of documents you create. They are reserved by AWS for use as document prefixes: * aws * amazon * amzn

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 # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

Data CreateDocumentResponse Source # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

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 # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

Show CreateDocumentResponse Source # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

Generic CreateDocumentResponse Source # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

Associated Types

type Rep CreateDocumentResponse :: Type -> Type #

NFData CreateDocumentResponse Source # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

Methods

rnf :: CreateDocumentResponse -> () #

type Rep CreateDocumentResponse Source # 
Instance details

Defined in Network.AWS.SSM.CreateDocument

type Rep CreateDocumentResponse = D1 (MetaData "CreateDocumentResponse" "Network.AWS.SSM.CreateDocument" "amazonka-ssm-1.6.1-7PbnocxNW5qAr7pEvzAy6Q" False) (C1 (MetaCons "CreateDocumentResponse'" PrefixI True) (S1 (MetaSel (Just "_cdrsDocumentDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DocumentDescription)) :*: S1 (MetaSel (Just "_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.