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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.CfnLaunchTemplate.LaunchTemplateDataProperty
CfnLaunchTemplate.LaunchTemplateDataProperty.Builder, CfnLaunchTemplate.LaunchTemplateDataProperty.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor that initializes the object based on literal property values passed by theCfnLaunchTemplate.LaunchTemplateDataProperty.Builder.protectedJsii$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.JsonNodefinal booleanfinal ObjectThe block device mapping.final ObjectThe Capacity Reservation targeting option.final ObjectThe CPU options for the instance.final ObjectThe credit option for CPU usage of the instance.final ObjectIndicates whether to enable the instance for stop protection.final ObjectIndicates whether termination protection is enabled for the instance.final ObjectIndicates whether the instance is optimized for Amazon EBS I/O.final ObjectReturns union: eitherIResolvableor Listinvalid input: '<'eitherIResolvableorCfnLaunchTemplate.ElasticGpuSpecificationProperty>final ObjectReturns union: eitherIResolvableor Listinvalid input: '<'eitherIResolvableorCfnLaunchTemplate.LaunchTemplateElasticInferenceAcceleratorProperty>final ObjectIndicates whether the instance is enabled for AWS Nitro Enclaves.final ObjectIndicates whether an instance is enabled for hibernation.final ObjectThe name or Amazon Resource Name (ARN) of an IAM instance profile.final StringThe ID of the AMI.final StringIndicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).final ObjectThe market (purchasing) option for the instances.final ObjectThe attributes for the instance types.final StringThe instance type.final StringThe ID of the kernel.final StringThe name of the key pair.final ObjectThe license configurations.final ObjectThe maintenance options of your instance.final ObjectThe metadata options for the instance.final ObjectThe monitoring for the instance.final ObjectThe network interfaces for the instance.final ObjectThe settings for the network performance options for the instance.final ObjectThe placement for the instance.final ObjectThe hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries should be handled.final StringThe ID of the RAM disk.The IDs of the security groups.The names of the security groups.final ObjectThe tags to apply to resources that are created during instance launch.final StringThe user data to make available to the instance.final inthashCode()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.LaunchTemplateDataPropertyThe block device mapping.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnLaunchTemplate.BlockDeviceMappingProperty>- Specified by:
getBlockDeviceMappingsin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getCapacityReservationSpecification
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe 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).Returns union: either
IResolvableorCfnLaunchTemplate.CapacityReservationSpecificationProperty- Specified by:
getCapacityReservationSpecificationin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getCpuOptions
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe CPU options for the instance.For more information, see CPU options for Amazon EC2 instances in the Amazon EC2 User Guide .
Returns union: either
IResolvableorCfnLaunchTemplate.CpuOptionsProperty- Specified by:
getCpuOptionsin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getCreditSpecification
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe credit option for CPU usage of the instance.Valid only for T instances.
Returns union: either
IResolvableorCfnLaunchTemplate.CreditSpecificationProperty- Specified by:
getCreditSpecificationin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getDisableApiStop
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyIndicates whether to enable the instance for stop protection.For more information, see Enable stop protection for your EC2 instances in the Amazon EC2 User Guide .
Returns union: either
BooleanorIResolvable- Specified by:
getDisableApiStopin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getDisableApiTermination
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyIndicates whether termination protection is enabled for the instance.The default is
false, which means that you can terminate the instance using the Amazon EC2 console, command line tools, or API. You can enable termination protection when you launch an instance, while the instance is running, or while the instance is stopped.Returns union: either
BooleanorIResolvable- Specified by:
getDisableApiTerminationin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getEbsOptimized
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyIndicates 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.
Returns union: either
BooleanorIResolvable- Specified by:
getEbsOptimizedin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getElasticGpuSpecifications
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyReturns union: eitherIResolvableor Listinvalid input: '<'eitherIResolvableorCfnLaunchTemplate.ElasticGpuSpecificationProperty>- Specified by:
getElasticGpuSpecificationsin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getElasticInferenceAccelerators
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyReturns union: eitherIResolvableor Listinvalid input: '<'eitherIResolvableorCfnLaunchTemplate.LaunchTemplateElasticInferenceAcceleratorProperty>- Specified by:
getElasticInferenceAcceleratorsin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getEnclaveOptions
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyIndicates whether the instance is enabled for AWS Nitro Enclaves.For more information, see What is Nitro Enclaves? in the AWS Nitro Enclaves User Guide .
You can't enable AWS Nitro Enclaves and hibernation on the same instance.
Returns union: either
IResolvableorCfnLaunchTemplate.EnclaveOptionsProperty- Specified by:
getEnclaveOptionsin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getHibernationOptions
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyIndicates 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 .
Returns union: either
IResolvableorCfnLaunchTemplate.HibernationOptionsProperty- Specified by:
getHibernationOptionsin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getIamInstanceProfile
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe name or Amazon Resource Name (ARN) of an IAM instance profile.Returns union: either
IResolvableorCfnLaunchTemplate.IamInstanceProfileProperty- Specified by:
getIamInstanceProfilein interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getImageId
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe ID of the AMI.Alternatively, you can specify a Systems Manager parameter, which will resolve to an AMI ID on launch.
Valid formats:
ami-0ac394d6a3exampleresolve:ssm:parameter-nameresolve:ssm:parameter-name:version-numberresolve: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:
getImageIdin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getInstanceInitiatedShutdownBehavior
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyIndicates 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:
getInstanceInitiatedShutdownBehaviorin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getInstanceMarketOptions
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe market (purchasing) option for the instances.Returns union: either
IResolvableorCfnLaunchTemplate.InstanceMarketOptionsProperty- Specified by:
getInstanceMarketOptionsin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getInstanceRequirements
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe attributes for the instance types.When you specify instance attributes, Amazon EC2 will identify instance types with these attributes.
You must specify
VCpuCountandMemoryMiB. 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 .
Returns union: either
IResolvableorCfnLaunchTemplate.InstanceRequirementsProperty- Specified by:
getInstanceRequirementsin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getInstanceType
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe 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:
getInstanceTypein interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getKernelId
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe 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:
getKernelIdin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getKeyName
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe 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:
getKeyNamein interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getLicenseSpecifications
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe license configurations.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnLaunchTemplate.LicenseSpecificationProperty>- Specified by:
getLicenseSpecificationsin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getMaintenanceOptions
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe maintenance options of your instance.Returns union: either
IResolvableorCfnLaunchTemplate.MaintenanceOptionsProperty- Specified by:
getMaintenanceOptionsin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getMetadataOptions
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe metadata options for the instance.For more information, see Configure the Instance Metadata Service options in the Amazon EC2 User Guide .
Returns union: either
IResolvableorCfnLaunchTemplate.MetadataOptionsProperty- Specified by:
getMetadataOptionsin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getMonitoring
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe monitoring for the instance.Returns union: either
IResolvableorCfnLaunchTemplate.MonitoringProperty- Specified by:
getMonitoringin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getNetworkInterfaces
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe network interfaces for the instance.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnLaunchTemplate.NetworkInterfaceProperty>- Specified by:
getNetworkInterfacesin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getNetworkPerformanceOptions
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe settings for the network performance options for the instance.For more information, see EC2 instance bandwidth weighting configuration .
Returns union: either
IResolvableorCfnLaunchTemplate.NetworkPerformanceOptionsProperty- Specified by:
getNetworkPerformanceOptionsin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getPlacement
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe placement for the instance.Returns union: either
IResolvableorCfnLaunchTemplate.PlacementProperty- Specified by:
getPlacementin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getPrivateDnsNameOptions
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe 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 .
Returns union: either
IResolvableorCfnLaunchTemplate.PrivateDnsNameOptionsProperty- Specified by:
getPrivateDnsNameOptionsin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getRamDiskId
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe 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:
getRamDiskIdin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getSecurityGroupIds
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe 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:
getSecurityGroupIdsin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getSecurityGroups
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe 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:
getSecurityGroupsin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getTagSpecifications
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe tags to apply to resources that are created during instance launch.To tag the launch template itself, use TagSpecifications .
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnLaunchTemplate.TagSpecificationProperty>- Specified by:
getTagSpecificationsin interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
getUserData
Description copied from interface:CfnLaunchTemplate.LaunchTemplateDataPropertyThe 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 when you launch an EC2 instance with user data input 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:
getUserDatain interfaceCfnLaunchTemplate.LaunchTemplateDataProperty- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-