Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Modifies a launch template. You can specify which version of the launch template to set as the default version. When launching an instance, the default version applies when a launch template version is not specified.
Synopsis
- data ModifyLaunchTemplate = ModifyLaunchTemplate' {}
- newModifyLaunchTemplate :: ModifyLaunchTemplate
- modifyLaunchTemplate_clientToken :: Lens' ModifyLaunchTemplate (Maybe Text)
- modifyLaunchTemplate_defaultVersion :: Lens' ModifyLaunchTemplate (Maybe Text)
- modifyLaunchTemplate_dryRun :: Lens' ModifyLaunchTemplate (Maybe Bool)
- modifyLaunchTemplate_launchTemplateId :: Lens' ModifyLaunchTemplate (Maybe Text)
- modifyLaunchTemplate_launchTemplateName :: Lens' ModifyLaunchTemplate (Maybe Text)
- data ModifyLaunchTemplateResponse = ModifyLaunchTemplateResponse' {}
- newModifyLaunchTemplateResponse :: Int -> ModifyLaunchTemplateResponse
- modifyLaunchTemplateResponse_launchTemplate :: Lens' ModifyLaunchTemplateResponse (Maybe LaunchTemplate)
- modifyLaunchTemplateResponse_httpStatus :: Lens' ModifyLaunchTemplateResponse Int
Creating a Request
data ModifyLaunchTemplate Source #
See: newModifyLaunchTemplate
smart constructor.
ModifyLaunchTemplate' | |
|
Instances
newModifyLaunchTemplate :: ModifyLaunchTemplate Source #
Create a value of ModifyLaunchTemplate
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ModifyLaunchTemplate
, modifyLaunchTemplate_clientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency
of the request. For more information, see
Ensuring idempotency.
Constraint: Maximum 128 ASCII characters.
ModifyLaunchTemplate
, modifyLaunchTemplate_defaultVersion
- The version number of the launch template to set as the default version.
$sel:dryRun:ModifyLaunchTemplate'
, modifyLaunchTemplate_dryRun
- 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
.
ModifyLaunchTemplate
, modifyLaunchTemplate_launchTemplateId
- The ID of the launch template.
You must specify either the LaunchTemplateId
or the
LaunchTemplateName
, but not both.
ModifyLaunchTemplate
, modifyLaunchTemplate_launchTemplateName
- The name of the launch template.
You must specify either the LaunchTemplateName
or the
LaunchTemplateId
, but not both.
Request Lenses
modifyLaunchTemplate_clientToken :: Lens' ModifyLaunchTemplate (Maybe Text) Source #
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
Constraint: Maximum 128 ASCII characters.
modifyLaunchTemplate_defaultVersion :: Lens' ModifyLaunchTemplate (Maybe Text) Source #
The version number of the launch template to set as the default version.
modifyLaunchTemplate_dryRun :: Lens' ModifyLaunchTemplate (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
.
modifyLaunchTemplate_launchTemplateId :: Lens' ModifyLaunchTemplate (Maybe Text) Source #
The ID of the launch template.
You must specify either the LaunchTemplateId
or the
LaunchTemplateName
, but not both.
modifyLaunchTemplate_launchTemplateName :: Lens' ModifyLaunchTemplate (Maybe Text) Source #
The name of the launch template.
You must specify either the LaunchTemplateName
or the
LaunchTemplateId
, but not both.
Destructuring the Response
data ModifyLaunchTemplateResponse Source #
See: newModifyLaunchTemplateResponse
smart constructor.
ModifyLaunchTemplateResponse' | |
|
Instances
newModifyLaunchTemplateResponse Source #
Create a value of ModifyLaunchTemplateResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ModifyLaunchTemplateResponse
, modifyLaunchTemplateResponse_launchTemplate
- Information about the launch template.
$sel:httpStatus:ModifyLaunchTemplateResponse'
, modifyLaunchTemplateResponse_httpStatus
- The response's http status code.
Response Lenses
modifyLaunchTemplateResponse_launchTemplate :: Lens' ModifyLaunchTemplateResponse (Maybe LaunchTemplate) Source #
Information about the launch template.
modifyLaunchTemplateResponse_httpStatus :: Lens' ModifyLaunchTemplateResponse Int Source #
The response's http status code.