amazonka-ssm-1.4.1: Amazon Simple Systems Management Service SDK.

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

Network.AWS.SSM.CreateAssociation

Contents

Description

Associates the specified SSM document with the specified instance.

When you associate an SSM document with an instance, the configuration agent 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:

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 # 
ToQuery CreateAssociation Source # 
ToPath CreateAssociation Source # 
ToHeaders CreateAssociation Source # 
type Rep CreateAssociation Source # 
type Rep CreateAssociation = D1 (MetaData "CreateAssociation" "Network.AWS.SSM.CreateAssociation" "amazonka-ssm-1.4.1-70T8KcbvPvzHaYlRwMOWSZ" False) (C1 (MetaCons "CreateAssociation'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_caParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text [Text])))) ((:*:) (S1 (MetaSel (Just Symbol "_caName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_caInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateAssociation Source # 

Request Lenses

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

The parameters for the documents runtime configuration.

caName :: Lens' CreateAssociation Text Source #

The name of the SSM document.

caInstanceId :: Lens' CreateAssociation Text Source #

The Windows Server instance ID.

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.4.1-70T8KcbvPvzHaYlRwMOWSZ" False) (C1 (MetaCons "CreateAssociationResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_carsAssociationDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AssociationDescription))) (S1 (MetaSel (Just Symbol "_carsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses