amazonka-ssm-1.4.4: 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.CreateActivation

Contents

Description

Registers your on-premises server or virtual machine with Amazon EC2 so that you can manage these resources using Run Command. An on-premises server or virtual machine that has been registered with EC2 is called a managed instance. For more information about activations, see Setting Up Managed Instances (Linux) or Setting Up Managed Instances (Windows) in the Amazon EC2 User Guide.

Synopsis

Creating a Request

createActivation Source #

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

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

data CreateActivation Source #

See: createActivation smart constructor.

Instances

Eq CreateActivation Source # 
Data CreateActivation Source # 

Methods

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

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

toConstr :: CreateActivation -> Constr #

dataTypeOf :: CreateActivation -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateActivation Source # 
Show CreateActivation Source # 
Generic CreateActivation Source # 
Hashable CreateActivation Source # 
NFData CreateActivation Source # 

Methods

rnf :: CreateActivation -> () #

AWSRequest CreateActivation Source # 
ToPath CreateActivation Source # 
ToHeaders CreateActivation Source # 
ToQuery CreateActivation Source # 
ToJSON CreateActivation Source # 
type Rep CreateActivation Source # 
type Rep CreateActivation = D1 (MetaData "CreateActivation" "Network.AWS.SSM.CreateActivation" "amazonka-ssm-1.4.4-4im17iL5NtDAOTBFqgVH72" False) (C1 (MetaCons "CreateActivation'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_caDefaultInstanceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_caRegistrationLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)))) ((:*:) (S1 (MetaSel (Just Symbol "_caExpirationDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX))) ((:*:) (S1 (MetaSel (Just Symbol "_caDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_caIAMRole") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs CreateActivation Source # 

Request Lenses

caDefaultInstanceName :: Lens' CreateActivation (Maybe Text) Source #

The name of the registered, managed instance as it will appear in the Amazon EC2 console or when you use the AWS command line tools to list EC2 resources.

caRegistrationLimit :: Lens' CreateActivation (Maybe Natural) Source #

Specify the maximum number of managed instances you want to register. The default value is 1 instance.

caExpirationDate :: Lens' CreateActivation (Maybe UTCTime) Source #

The date by which this activation request should expire. The default value is 24 hours.

caDescription :: Lens' CreateActivation (Maybe Text) Source #

A user-defined description of the resource that you want to register with Amazon EC2.

caIAMRole :: Lens' CreateActivation Text Source #

The Amazon Identity and Access Management (IAM) role that you want to assign to the managed instance.

Destructuring the Response

createActivationResponse Source #

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

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

data CreateActivationResponse Source #

See: createActivationResponse smart constructor.

Instances

Eq CreateActivationResponse Source # 
Data CreateActivationResponse Source # 

Methods

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

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

toConstr :: CreateActivationResponse -> Constr #

dataTypeOf :: CreateActivationResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateActivationResponse Source # 
Show CreateActivationResponse Source # 
Generic CreateActivationResponse Source # 
NFData CreateActivationResponse Source # 
type Rep CreateActivationResponse Source # 
type Rep CreateActivationResponse = D1 (MetaData "CreateActivationResponse" "Network.AWS.SSM.CreateActivation" "amazonka-ssm-1.4.4-4im17iL5NtDAOTBFqgVH72" False) (C1 (MetaCons "CreateActivationResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_carsActivationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_carsActivationCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_carsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

carsActivationId :: Lens' CreateActivationResponse (Maybe Text) Source #

The ID number generated by the system when it processed the activation. The activation ID functions like a user name.

carsActivationCode :: Lens' CreateActivationResponse (Maybe Text) Source #

The code the system generates when it processes the activation. The activation code functions like a password to validate the activation ID.