GetLaunchConfiguration - AWS Elastic Disaster Recovery

GetLaunchConfiguration

Gets a LaunchConfiguration, filtered by Source Server IDs.

Request Syntax

POST /GetLaunchConfiguration HTTP/1.1 Content-type: application/json { "sourceServerID": "string" }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

sourceServerID

The ID of the Source Server that we want to retrieve a Launch Configuration for.

Type: String

Length Constraints: Fixed length of 19.

Pattern: ^s-[0-9a-zA-Z]{17}$

Required: Yes

Response Syntax

HTTP/1.1 200 Content-type: application/json { "copyPrivateIp": boolean, "copyTags": boolean, "ec2LaunchTemplateID": "string", "launchDisposition": "string", "launchIntoInstanceProperties": { "launchIntoEC2InstanceID": "string" }, "licensing": { "osByol": boolean }, "name": "string", "postLaunchEnabled": boolean, "sourceServerID": "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.

copyPrivateIp

Whether we should copy the Private IP of the Source Server to the Recovery Instance.

Type: Boolean

copyTags

Whether we want to copy the tags of the Source Server to the EC2 machine of the Recovery Instance.

Type: Boolean

ec2LaunchTemplateID

The EC2 launch template ID of this launch configuration.

Type: String

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

launchDisposition

The state of the Recovery Instance in EC2 after the recovery operation.

Type: String

Valid Values: STOPPED | STARTED

launchIntoInstanceProperties

Launch into existing instance properties.

Type: LaunchIntoInstanceProperties object

licensing

The licensing configuration to be used for this launch configuration.

Type: Licensing object

name

The name of the launch configuration.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 128.

postLaunchEnabled

Whether we want to activate post-launch actions for the Source Server.

Type: Boolean

sourceServerID

The ID of the Source Server for this launch configuration.

Type: String

Length Constraints: Fixed length of 19.

Pattern: ^s-[0-9a-zA-Z]{17}$

targetInstanceTypeRightSizingMethod

Whether Elastic Disaster Recovery should try to automatically choose the instance type that best matches the OS, CPU, and RAM of your Source Server.

Type: String

Valid Values: NONE | BASIC | IN_AWS

Errors

For information about the errors that are common to all actions, see Common Errors.

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

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: