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 |
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.
- modifyLaunchTemplate :: ModifyLaunchTemplate
- data ModifyLaunchTemplate
- mltLaunchTemplateName :: Lens' ModifyLaunchTemplate (Maybe Text)
- mltClientToken :: Lens' ModifyLaunchTemplate (Maybe Text)
- mltLaunchTemplateId :: Lens' ModifyLaunchTemplate (Maybe Text)
- mltDefaultVersion :: Lens' ModifyLaunchTemplate (Maybe Text)
- mltDryRun :: Lens' ModifyLaunchTemplate (Maybe Bool)
- modifyLaunchTemplateResponse :: Int -> ModifyLaunchTemplateResponse
- data ModifyLaunchTemplateResponse
- mltrsLaunchTemplate :: Lens' ModifyLaunchTemplateResponse (Maybe LaunchTemplate)
- mltrsResponseStatus :: Lens' ModifyLaunchTemplateResponse Int
Creating a Request
modifyLaunchTemplate :: ModifyLaunchTemplate Source #
Creates a value of ModifyLaunchTemplate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mltLaunchTemplateName
- The name of the launch template. You must specify either the launch template ID or launch template name in the request.mltClientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency .mltLaunchTemplateId
- The ID of the launch template. You must specify either the launch template ID or launch template name in the request.mltDefaultVersion
- The version number of the launch template to set as the default version.mltDryRun
- 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
.
data ModifyLaunchTemplate Source #
See: modifyLaunchTemplate
smart constructor.
Request Lenses
mltLaunchTemplateName :: Lens' ModifyLaunchTemplate (Maybe Text) Source #
The name of the launch template. You must specify either the launch template ID or launch template name in the request.
mltClientToken :: Lens' ModifyLaunchTemplate (Maybe Text) Source #
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency .
mltLaunchTemplateId :: Lens' ModifyLaunchTemplate (Maybe Text) Source #
The ID of the launch template. You must specify either the launch template ID or launch template name in the request.
mltDefaultVersion :: Lens' ModifyLaunchTemplate (Maybe Text) Source #
The version number of the launch template to set as the default version.
mltDryRun :: 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
.
Destructuring the Response
modifyLaunchTemplateResponse Source #
Creates a value of ModifyLaunchTemplateResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mltrsLaunchTemplate
- Information about the launch template.mltrsResponseStatus
- -- | The response status code.
data ModifyLaunchTemplateResponse Source #
See: modifyLaunchTemplateResponse
smart constructor.
Response Lenses
mltrsLaunchTemplate :: Lens' ModifyLaunchTemplateResponse (Maybe LaunchTemplate) Source #
Information about the launch template.
mltrsResponseStatus :: Lens' ModifyLaunchTemplateResponse Int Source #
- - | The response status code.