UpdateLaunchConfigurationTemplate
Updates an existing Launch Configuration Template by ID.
Request Syntax
POST /UpdateLaunchConfigurationTemplate HTTP/1.1
Content-type: application/json
{
"copyPrivateIp": boolean
,
"copyTags": boolean
,
"exportBucketArn": "string
",
"launchConfigurationTemplateID": "string
",
"launchDisposition": "string
",
"launchIntoSourceInstance": boolean
,
"licensing": {
"osByol": boolean
},
"postLaunchEnabled": boolean
,
"targetInstanceTypeRightSizingMethod": "string
"
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
- copyPrivateIp
-
Copy private IP.
Type: Boolean
Required: No
- copyTags
-
Copy tags.
Type: Boolean
Required: No
- exportBucketArn
-
S3 bucket ARN to export Source Network templates.
Type: String
Length Constraints: Minimum length of 20. Maximum length of 2048.
Pattern:
^arn:.{16,2044}$
Required: No
- launchConfigurationTemplateID
-
Launch Configuration Template ID.
Type: String
Length Constraints: Fixed length of 21.
Pattern:
^lct-[0-9a-zA-Z]{17}$
Required: Yes
- launchDisposition
-
Launch disposition.
Type: String
Valid Values:
STOPPED | STARTED
Required: No
- launchIntoSourceInstance
-
DRS will set the 'launch into instance ID' of any source server when performing a drill, recovery or failback to the previous region or availability zone, using the instance ID of the source instance.
Type: Boolean
Required: No
- licensing
-
Licensing.
Type: Licensing object
Required: No
- postLaunchEnabled
-
Whether we want to activate post-launch actions.
Type: Boolean
Required: No
- targetInstanceTypeRightSizingMethod
-
Target instance type right-sizing method.
Type: String
Valid Values:
NONE | BASIC | IN_AWS
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"launchConfigurationTemplate": {
"arn": "string",
"copyPrivateIp": boolean,
"copyTags": boolean,
"exportBucketArn": "string",
"launchConfigurationTemplateID": "string",
"launchDisposition": "string",
"launchIntoSourceInstance": boolean,
"licensing": {
"osByol": boolean
},
"postLaunchEnabled": boolean,
"tags": {
"string" : "string"
},
"targetInstanceTypeRightSizingMethod": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- launchConfigurationTemplate
-
Updated Launch Configuration Template.
Type: LaunchConfigurationTemplate object
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDeniedException
-
You do not have sufficient access to perform this action.
HTTP Status Code: 403
- InternalServerException
-
The request processing has failed because of an unknown error, exception or failure.
HTTP Status Code: 500
- ResourceNotFoundException
-
The resource for this operation was not found.
HTTP Status Code: 404
- ThrottlingException
-
The request was denied due to request throttling.
HTTP Status Code: 429
- UninitializedAccountException
-
The account performing the request has not been initialized.
HTTP Status Code: 400
- ValidationException
-
The input fails to satisfy the constraints specified by the AWS service.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: