Class: AWSCDK::EC2::LaunchTemplateProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/launch_template_props.rb

Overview

Properties of a LaunchTemplate.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(associate_public_ip_address: nil, block_devices: nil, cpu_credits: nil, detailed_monitoring: nil, disable_api_termination: nil, ebs_optimized: nil, hibernation_configured: nil, http_endpoint: nil, http_protocol_ipv6: nil, http_put_response_hop_limit: nil, http_tokens: nil, instance_initiated_shutdown_behavior: nil, instance_metadata_tags: nil, instance_profile: nil, instance_type: nil, key_name: nil, key_pair: nil, launch_template_name: nil, machine_image: nil, nitro_enclave_enabled: nil, placement_group: nil, require_imdsv2: nil, role: nil, security_group: nil, spot_options: nil, user_data: nil, version_description: nil) ⇒ LaunchTemplateProps

Returns a new instance of LaunchTemplateProps.

Parameters:

  • associate_public_ip_address (Boolean, nil) (defaults to: nil)

    Whether instances should have a public IP addresses associated with them.

  • block_devices (Array<AWSCDK::EC2::BlockDevice>, nil) (defaults to: nil)

    Specifies how block devices are exposed to the instance. You can specify virtual devices and EBS volumes.

  • cpu_credits (AWSCDK::EC2::CpuCredits, nil) (defaults to: nil)

    CPU credit type for burstable EC2 instance types.

  • detailed_monitoring (Boolean, nil) (defaults to: nil)

    If set to true, then detailed monitoring will be enabled on instances created with this launch template.

  • disable_api_termination (Boolean, nil) (defaults to: nil)

    If you set this parameter to true, you cannot terminate the instances launched with this launch template using the Amazon EC2 console, CLI, or API;

  • ebs_optimized (Boolean, nil) (defaults to: nil)

    Indicates whether the instances are optimized for Amazon EBS I/O.

  • hibernation_configured (Boolean, nil) (defaults to: nil)

    If you set this parameter to true, the instance is enabled for hibernation.

  • http_endpoint (Boolean, nil) (defaults to: nil)

    Enables or disables the HTTP metadata endpoint on your instances.

  • http_protocol_ipv6 (Boolean, nil) (defaults to: nil)

    Enables or disables the IPv6 endpoint for the instance metadata service.

  • http_put_response_hop_limit (Numeric, nil) (defaults to: nil)

    The desired HTTP PUT response hop limit for instance metadata requests.

  • http_tokens (AWSCDK::EC2::LaunchTemplateHttpTokens, nil) (defaults to: nil)

    The state of token usage for your instance metadata requests.

  • instance_initiated_shutdown_behavior (AWSCDK::EC2::InstanceInitiatedShutdownBehavior, nil) (defaults to: nil)

    Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

  • instance_metadata_tags (Boolean, nil) (defaults to: nil)

    Set to enabled to allow access to instance tags from the instance metadata.

  • instance_profile (AWSCDK::IAM::IInstanceProfile, nil) (defaults to: nil)

    The instance profile used to pass role information to EC2 instances.

  • instance_type (AWSCDK::EC2::InstanceType, nil) (defaults to: nil)

    Type of instance to launch.

  • key_name (String, nil) (defaults to: nil)

    Name of SSH keypair to grant access to instance.

  • key_pair (AWSCDK::EC2::IKeyPair, nil) (defaults to: nil)

    The SSH keypair to grant access to the instance.

  • launch_template_name (String, nil) (defaults to: nil)

    Name for this launch template.

  • machine_image (AWSCDK::EC2::IMachineImage, nil) (defaults to: nil)

    The AMI that will be used by instances.

  • nitro_enclave_enabled (Boolean, nil) (defaults to: nil)

    If this parameter is set to true, the instance is enabled for AWS Nitro Enclaves;

  • placement_group (AWSCDK::Interfaces::AWSEC2::IPlacementGroupRef, nil) (defaults to: nil)

    The placement group that you want to launch the instance into.

  • require_imdsv2 (Boolean, nil) (defaults to: nil)

    Whether IMDSv2 should be required on launched instances.

  • role (AWSCDK::IAM::IRole, nil) (defaults to: nil)

    An IAM role to associate with the instance profile that is used by instances.

  • security_group (AWSCDK::EC2::ISecurityGroup, nil) (defaults to: nil)

    Security group to assign to instances created with the launch template.

  • spot_options (AWSCDK::EC2::LaunchTemplateSpotOptions, nil) (defaults to: nil)

    If this property is defined, then the Launch Template's InstanceMarketOptions will be set to use Spot instances, and the options for the Spot instances will be as defined.

  • user_data (AWSCDK::EC2::UserData, nil) (defaults to: nil)

    The user data to make available to the instance.

  • version_description (String, nil) (defaults to: nil)

    A description for the first version of the launch template.



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'ec2/launch_template_props.rb', line 34

def initialize(associate_public_ip_address: nil, block_devices: nil, cpu_credits: nil, detailed_monitoring: nil, disable_api_termination: nil, ebs_optimized: nil, hibernation_configured: nil, http_endpoint: nil, http_protocol_ipv6: nil, http_put_response_hop_limit: nil, http_tokens: nil, instance_initiated_shutdown_behavior: nil, instance_metadata_tags: nil, instance_profile: nil, instance_type: nil, key_name: nil, key_pair: nil, launch_template_name: nil, machine_image: nil, nitro_enclave_enabled: nil, placement_group: nil, require_imdsv2: nil, role: nil, security_group: nil, spot_options: nil, user_data: nil, version_description: nil)
  @associate_public_ip_address = associate_public_ip_address
  Jsii::Type.check_type(@associate_public_ip_address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "associatePublicIpAddress") unless @associate_public_ip_address.nil?
  @block_devices = block_devices.is_a?(Array) ? block_devices.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::EC2::BlockDevice.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : block_devices
  Jsii::Type.check_type(@block_devices, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuQmxvY2tEZXZpY2UifSwia2luZCI6ImFycmF5In19")), "blockDevices") unless @block_devices.nil?
  @cpu_credits = cpu_credits
  Jsii::Type.check_type(@cpu_credits, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkNwdUNyZWRpdHMifQ==")), "cpuCredits") unless @cpu_credits.nil?
  @detailed_monitoring = detailed_monitoring
  Jsii::Type.check_type(@detailed_monitoring, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "detailedMonitoring") unless @detailed_monitoring.nil?
  @disable_api_termination = disable_api_termination
  Jsii::Type.check_type(@disable_api_termination, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "disableApiTermination") unless @disable_api_termination.nil?
  @ebs_optimized = ebs_optimized
  Jsii::Type.check_type(@ebs_optimized, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "ebsOptimized") unless @ebs_optimized.nil?
  @hibernation_configured = hibernation_configured
  Jsii::Type.check_type(@hibernation_configured, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "hibernationConfigured") unless @hibernation_configured.nil?
  @http_endpoint = http_endpoint
  Jsii::Type.check_type(@http_endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "httpEndpoint") unless @http_endpoint.nil?
  @http_protocol_ipv6 = http_protocol_ipv6
  Jsii::Type.check_type(@http_protocol_ipv6, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "httpProtocolIpv6") unless @http_protocol_ipv6.nil?
  @http_put_response_hop_limit = http_put_response_hop_limit
  Jsii::Type.check_type(@http_put_response_hop_limit, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "httpPutResponseHopLimit") unless @http_put_response_hop_limit.nil?
  @http_tokens = http_tokens
  Jsii::Type.check_type(@http_tokens, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkxhdW5jaFRlbXBsYXRlSHR0cFRva2VucyJ9")), "httpTokens") unless @http_tokens.nil?
  @instance_initiated_shutdown_behavior = instance_initiated_shutdown_behavior
  Jsii::Type.check_type(@instance_initiated_shutdown_behavior, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkluc3RhbmNlSW5pdGlhdGVkU2h1dGRvd25CZWhhdmlvciJ9")), "instanceInitiatedShutdownBehavior") unless @instance_initiated_shutdown_behavior.nil?
  @instance_metadata_tags = 
  Jsii::Type.check_type(@instance_metadata_tags, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "instanceMetadataTags") unless @instance_metadata_tags.nil?
  @instance_profile = instance_profile
  Jsii::Type.check_type(@instance_profile, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklJbnN0YW5jZVByb2ZpbGUifQ==")), "instanceProfile") unless @instance_profile.nil?
  @instance_type = instance_type
  Jsii::Type.check_type(@instance_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkluc3RhbmNlVHlwZSJ9")), "instanceType") unless @instance_type.nil?
  @key_name = key_name
  Jsii::Type.check_type(@key_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "keyName") unless @key_name.nil?
  @key_pair = key_pair
  Jsii::Type.check_type(@key_pair, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLklLZXlQYWlyIn0=")), "keyPair") unless @key_pair.nil?
  @launch_template_name = launch_template_name
  Jsii::Type.check_type(@launch_template_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "launchTemplateName") unless @launch_template_name.nil?
  @machine_image = machine_image
  Jsii::Type.check_type(@machine_image, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLklNYWNoaW5lSW1hZ2UifQ==")), "machineImage") unless @machine_image.nil?
  @nitro_enclave_enabled = nitro_enclave_enabled
  Jsii::Type.check_type(@nitro_enclave_enabled, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "nitroEnclaveEnabled") unless @nitro_enclave_enabled.nil?
  @placement_group = placement_group
  Jsii::Type.check_type(@placement_group, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVBsYWNlbWVudEdyb3VwUmVmIn0=")), "placementGroup") unless @placement_group.nil?
  @require_imdsv2 = require_imdsv2
  Jsii::Type.check_type(@require_imdsv2, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "requireImdsv2") unless @require_imdsv2.nil?
  @role = role
  Jsii::Type.check_type(@role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklSb2xlIn0=")), "role") unless @role.nil?
  @security_group = security_group
  Jsii::Type.check_type(@security_group, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLklTZWN1cml0eUdyb3VwIn0=")), "securityGroup") unless @security_group.nil?
  @spot_options = spot_options.is_a?(Hash) ? ::AWSCDK::EC2::LaunchTemplateSpotOptions.new(**spot_options.transform_keys(&:to_sym)) : spot_options
  Jsii::Type.check_type(@spot_options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkxhdW5jaFRlbXBsYXRlU3BvdE9wdGlvbnMifQ==")), "spotOptions") unless @spot_options.nil?
  @user_data = user_data
  Jsii::Type.check_type(@user_data, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLlVzZXJEYXRhIn0=")), "userData") unless @user_data.nil?
  @version_description = version_description
  Jsii::Type.check_type(@version_description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "versionDescription") unless @version_description.nil?
end

Instance Attribute Details

#associate_public_ip_addressBoolean? (readonly)

Note:

Default: - Use subnet settings

Whether instances should have a public IP addresses associated with them.

Returns:

  • (Boolean, nil)


95
96
97
# File 'ec2/launch_template_props.rb', line 95

def associate_public_ip_address
  @associate_public_ip_address
end

#block_devicesArray<AWSCDK::EC2::BlockDevice>? (readonly)

Note:

Default: - Uses the block device mapping of the AMI

Specifies how block devices are exposed to the instance. You can specify virtual devices and EBS volumes.

Each instance that is launched has an associated root device volume, either an Amazon EBS volume or an instance store volume. You can use block device mappings to specify additional EBS volumes or instance store volumes to attach to an instance when it is launched.



106
107
108
# File 'ec2/launch_template_props.rb', line 106

def block_devices
  @block_devices
end

#cpu_creditsAWSCDK::EC2::CpuCredits? (readonly)

Note:

Default: - No credit type is specified in the Launch Template.

CPU credit type for burstable EC2 instance types.



112
113
114
# File 'ec2/launch_template_props.rb', line 112

def cpu_credits
  @cpu_credits
end

#detailed_monitoringBoolean? (readonly)

Note:

Default: False - Detailed monitoring is disabled.

If set to true, then detailed monitoring will be enabled on instances created with this launch template.



118
119
120
# File 'ec2/launch_template_props.rb', line 118

def detailed_monitoring
  @detailed_monitoring
end

#disable_api_terminationBoolean? (readonly)

Note:

Default: - The API termination setting is not specified in the Launch Template.

If you set this parameter to true, you cannot terminate the instances launched with this launch template using the Amazon EC2 console, CLI, or API;

otherwise, you can.

Returns:

  • (Boolean, nil)


125
126
127
# File 'ec2/launch_template_props.rb', line 125

def disable_api_termination
  @disable_api_termination
end

#ebs_optimizedBoolean? (readonly)

Note:

Default: - EBS optimization is not specified in the launch template.

Indicates whether the instances are optimized for Amazon EBS I/O.

This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.

Returns:

  • (Boolean, nil)


134
135
136
# File 'ec2/launch_template_props.rb', line 134

def ebs_optimized
  @ebs_optimized
end

#hibernation_configuredBoolean? (readonly)

Note:

Default: - Hibernation configuration is not specified in the launch template; defaulting to false.

If you set this parameter to true, the instance is enabled for hibernation.

Returns:

  • (Boolean, nil)


139
140
141
# File 'ec2/launch_template_props.rb', line 139

def hibernation_configured
  @hibernation_configured
end

#http_endpointBoolean? (readonly)

Note:

Default: true

Enables or disables the HTTP metadata endpoint on your instances.



145
146
147
# File 'ec2/launch_template_props.rb', line 145

def http_endpoint
  @http_endpoint
end

#http_protocol_ipv6Boolean? (readonly)

Note:

Default: true

Enables or disables the IPv6 endpoint for the instance metadata service.



151
152
153
# File 'ec2/launch_template_props.rb', line 151

def http_protocol_ipv6
  @http_protocol_ipv6
end

#http_put_response_hop_limitNumeric? (readonly)

Note:

Default: 1

The desired HTTP PUT response hop limit for instance metadata requests.

The larger the number, the further instance metadata requests can travel.



159
160
161
# File 'ec2/launch_template_props.rb', line 159

def http_put_response_hop_limit
  @http_put_response_hop_limit
end

#http_tokensAWSCDK::EC2::LaunchTemplateHttpTokens? (readonly)

Note:

Default: LaunchTemplateHttpTokens.OPTIONAL

The state of token usage for your instance metadata requests.

The default state is optional if not specified. However, if requireImdsv2 is true, the state must be required.



168
169
170
# File 'ec2/launch_template_props.rb', line 168

def http_tokens
  @http_tokens
end

#instance_initiated_shutdown_behaviorAWSCDK::EC2::InstanceInitiatedShutdownBehavior? (readonly)

Note:

Default: - Shutdown behavior is not specified in the launch template; defaults to STOP.

Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).



174
175
176
# File 'ec2/launch_template_props.rb', line 174

def instance_initiated_shutdown_behavior
  @instance_initiated_shutdown_behavior
end

#instance_metadata_tagsBoolean? (readonly)

Note:

Default: false

Set to enabled to allow access to instance tags from the instance metadata.

Set to disabled to turn off access to instance tags from the instance metadata.



182
183
184
# File 'ec2/launch_template_props.rb', line 182

def 
  @instance_metadata_tags
end

#instance_profileAWSCDK::IAM::IInstanceProfile? (readonly)

Note:

Default: - No instance profile

The instance profile used to pass role information to EC2 instances.

Note: You can provide an instanceProfile or a role, but not both.



189
190
191
# File 'ec2/launch_template_props.rb', line 189

def instance_profile
  @instance_profile
end

#instance_typeAWSCDK::EC2::InstanceType? (readonly)

Note:

Default: - This Launch Template does not specify a default Instance Type.

Type of instance to launch.

Returns:



194
195
196
# File 'ec2/launch_template_props.rb', line 194

def instance_type
  @instance_type
end

#key_nameString? (readonly)

Note:

Default: - No SSH access will be possible.

Name of SSH keypair to grant access to instance.

Returns:

  • (String, nil)


200
201
202
# File 'ec2/launch_template_props.rb', line 200

def key_name
  @key_name
end

#key_pairAWSCDK::EC2::IKeyPair? (readonly)

Note:

Default: - No SSH access will be possible.

The SSH keypair to grant access to the instance.

Returns:



205
206
207
# File 'ec2/launch_template_props.rb', line 205

def key_pair
  @key_pair
end

#launch_template_nameString? (readonly)

Note:

Default: Automatically generated name

Name for this launch template.

Returns:

  • (String, nil)


210
211
212
# File 'ec2/launch_template_props.rb', line 210

def launch_template_name
  @launch_template_name
end

#machine_imageAWSCDK::EC2::IMachineImage? (readonly)

Note:

Default: - This Launch Template does not specify a default AMI.

The AMI that will be used by instances.

Returns:



215
216
217
# File 'ec2/launch_template_props.rb', line 215

def machine_image
  @machine_image
end

#nitro_enclave_enabledBoolean? (readonly)

Note:

Default: - Enablement of Nitro enclaves is not specified in the launch template; defaulting to false.

If this parameter is set to true, the instance is enabled for AWS Nitro Enclaves;

otherwise, it is not enabled for AWS Nitro Enclaves.

Returns:

  • (Boolean, nil)


222
223
224
# File 'ec2/launch_template_props.rb', line 222

def nitro_enclave_enabled
  @nitro_enclave_enabled
end

#placement_groupAWSCDK::Interfaces::AWSEC2::IPlacementGroupRef? (readonly)

Note:

Default: - no placement group will be used for this launch template.

The placement group that you want to launch the instance into.



227
228
229
# File 'ec2/launch_template_props.rb', line 227

def placement_group
  @placement_group
end

#require_imdsv2Boolean? (readonly)

Note:

Default: - false

Whether IMDSv2 should be required on launched instances.

Returns:

  • (Boolean, nil)


232
233
234
# File 'ec2/launch_template_props.rb', line 232

def require_imdsv2
  @require_imdsv2
end

#roleAWSCDK::IAM::IRole? (readonly)

Note:

Default: - No new role is created.

An IAM role to associate with the instance profile that is used by instances.

The role must be assumable by the service principal ec2.amazonaws.com. Note: You can provide an instanceProfile or a role, but not both.

Examples:

role = AWSCDK::IAM::Role.new(self, "MyRole", {
    assumed_by: AWSCDK::IAM::ServicePrincipal.new("ec2.amazonaws.com"),
})

Returns:



244
245
246
# File 'ec2/launch_template_props.rb', line 244

def role
  @role
end

#security_groupAWSCDK::EC2::ISecurityGroup? (readonly)

Note:

Default: No security group is assigned.

Security group to assign to instances created with the launch template.

Returns:



249
250
251
# File 'ec2/launch_template_props.rb', line 249

def security_group
  @security_group
end

#spot_optionsAWSCDK::EC2::LaunchTemplateSpotOptions? (readonly)

Note:

Default: - Instance launched with this template will not be spot instances.

If this property is defined, then the Launch Template's InstanceMarketOptions will be set to use Spot instances, and the options for the Spot instances will be as defined.



254
255
256
# File 'ec2/launch_template_props.rb', line 254

def spot_options
  @spot_options
end

#user_dataAWSCDK::EC2::UserData? (readonly)

Note:

Default: - This Launch Template creates a UserData based on the type of provided machineImage; no UserData is created if a machineImage is not provided

The user data to make available to the instance.

Returns:



259
260
261
# File 'ec2/launch_template_props.rb', line 259

def user_data
  @user_data
end

#version_descriptionString? (readonly)

Note:

Default: - No description

A description for the first version of the launch template.

The version description must be maximum 255 characters long.



267
268
269
# File 'ec2/launch_template_props.rb', line 267

def version_description
  @version_description
end

Class Method Details

.jsii_propertiesObject



269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
# File 'ec2/launch_template_props.rb', line 269

def self.jsii_properties
  {
    :associate_public_ip_address => "associatePublicIpAddress",
    :block_devices => "blockDevices",
    :cpu_credits => "cpuCredits",
    :detailed_monitoring => "detailedMonitoring",
    :disable_api_termination => "disableApiTermination",
    :ebs_optimized => "ebsOptimized",
    :hibernation_configured => "hibernationConfigured",
    :http_endpoint => "httpEndpoint",
    :http_protocol_ipv6 => "httpProtocolIpv6",
    :http_put_response_hop_limit => "httpPutResponseHopLimit",
    :http_tokens => "httpTokens",
    :instance_initiated_shutdown_behavior => "instanceInitiatedShutdownBehavior",
    :instance_metadata_tags => "instanceMetadataTags",
    :instance_profile => "instanceProfile",
    :instance_type => "instanceType",
    :key_name => "keyName",
    :key_pair => "keyPair",
    :launch_template_name => "launchTemplateName",
    :machine_image => "machineImage",
    :nitro_enclave_enabled => "nitroEnclaveEnabled",
    :placement_group => "placementGroup",
    :require_imdsv2 => "requireImdsv2",
    :role => "role",
    :security_group => "securityGroup",
    :spot_options => "spotOptions",
    :user_data => "userData",
    :version_description => "versionDescription",
  }
end

Instance Method Details

#to_jsiiObject



301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
# File 'ec2/launch_template_props.rb', line 301

def to_jsii
  result = {}
  result.merge!({
    "associatePublicIpAddress" => @associate_public_ip_address,
    "blockDevices" => @block_devices,
    "cpuCredits" => @cpu_credits,
    "detailedMonitoring" => @detailed_monitoring,
    "disableApiTermination" => @disable_api_termination,
    "ebsOptimized" => @ebs_optimized,
    "hibernationConfigured" => @hibernation_configured,
    "httpEndpoint" => @http_endpoint,
    "httpProtocolIpv6" => @http_protocol_ipv6,
    "httpPutResponseHopLimit" => @http_put_response_hop_limit,
    "httpTokens" => @http_tokens,
    "instanceInitiatedShutdownBehavior" => @instance_initiated_shutdown_behavior,
    "instanceMetadataTags" => @instance_metadata_tags,
    "instanceProfile" => @instance_profile,
    "instanceType" => @instance_type,
    "keyName" => @key_name,
    "keyPair" => @key_pair,
    "launchTemplateName" => @launch_template_name,
    "machineImage" => @machine_image,
    "nitroEnclaveEnabled" => @nitro_enclave_enabled,
    "placementGroup" => @placement_group,
    "requireImdsv2" => @require_imdsv2,
    "role" => @role,
    "securityGroup" => @security_group,
    "spotOptions" => @spot_options,
    "userData" => @user_data,
    "versionDescription" => @version_description,
  })
  result.compact
end