Method: Aws::Drs::Client#create_launch_configuration_template
- Defined in:
- lib/aws-sdk-drs/client.rb
#create_launch_configuration_template(params = {}) ⇒ Types::CreateLaunchConfigurationTemplateResponse
Creates a new Launch Configuration Template.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.create_launch_configuration_template({
copy_private_ip: false,
copy_tags: false,
export_bucket_arn: "ARN",
launch_disposition: "STOPPED", # accepts STOPPED, STARTED
launch_into_source_instance: false,
licensing: {
os_byol: false,
},
post_launch_enabled: false,
tags: {
"TagKey" => "TagValue",
},
target_instance_type_right_sizing_method: "NONE", # accepts NONE, BASIC, IN_AWS
})
Response structure
Response structure
resp.launch_configuration_template.arn #=> String
resp.launch_configuration_template.copy_private_ip #=> Boolean
resp.launch_configuration_template.copy_tags #=> Boolean
resp.launch_configuration_template.export_bucket_arn #=> String
resp.launch_configuration_template.launch_configuration_template_id #=> String
resp.launch_configuration_template.launch_disposition #=> String, one of "STOPPED", "STARTED"
resp.launch_configuration_template.launch_into_source_instance #=> Boolean
resp.launch_configuration_template.licensing.os_byol #=> Boolean
resp.launch_configuration_template.post_launch_enabled #=> Boolean
resp.launch_configuration_template.tags #=> Hash
resp.launch_configuration_template.tags["TagKey"] #=> String
resp.launch_configuration_template.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)
—
Copy private IP.
-
:copy_tags
(Boolean)
—
Copy tags.
-
:export_bucket_arn
(String)
—
S3 bucket ARN to export Source Network templates.
-
:launch_disposition
(String)
—
Launch disposition.
-
:launch_into_source_instance
(Boolean)
—
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.
-
:licensing
(Types::Licensing)
—
Licensing.
-
:post_launch_enabled
(Boolean)
—
Whether we want to activate post-launch actions.
-
:tags
(Hash<String,String>)
—
Request to associate tags during creation of a Launch Configuration Template.
-
:target_instance_type_right_sizing_method
(String)
—
Target instance type right-sizing method.
Returns:
-
(Types::CreateLaunchConfigurationTemplateResponse)
—
Returns a response object which responds to the following methods:
-
#launch_configuration_template => Types::LaunchConfigurationTemplate
-
See Also:
690 691 692 693 |
# File 'lib/aws-sdk-drs/client.rb', line 690 def create_launch_configuration_template(params = {}, options = {}) req = build_request(:create_launch_configuration_template, params) req.send_request(options) end |