Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a launch template. A launch template contains the parameters to launch an instance. When you launch an instance using RunInstances
, you can specify a launch template instead of providing the launch parameters in the request.
- createLaunchTemplate :: Text -> RequestLaunchTemplateData -> CreateLaunchTemplate
- data CreateLaunchTemplate
- cltClientToken :: Lens' CreateLaunchTemplate (Maybe Text)
- cltVersionDescription :: Lens' CreateLaunchTemplate (Maybe Text)
- cltDryRun :: Lens' CreateLaunchTemplate (Maybe Bool)
- cltLaunchTemplateName :: Lens' CreateLaunchTemplate Text
- cltLaunchTemplateData :: Lens' CreateLaunchTemplate RequestLaunchTemplateData
- createLaunchTemplateResponse :: Int -> CreateLaunchTemplateResponse
- data CreateLaunchTemplateResponse
- cltrsLaunchTemplate :: Lens' CreateLaunchTemplateResponse (Maybe LaunchTemplate)
- cltrsResponseStatus :: Lens' CreateLaunchTemplateResponse Int
Creating a Request
Creates a value of CreateLaunchTemplate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cltClientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency .cltVersionDescription
- A description for the first version of the launch template.cltDryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.cltLaunchTemplateName
- A name for the launch template.cltLaunchTemplateData
- The information for the launch template.
data CreateLaunchTemplate Source #
See: createLaunchTemplate
smart constructor.
Request Lenses
cltClientToken :: Lens' CreateLaunchTemplate (Maybe Text) Source #
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency .
cltVersionDescription :: Lens' CreateLaunchTemplate (Maybe Text) Source #
A description for the first version of the launch template.
cltDryRun :: Lens' CreateLaunchTemplate (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
cltLaunchTemplateName :: Lens' CreateLaunchTemplate Text Source #
A name for the launch template.
cltLaunchTemplateData :: Lens' CreateLaunchTemplate RequestLaunchTemplateData Source #
The information for the launch template.
Destructuring the Response
createLaunchTemplateResponse Source #
Creates a value of CreateLaunchTemplateResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cltrsLaunchTemplate
- Information about the launch template.cltrsResponseStatus
- -- | The response status code.
data CreateLaunchTemplateResponse Source #
See: createLaunchTemplateResponse
smart constructor.
Response Lenses
cltrsLaunchTemplate :: Lens' CreateLaunchTemplateResponse (Maybe LaunchTemplate) Source #
Information about the launch template.
cltrsResponseStatus :: Lens' CreateLaunchTemplateResponse Int Source #
- - | The response status code.