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 #

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 #

See: createAssociation smart constructor.

Instances
Eq CreateAssociation # 
Instance details

Defined in Network.AWS.SSM.CreateAssociation

Data CreateAssociation # 
Instance details

Defined in Network.AWS.SSM.CreateAssociation

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

Defined in Network.AWS.SSM.CreateAssociation

Show CreateAssociation # 
Instance details

Defined in Network.AWS.SSM.CreateAssociation

Generic CreateAssociation # 
Instance details

Defined in Network.AWS.SSM.CreateAssociation

Associated Types

type Rep CreateAssociation :: * -> * #

Hashable CreateAssociation # 
Instance details

Defined in Network.AWS.SSM.CreateAssociation

ToJSON CreateAssociation # 
Instance details

Defined in Network.AWS.SSM.CreateAssociation

AWSRequest CreateAssociation # 
Instance details

Defined in Network.AWS.SSM.CreateAssociation

Associated Types

type Rs CreateAssociation :: * #

ToHeaders CreateAssociation # 
Instance details

Defined in Network.AWS.SSM.CreateAssociation

ToPath CreateAssociation # 
Instance details

Defined in Network.AWS.SSM.CreateAssociation

ToQuery CreateAssociation # 
Instance details

Defined in Network.AWS.SSM.CreateAssociation

NFData CreateAssociation # 
Instance details

Defined in Network.AWS.SSM.CreateAssociation

Methods

rnf :: CreateAssociation -> () #

type Rep CreateAssociation # 
Instance details

Defined in Network.AWS.SSM.CreateAssociation

type Rs CreateAssociation # 
Instance details

Defined in Network.AWS.SSM.CreateAssociation

Request Lenses

caScheduleExpression :: Lens' CreateAssociation (Maybe Text) #

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

caOutputLocation :: Lens' CreateAssociation (Maybe InstanceAssociationOutputLocation) #

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

caTargets :: Lens' CreateAssociation [Target] #

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

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

The parameters for the documents runtime configuration.

caDocumentVersion :: Lens' CreateAssociation (Maybe Text) #

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) #

Specify a descriptive name for the association.

caName :: Lens' CreateAssociation Text #

The name of the Systems Manager document.

Destructuring the Response

createAssociationResponse #

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 #

See: createAssociationResponse smart constructor.

Instances
Eq CreateAssociationResponse # 
Instance details

Defined in Network.AWS.SSM.CreateAssociation

Data CreateAssociationResponse # 
Instance details

Defined in Network.AWS.SSM.CreateAssociation

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

Defined in Network.AWS.SSM.CreateAssociation

Show CreateAssociationResponse # 
Instance details

Defined in Network.AWS.SSM.CreateAssociation

Generic CreateAssociationResponse # 
Instance details

Defined in Network.AWS.SSM.CreateAssociation

Associated Types

type Rep CreateAssociationResponse :: * -> * #

NFData CreateAssociationResponse # 
Instance details

Defined in Network.AWS.SSM.CreateAssociation

type Rep CreateAssociationResponse # 
Instance details

Defined in Network.AWS.SSM.CreateAssociation

type Rep CreateAssociationResponse = D1 (MetaData "CreateAssociationResponse" "Network.AWS.SSM.CreateAssociation" "amazonka-ssm-1.6.0-2O4V6sSpPonKM5mzsQDhXT" False) (C1 (MetaCons "CreateAssociationResponse'" PrefixI True) (S1 (MetaSel (Just "_crsAssociationDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AssociationDescription)) :*: S1 (MetaSel (Just "_crsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

crsResponseStatus :: Lens' CreateAssociationResponse Int #

  • - | The response status code.