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 new version for a launch template. You can specify an existing version of launch template from which to base the new version.
Launch template versions are numbered in the order in which they are created. You cannot specify, change, or replace the numbering of launch template versions.
Synopsis
- createLaunchTemplateVersion :: RequestLaunchTemplateData -> CreateLaunchTemplateVersion
- data CreateLaunchTemplateVersion
- cltvLaunchTemplateName :: Lens' CreateLaunchTemplateVersion (Maybe Text)
- cltvClientToken :: Lens' CreateLaunchTemplateVersion (Maybe Text)
- cltvLaunchTemplateId :: Lens' CreateLaunchTemplateVersion (Maybe Text)
- cltvVersionDescription :: Lens' CreateLaunchTemplateVersion (Maybe Text)
- cltvSourceVersion :: Lens' CreateLaunchTemplateVersion (Maybe Text)
- cltvDryRun :: Lens' CreateLaunchTemplateVersion (Maybe Bool)
- cltvLaunchTemplateData :: Lens' CreateLaunchTemplateVersion RequestLaunchTemplateData
- createLaunchTemplateVersionResponse :: Int -> CreateLaunchTemplateVersionResponse
- data CreateLaunchTemplateVersionResponse
- cltvrsLaunchTemplateVersion :: Lens' CreateLaunchTemplateVersionResponse (Maybe LaunchTemplateVersion)
- cltvrsResponseStatus :: Lens' CreateLaunchTemplateVersionResponse Int
Creating a Request
createLaunchTemplateVersion Source #
Creates a value of CreateLaunchTemplateVersion
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cltvLaunchTemplateName
- The name of the launch template. You must specify either the launch template ID or launch template name in the request.cltvClientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency .cltvLaunchTemplateId
- The ID of the launch template. You must specify either the launch template ID or launch template name in the request.cltvVersionDescription
- A description for the version of the launch template.cltvSourceVersion
- The version number of the launch template version on which to base the new version. The new version inherits the same launch parameters as the source version, except for parameters that you specify in LaunchTemplateData.cltvDryRun
- 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
.cltvLaunchTemplateData
- The information for the launch template.
data CreateLaunchTemplateVersion Source #
See: createLaunchTemplateVersion
smart constructor.
Instances
Request Lenses
cltvLaunchTemplateName :: Lens' CreateLaunchTemplateVersion (Maybe Text) Source #
The name of the launch template. You must specify either the launch template ID or launch template name in the request.
cltvClientToken :: Lens' CreateLaunchTemplateVersion (Maybe Text) Source #
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency .
cltvLaunchTemplateId :: Lens' CreateLaunchTemplateVersion (Maybe Text) Source #
The ID of the launch template. You must specify either the launch template ID or launch template name in the request.
cltvVersionDescription :: Lens' CreateLaunchTemplateVersion (Maybe Text) Source #
A description for the version of the launch template.
cltvSourceVersion :: Lens' CreateLaunchTemplateVersion (Maybe Text) Source #
The version number of the launch template version on which to base the new version. The new version inherits the same launch parameters as the source version, except for parameters that you specify in LaunchTemplateData.
cltvDryRun :: Lens' CreateLaunchTemplateVersion (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
.
cltvLaunchTemplateData :: Lens' CreateLaunchTemplateVersion RequestLaunchTemplateData Source #
The information for the launch template.
Destructuring the Response
createLaunchTemplateVersionResponse Source #
Creates a value of CreateLaunchTemplateVersionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cltvrsLaunchTemplateVersion
- Information about the launch template version.cltvrsResponseStatus
- -- | The response status code.
data CreateLaunchTemplateVersionResponse Source #
See: createLaunchTemplateVersionResponse
smart constructor.
Instances
Response Lenses
cltvrsLaunchTemplateVersion :: Lens' CreateLaunchTemplateVersionResponse (Maybe LaunchTemplateVersion) Source #
Information about the launch template version.
cltvrsResponseStatus :: Lens' CreateLaunchTemplateVersionResponse Int Source #
- - | The response status code.