Method: Aws::Drs::Client#update_launch_configuration
- Defined in:
- lib/aws-sdk-drs/client.rb
#update_launch_configuration(params = {}) ⇒ Types::LaunchConfiguration
Updates a LaunchConfiguration by Source Server ID.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.update_launch_configuration({
copy_private_ip: false,
copy_tags: false,
launch_disposition: "STOPPED", # accepts STOPPED, STARTED
launch_into_instance_properties: {
launch_into_ec2_instance_id: "EC2InstanceID",
},
licensing: {
os_byol: false,
},
name: "SmallBoundedString",
post_launch_enabled: false,
source_server_id: "SourceServerID", # required
target_instance_type_right_sizing_method: "NONE", # accepts NONE, BASIC, IN_AWS
})
Response structure
Response structure
resp.copy_private_ip #=> Boolean
resp.copy_tags #=> Boolean
resp.ec2_launch_template_id #=> String
resp.launch_disposition #=> String, one of "STOPPED", "STARTED"
resp.launch_into_instance_properties.launch_into_ec2_instance_id #=> String
resp.licensing.os_byol #=> Boolean
resp.name #=> String
resp.post_launch_enabled #=> Boolean
resp.source_server_id #=> String
resp.target_instance_type_right_sizing_method #=> String, one of "NONE", "BASIC", "IN_AWS"
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:copy_private_ip
(Boolean)
—
Whether we should copy the Private IP of the Source Server to the Recovery Instance.
-
:copy_tags
(Boolean)
—
Whether we want to copy the tags of the Source Server to the EC2 machine of the Recovery Instance.
-
:launch_disposition
(String)
—
The state of the Recovery Instance in EC2 after the recovery operation.
-
:launch_into_instance_properties
(Types::LaunchIntoInstanceProperties)
—
Launch into existing instance properties.
-
:licensing
(Types::Licensing)
—
The licensing configuration to be used for this launch configuration.
-
:name
(String)
—
The name of the launch configuration.
-
:post_launch_enabled
(Boolean)
—
Whether we want to enable post-launch actions for the Source Server.
-
:source_server_id
(required, String)
—
The ID of the Source Server that we want to retrieve a Launch Configuration for.
-
:target_instance_type_right_sizing_method
(String)
—
Whether Elastic Disaster Recovery should try to automatically choose the instance type that best matches the OS, CPU, and RAM of your Source Server.
Returns:
-
(Types::LaunchConfiguration)
—
Returns a response object which responds to the following methods:
-
#copy_private_ip => Boolean
-
#copy_tags => Boolean
-
#ec2_launch_template_id => String
-
#launch_disposition => String
-
#launch_into_instance_properties => Types::LaunchIntoInstanceProperties
-
#licensing => Types::Licensing
-
#name => String
-
#post_launch_enabled => Boolean
-
#source_server_id => String
-
See Also:
3166 3167 3168 3169 |
# File 'lib/aws-sdk-drs/client.rb', line 3166 def update_launch_configuration(params = {}, options = {}) req = build_request(:update_launch_configuration, params) req.send_request(options) end |