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
An elastic GPU to associate with the instance.final Object
The elastic inference accelerator for the instance.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
One or more network interfaces.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.One or more security group names.final Object
The tags to apply to the 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
-
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
-
getCpuOptions
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The CPU options for the instance.For more information, see Optimizing CPU Options in the Amazon Elastic Compute Cloud User Guide .
- Specified by:
getCpuOptions
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
-
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
-
getDisableApiStop
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
Indicates whether to enable the instance for stop protection.For more information, see Stop protection in the Amazon Elastic Compute Cloud User Guide .
- Specified by:
getDisableApiStop
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
-
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
-
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
-
getElasticGpuSpecifications
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
An elastic GPU to associate with the instance.- Specified by:
getElasticGpuSpecifications
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
-
getElasticInferenceAccelerators
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The elastic inference accelerator for the instance.- Specified by:
getElasticInferenceAccelerators
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
-
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
-
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 instance in the Amazon Elastic Compute Cloud User Guide .
- Specified by:
getHibernationOptions
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
-
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
-
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-17characters00000
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
-
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
-
getInstanceMarketOptions
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The market (purchasing) option for the instances.- Specified by:
getInstanceMarketOptions
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
-
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.
If you specify
InstanceRequirements
, you can't specifyInstanceType
.- Specified by:
getInstanceRequirements
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
-
getInstanceType
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The instance type. For more information, see Instance types in the Amazon Elastic Compute Cloud User Guide .If you specify
InstanceType
, you can't specifyInstanceRequirements
.- Specified by:
getInstanceType
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
-
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
-
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
-
getLicenseSpecifications
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The license configurations.- Specified by:
getLicenseSpecifications
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
-
getMaintenanceOptions
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The maintenance options of your instance.- Specified by:
getMaintenanceOptions
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
-
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 Elastic Compute Cloud User Guide .
- Specified by:
getMetadataOptions
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
-
getMonitoring
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The monitoring for the instance.- Specified by:
getMonitoring
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
-
getNetworkInterfaces
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
One or more network interfaces.If you specify a network interface, you must specify any security groups and subnets as part of the network interface.
- Specified by:
getNetworkInterfaces
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
-
getPlacement
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The placement for the instance.- Specified by:
getPlacement
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
-
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
-
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 Elastic Compute Cloud User Guide .
- Specified by:
getRamDiskId
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
-
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.
- Specified by:
getSecurityGroupIds
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
-
getSecurityGroups
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
One or more security group names.For a nondefault VPC, you must use security group IDs instead. You cannot specify both a security group ID and security name in the same request.
- Specified by:
getSecurityGroups
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
-
getTagSpecifications
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataProperty
The tags to apply to the resources that are created during instance launch.You can specify tags for the following resources only:
- Instances
- Volumes
- Elastic graphics
- Spot Instance requests
- Network interfaces
To tag a resource after it has been created, see CreateTags .
To tag the launch template itself, you must use the TagSpecification parameter.
- Specified by:
getTagSpecifications
in interfaceCfnLaunchTemplate.LaunchTemplateDataProperty
-
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 Linux instance at launch (Linux) or Work with instance user data (Windows) in the Amazon Elastic Compute Cloud 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
-
$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()
-