| 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 |
Network.AWS.EC2.CreateLaunchTemplate
Description
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.
Synopsis
- 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
Arguments
| :: Text | |
| -> RequestLaunchTemplateData | |
| -> CreateLaunchTemplate |
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 #
See: createLaunchTemplate smart constructor.
Instances
Request Lenses
cltClientToken :: Lens' CreateLaunchTemplate (Maybe Text) #
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency .
cltVersionDescription :: Lens' CreateLaunchTemplate (Maybe Text) #
A description for the first version of the launch template.
cltDryRun :: Lens' CreateLaunchTemplate (Maybe Bool) #
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 #
A name for the launch template.
cltLaunchTemplateData :: Lens' CreateLaunchTemplate RequestLaunchTemplateData #
The information for the launch template.
Destructuring the Response
createLaunchTemplateResponse #
Arguments
| :: Int | |
| -> CreateLaunchTemplateResponse |
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 #
See: createLaunchTemplateResponse smart constructor.
Instances
Response Lenses
cltrsLaunchTemplate :: Lens' CreateLaunchTemplateResponse (Maybe LaunchTemplate) #
Information about the launch template.
cltrsResponseStatus :: Lens' CreateLaunchTemplateResponse Int #
- - | The response status code.