amazonka-ssm-1.6.0: 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.CreateAssociation

Contents

Description

Associates the specified Systems Manager document with the specified instances or targets.

When you associate a document with one or more instances using instance IDs or tags, the SSM Agent running on the instance processes the document and configures the instance as specified.

If you associate a document with an instance that already has an associated document, the system throws the AssociationAlreadyExists exception.

Synopsis

Creating a Request

createAssociation Source #

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

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

  • caInstanceId - The instance ID.
  • caScheduleExpression - A cron expression when the association will be applied to the target(s).
  • caOutputLocation - An Amazon S3 bucket where you want to store the output details of the request.
  • caTargets - The targets (either instances or tags) for the association.
  • caParameters - The parameters for the documents runtime configuration.
  • caDocumentVersion - The document version you want to associate with the target(s). Can be a specific version or the default version.
  • caAssociationName - Specify a descriptive name for the association.
  • caName - The name of the Systems Manager document.

data CreateAssociation Source #

See: createAssociation smart constructor.

Instances

Eq CreateAssociation Source # 
Data CreateAssociation Source # 

Methods

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

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

toConstr :: CreateAssociation -> Constr #

dataTypeOf :: CreateAssociation -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateAssociation Source # 
Show CreateAssociation Source # 
Generic CreateAssociation Source # 
Hashable CreateAssociation Source # 
ToJSON CreateAssociation Source # 
NFData CreateAssociation Source # 

Methods

rnf :: CreateAssociation -> () #

AWSRequest CreateAssociation Source # 
ToHeaders CreateAssociation Source # 
ToPath CreateAssociation Source # 
ToQuery CreateAssociation Source # 
type Rep CreateAssociation Source # 
type Rs CreateAssociation Source # 

Request Lenses

caScheduleExpression :: Lens' CreateAssociation (Maybe Text) Source #

A cron expression when the association will be applied to the target(s).

caOutputLocation :: Lens' CreateAssociation (Maybe InstanceAssociationOutputLocation) Source #

An Amazon S3 bucket where you want to store the output details of the request.

caTargets :: Lens' CreateAssociation [Target] Source #

The targets (either instances or tags) for the association.

caParameters :: Lens' CreateAssociation (HashMap Text [Text]) Source #

The parameters for the documents runtime configuration.

caDocumentVersion :: Lens' CreateAssociation (Maybe Text) Source #

The document version you want to associate with the target(s). Can be a specific version or the default version.

caAssociationName :: Lens' CreateAssociation (Maybe Text) Source #

Specify a descriptive name for the association.

caName :: Lens' CreateAssociation Text Source #

The name of the Systems Manager document.

Destructuring the Response

createAssociationResponse Source #

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

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

data CreateAssociationResponse Source #

See: createAssociationResponse smart constructor.

Instances

Eq CreateAssociationResponse Source # 
Data CreateAssociationResponse Source # 

Methods

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

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

toConstr :: CreateAssociationResponse -> Constr #

dataTypeOf :: CreateAssociationResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateAssociationResponse Source # 
Show CreateAssociationResponse Source # 
Generic CreateAssociationResponse Source # 
NFData CreateAssociationResponse Source # 
type Rep CreateAssociationResponse Source # 
type Rep CreateAssociationResponse = D1 * (MetaData "CreateAssociationResponse" "Network.AWS.SSM.CreateAssociation" "amazonka-ssm-1.6.0-FkXaKF9jjpY64HF15tLQlO" False) (C1 * (MetaCons "CreateAssociationResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_crsAssociationDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe AssociationDescription))) (S1 * (MetaSel (Just Symbol "_crsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses