CreateLaunchConfigurationTemplate - AWS Elastic Disaster Recovery

CreateLaunchConfigurationTemplate

Creates a new Launch Configuration Template.

Request Syntax

POST /CreateLaunchConfigurationTemplate HTTP/1.1 Content-type: application/json { "copyPrivateIp": boolean, "copyTags": boolean, "exportBucketArn": "string", "launchDisposition": "string", "launchIntoSourceInstance": boolean, "licensing": { "osByol": boolean }, "postLaunchEnabled": boolean, "tags": { "string" : "string" }, "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

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

tags

Request to associate tags during creation of a Launch Configuration Template.

Type: String to string map

Key Length Constraints: Minimum length of 0. Maximum length of 256.

Value Length Constraints: Minimum length of 0. Maximum length of 256.

Required: No

targetInstanceTypeRightSizingMethod

Target instance type right-sizing method.

Type: String

Valid Values: NONE | BASIC | IN_AWS

Required: No

Response Syntax

HTTP/1.1 201 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 201 response.

The following data is returned in JSON format by the service.

launchConfigurationTemplate

Created 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

ServiceQuotaExceededException

The request could not be completed because its exceeded the service quota.

HTTP Status Code: 402

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: