Class: AWSCDK::EC2::LaunchTemplateProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::LaunchTemplateProps
- Defined in:
- ec2/launch_template_props.rb
Overview
Properties of a LaunchTemplate.
Instance Attribute Summary collapse
-
#associate_public_ip_address ⇒ Boolean?
readonly
Whether instances should have a public IP addresses associated with them.
-
#block_devices ⇒ Array<AWSCDK::EC2::BlockDevice>?
readonly
Specifies how block devices are exposed to the instance.
-
#cpu_credits ⇒ AWSCDK::EC2::CpuCredits?
readonly
CPU credit type for burstable EC2 instance types.
-
#detailed_monitoring ⇒ Boolean?
readonly
If set to true, then detailed monitoring will be enabled on instances created with this launch template.
-
#disable_api_termination ⇒ Boolean?
readonly
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?
readonly
Indicates whether the instances are optimized for Amazon EBS I/O.
-
#hibernation_configured ⇒ Boolean?
readonly
If you set this parameter to true, the instance is enabled for hibernation.
-
#http_endpoint ⇒ Boolean?
readonly
Enables or disables the HTTP metadata endpoint on your instances.
-
#http_protocol_ipv6 ⇒ Boolean?
readonly
Enables or disables the IPv6 endpoint for the instance metadata service.
-
#http_put_response_hop_limit ⇒ Numeric?
readonly
The desired HTTP PUT response hop limit for instance metadata requests.
-
#http_tokens ⇒ AWSCDK::EC2::LaunchTemplateHttpTokens?
readonly
The state of token usage for your instance metadata requests.
-
#instance_initiated_shutdown_behavior ⇒ AWSCDK::EC2::InstanceInitiatedShutdownBehavior?
readonly
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?
readonly
Set to enabled to allow access to instance tags from the instance metadata.
-
#instance_profile ⇒ AWSCDK::IAM::IInstanceProfile?
readonly
The instance profile used to pass role information to EC2 instances.
-
#instance_type ⇒ AWSCDK::EC2::InstanceType?
readonly
Type of instance to launch.
- #key_name ⇒ String? readonly deprecated Deprecated.
-
#key_pair ⇒ AWSCDK::EC2::IKeyPair?
readonly
The SSH keypair to grant access to the instance.
-
#launch_template_name ⇒ String?
readonly
Name for this launch template.
-
#machine_image ⇒ AWSCDK::EC2::IMachineImage?
readonly
The AMI that will be used by instances.
-
#nitro_enclave_enabled ⇒ Boolean?
readonly
If this parameter is set to true, the instance is enabled for AWS Nitro Enclaves;.
-
#placement_group ⇒ AWSCDK::Interfaces::AWSEC2::IPlacementGroupRef?
readonly
The placement group that you want to launch the instance into.
-
#require_imdsv2 ⇒ Boolean?
readonly
Whether IMDSv2 should be required on launched instances.
-
#role ⇒ AWSCDK::IAM::IRole?
readonly
An IAM role to associate with the instance profile that is used by instances.
-
#security_group ⇒ AWSCDK::EC2::ISecurityGroup?
readonly
Security group to assign to instances created with the launch template.
-
#spot_options ⇒ AWSCDK::EC2::LaunchTemplateSpotOptions?
readonly
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?
readonly
The user data to make available to the instance.
-
#version_description ⇒ String?
readonly
A description for the first version of the launch template.
Class Method Summary collapse
Instance Method Summary collapse
-
#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
constructor
A new instance of LaunchTemplateProps.
- #to_jsii ⇒ Object
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.
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 = .is_a?(Hash) ? ::AWSCDK::EC2::LaunchTemplateSpotOptions.new(**.transform_keys(&:to_sym)) : 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_address ⇒ Boolean? (readonly)
Default: - Use subnet settings
Whether instances should have a public IP addresses associated with them.
95 96 97 |
# File 'ec2/launch_template_props.rb', line 95 def associate_public_ip_address @associate_public_ip_address end |
#block_devices ⇒ Array<AWSCDK::EC2::BlockDevice>? (readonly)
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_credits ⇒ AWSCDK::EC2::CpuCredits? (readonly)
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_monitoring ⇒ Boolean? (readonly)
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_termination ⇒ Boolean? (readonly)
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.
125 126 127 |
# File 'ec2/launch_template_props.rb', line 125 def disable_api_termination @disable_api_termination end |
#ebs_optimized ⇒ Boolean? (readonly)
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.
134 135 136 |
# File 'ec2/launch_template_props.rb', line 134 def ebs_optimized @ebs_optimized end |
#hibernation_configured ⇒ Boolean? (readonly)
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.
139 140 141 |
# File 'ec2/launch_template_props.rb', line 139 def hibernation_configured @hibernation_configured end |
#http_endpoint ⇒ Boolean? (readonly)
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_ipv6 ⇒ Boolean? (readonly)
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_limit ⇒ Numeric? (readonly)
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_tokens ⇒ AWSCDK::EC2::LaunchTemplateHttpTokens? (readonly)
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_behavior ⇒ AWSCDK::EC2::InstanceInitiatedShutdownBehavior? (readonly)
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_tags ⇒ Boolean? (readonly)
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_profile ⇒ AWSCDK::IAM::IInstanceProfile? (readonly)
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_type ⇒ AWSCDK::EC2::InstanceType? (readonly)
Default: - This Launch Template does not specify a default Instance Type.
Type of instance to launch.
194 195 196 |
# File 'ec2/launch_template_props.rb', line 194 def instance_type @instance_type end |
#key_name ⇒ String? (readonly)
Default: - No SSH access will be possible.
Name of SSH keypair to grant access to instance.
200 201 202 |
# File 'ec2/launch_template_props.rb', line 200 def key_name @key_name end |
#key_pair ⇒ AWSCDK::EC2::IKeyPair? (readonly)
Default: - No SSH access will be possible.
The SSH keypair to grant access to the instance.
205 206 207 |
# File 'ec2/launch_template_props.rb', line 205 def key_pair @key_pair end |
#launch_template_name ⇒ String? (readonly)
Default: Automatically generated name
Name for this launch template.
210 211 212 |
# File 'ec2/launch_template_props.rb', line 210 def launch_template_name @launch_template_name end |
#machine_image ⇒ AWSCDK::EC2::IMachineImage? (readonly)
Default: - This Launch Template does not specify a default AMI.
The AMI that will be used by instances.
215 216 217 |
# File 'ec2/launch_template_props.rb', line 215 def machine_image @machine_image end |
#nitro_enclave_enabled ⇒ Boolean? (readonly)
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.
222 223 224 |
# File 'ec2/launch_template_props.rb', line 222 def nitro_enclave_enabled @nitro_enclave_enabled end |
#placement_group ⇒ AWSCDK::Interfaces::AWSEC2::IPlacementGroupRef? (readonly)
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_imdsv2 ⇒ Boolean? (readonly)
Default: - false
Whether IMDSv2 should be required on launched instances.
232 233 234 |
# File 'ec2/launch_template_props.rb', line 232 def require_imdsv2 @require_imdsv2 end |
#role ⇒ AWSCDK::IAM::IRole? (readonly)
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.
244 245 246 |
# File 'ec2/launch_template_props.rb', line 244 def role @role end |
#security_group ⇒ AWSCDK::EC2::ISecurityGroup? (readonly)
Default: No security group is assigned.
Security group to assign to instances created with the launch template.
249 250 251 |
# File 'ec2/launch_template_props.rb', line 249 def security_group @security_group end |
#spot_options ⇒ AWSCDK::EC2::LaunchTemplateSpotOptions? (readonly)
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 end |
#user_data ⇒ AWSCDK::EC2::UserData? (readonly)
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.
259 260 261 |
# File 'ec2/launch_template_props.rb', line 259 def user_data @user_data end |
#version_description ⇒ String? (readonly)
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_properties ⇒ Object
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_jsii ⇒ Object
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 |