Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- createActivation :: Text -> CreateActivation
- data CreateActivation
- caDefaultInstanceName :: Lens' CreateActivation (Maybe Text)
- caRegistrationLimit :: Lens' CreateActivation (Maybe Natural)
- caExpirationDate :: Lens' CreateActivation (Maybe UTCTime)
- caDescription :: Lens' CreateActivation (Maybe Text)
- caIAMRole :: Lens' CreateActivation Text
- createActivationResponse :: Int -> CreateActivationResponse
- data CreateActivationResponse
- carsActivationId :: Lens' CreateActivationResponse (Maybe Text)
- carsActivationCode :: Lens' CreateActivationResponse (Maybe Text)
- carsResponseStatus :: Lens' CreateActivationResponse Int
Creating a Request
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.
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.
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.
carsResponseStatus :: Lens' CreateActivationResponse Int Source #
The response status code.