Class CfnLaunchTemplate.LaunchTemplateDataProperty.Jsii$Proxy
- All Implemented Interfaces:
CfnLaunchTemplate.LaunchTemplateDataProperty
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnLaunchTemplate.LaunchTemplateDataProperty
CfnLaunchTemplate.LaunchTemplateDataProperty
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.CfnLaunchTemplate.LaunchTemplateDataProperty
CfnLaunchTemplate.LaunchTemplateDataProperty.Builder, CfnLaunchTemplate.LaunchTemplateDataProperty.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor that initializes the object based on literal property values passed by theCfnLaunchTemplate.LaunchTemplateDataProperty.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
final boolean
final Object
The block device mapping.final Object
The Capacity Reservation targeting option.final Object
The CPU options for the instance.final Object
The credit option for CPU usage of the instance.final Object
Indicates whether to enable the instance for stop protection.final Object
If you set this parameter totrue
, you can't terminate the instance using the Amazon EC2 console, CLI, or API;final Object
Indicates whether the instance is optimized for Amazon EBS I/O.final Object
Deprecated.final Object
final Object
Indicates whether the instance is enabled for AWS Nitro Enclaves.final Object
Indicates whether an instance is enabled for hibernation.final Object
The name or Amazon Resource Name (ARN) of an IAM instance profile.final String
The ID of the AMI.final String
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).final Object
The market (purchasing) option for the instances.final Object
The attributes for the instance types.final String
The instance type.final String
The ID of the kernel.final String
The name of the key pair.final Object
The license configurations.final Object
The maintenance options of your instance.final Object
The metadata options for the instance.final Object
The monitoring for the instance.final Object
The network interfaces for the instance.final Object
The placement for the instance.final Object
The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries should be handled.final String
The ID of the RAM disk.The IDs of the security groups.The names of the security groups.final Object
The tags to apply to resources that are created during instance launch.final String
The user data to make available to the instance.final int
hashCode()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCfnLaunchTemplate.LaunchTemplateDataProperty.Builder
.
-
-
Method Details
-
getBlockDeviceMappings
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The block device mapping.- Specified by:
getBlockDeviceMappings
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getCapacityReservationSpecification
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The Capacity Reservation targeting option.If you do not specify this parameter, the instance's Capacity Reservation preference defaults to
open
, which enables it to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).- Specified by:
getCapacityReservationSpecification
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getCpuOptions
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The CPU options for the instance.For more information, see Optimize CPU options in the Amazon EC2 User Guide .
- Specified by:
getCpuOptions
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getCreditSpecification
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The credit option for CPU usage of the instance.Valid only for T instances.
- Specified by:
getCreditSpecification
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getDisableApiStop
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
Indicates whether to enable the instance for stop protection.For more information, see Enable stop protection for your instance in the Amazon EC2 User Guide .
- Specified by:
getDisableApiStop
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getDisableApiTermination
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
If you set this parameter totrue
, you can't terminate the instance using the Amazon EC2 console, CLI, or API;otherwise, you can. To change this attribute after launch, use ModifyInstanceAttribute . Alternatively, if you set
InstanceInitiatedShutdownBehavior
toterminate
, you can terminate the instance by running the shutdown command from the instance.- Specified by:
getDisableApiTermination
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getEbsOptimized
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
Indicates whether the instance is 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.
- Specified by:
getEbsOptimized
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getElasticGpuSpecifications
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
Deprecated.Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
- Specified by:
getElasticGpuSpecifications
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getElasticInferenceAccelerators
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
Amazon Elastic Inference is no longer available.
An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads.
You cannot specify accelerators from different generations in the same request.
Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.
- Specified by:
getElasticInferenceAccelerators
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getEnclaveOptions
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
Indicates whether the instance is enabled for AWS Nitro Enclaves.For more information, see What is AWS Nitro Enclaves? in the AWS Nitro Enclaves User Guide .
You can't enable AWS Nitro Enclaves and hibernation on the same instance.
- Specified by:
getEnclaveOptions
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getHibernationOptions
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
Indicates whether an instance is enabled for hibernation.This parameter is valid only if the instance meets the hibernation prerequisites . For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide .
- Specified by:
getHibernationOptions
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getIamInstanceProfile
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The name or Amazon Resource Name (ARN) of an IAM instance profile.- Specified by:
getIamInstanceProfile
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getImageId
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The ID of the AMI.Alternatively, you can specify a Systems Manager parameter, which will resolve to an AMI ID on launch.
Valid formats:
ami-0ac394d6a3example
resolve:ssm:parameter-name
resolve:ssm:parameter-name:version-number
resolve:ssm:parameter-name:label
For more information, see Use a Systems Manager parameter to find an AMI in the Amazon Elastic Compute Cloud User Guide .
- Specified by:
getImageId
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getInstanceInitiatedShutdownBehavior
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).Default:
stop
- Specified by:
getInstanceInitiatedShutdownBehavior
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getInstanceMarketOptions
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The market (purchasing) option for the instances.- Specified by:
getInstanceMarketOptions
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getInstanceRequirements
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The attributes for the instance types.When you specify instance attributes, Amazon EC2 will identify instance types with these attributes.
You must specify
VCpuCount
andMemoryMiB
. All other attributes are optional. Any unspecified optional attribute is set to its default.When you specify multiple attributes, you get instance types that satisfy all of the specified attributes. If you specify multiple values for an attribute, you get instance types that satisfy any of the specified values.
To limit the list of instance types from which Amazon EC2 can identify matching instance types, you can use one of the following parameters, but not both in the same request:
AllowedInstanceTypes
- The instance types to include in the list. All other instance types are ignored, even if they match your specified attributes.ExcludedInstanceTypes
- The instance types to exclude from the list, even if they match your specified attributes.
If you specify
InstanceRequirements
, you can't specifyInstanceType
.Attribute-based instance type selection is only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to launch instances. If you plan to use the launch template in the launch instance wizard , or with the RunInstances API or AWS::EC2::Instance AWS CloudFormation resource, you can't specify
InstanceRequirements
.For more information, see Specify attributes for instance type selection for EC2 Fleet or Spot Fleet and Spot placement score in the Amazon EC2 User Guide .
- Specified by:
getInstanceRequirements
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getInstanceType
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The instance type. For more information, see Amazon EC2 instance types in the Amazon EC2 User Guide .If you specify
InstanceType
, you can't specifyInstanceRequirements
.- Specified by:
getInstanceType
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getKernelId
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The ID of the kernel.We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon EC2 User Guide .
- Specified by:
getKernelId
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getKeyName
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair .If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
- Specified by:
getKeyName
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getLicenseSpecifications
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The license configurations.- Specified by:
getLicenseSpecifications
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getMaintenanceOptions
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The maintenance options of your instance.- Specified by:
getMaintenanceOptions
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getMetadataOptions
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The metadata options for the instance.For more information, see Instance metadata and user data in the Amazon EC2 User Guide .
- Specified by:
getMetadataOptions
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getMonitoring
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The monitoring for the instance.- Specified by:
getMonitoring
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getNetworkInterfaces
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The network interfaces for the instance.- Specified by:
getNetworkInterfaces
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getPlacement
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The placement for the instance.- Specified by:
getPlacement
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getPrivateDnsNameOptions
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries should be handled.For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide .
- Specified by:
getPrivateDnsNameOptions
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getRamDiskId
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The ID of the RAM disk.We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided kernels in the Amazon EC2 User Guide .
- Specified by:
getRamDiskId
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getSecurityGroupIds
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The IDs of the security groups.You can specify the IDs of existing security groups and references to resources created by the stack template.
If you specify a network interface, you must specify any security groups as part of the network interface instead.
- Specified by:
getSecurityGroupIds
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getSecurityGroups
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The names of the security groups. For a nondefault VPC, you must use security group IDs instead.If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
- Specified by:
getSecurityGroups
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getTagSpecifications
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The tags to apply to resources that are created during instance launch.To tag the launch template itself, use TagSpecifications .
- Specified by:
getTagSpecifications
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
getUserData
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The user data to make available to the instance.You must provide base64-encoded text. User data is limited to 16 KB. For more information, see Run commands on your Amazon EC2 instance at launch in the Amazon EC2 User Guide .
If you are creating the launch template for use with AWS Batch , the user data must be provided in the MIME multi-part archive format . For more information, see Amazon EC2 user data in launch templates in the AWS Batch User Guide .
- Specified by:
getUserData
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-