Class LaunchTemplateProps.Jsii$Proxy
- All Implemented Interfaces:
LaunchTemplateProps
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
LaunchTemplateProps
LaunchTemplateProps
-
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.LaunchTemplateProps
LaunchTemplateProps.Builder, LaunchTemplateProps.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Jsii$Proxy
(LaunchTemplateProps.Builder builder) Constructor that initializes the object based on literal property values passed by theLaunchTemplateProps.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 List<BlockDevice>
Specifies how block devices are exposed to the instance.final CpuCredits
CPU credit type for burstable EC2 instance types.final Boolean
If set to true, then detailed monitoring will be enabled on instances created with this launch template.final Boolean
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;final Boolean
Indicates whether the instances are optimized for Amazon EBS I/O.final Boolean
If you set this parameter to true, the instance is enabled for hibernation.Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).final InstanceType
Type of instance to launch.final String
Name of SSH keypair to grant access to instance.final String
Name for this launch template.final IMachineImage
The AMI that will be used by instances.final Boolean
If this parameter is set to true, the instance is enabled for AWS Nitro Enclaves;final Boolean
Whether IMDSv2 should be required on launched instances.final IRole
getRole()
An IAM role to associate with the instance profile that is used by instances.final ISecurityGroup
Security group to assign to instances created with the launch template.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.final UserData
The AMI that will be used by instances.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 theLaunchTemplateProps.Builder
.
-
-
Method Details
-
getBlockDevices
Description copied from interface:LaunchTemplateProps
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.
Default: - Uses the block device mapping of the AMI
- Specified by:
getBlockDevices
in interfaceLaunchTemplateProps
- See Also:
-
getCpuCredits
Description copied from interface:LaunchTemplateProps
CPU credit type for burstable EC2 instance types.Default: - No credit type is specified in the Launch Template.
- Specified by:
getCpuCredits
in interfaceLaunchTemplateProps
- See Also:
-
getDetailedMonitoring
Description copied from interface:LaunchTemplateProps
If set to true, then detailed monitoring will be enabled on instances created with this launch template.Default: False - Detailed monitoring is disabled.
- Specified by:
getDetailedMonitoring
in interfaceLaunchTemplateProps
- See Also:
-
getDisableApiTermination
Description copied from interface:LaunchTemplateProps
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.
Default: - The API termination setting is not specified in the Launch Template.
- Specified by:
getDisableApiTermination
in interfaceLaunchTemplateProps
-
getEbsOptimized
Description copied from interface:LaunchTemplateProps
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.
Default: - EBS optimization is not specified in the launch template.
- Specified by:
getEbsOptimized
in interfaceLaunchTemplateProps
-
getHibernationConfigured
Description copied from interface:LaunchTemplateProps
If you set this parameter to true, the instance is enabled for hibernation.Default: - Hibernation configuration is not specified in the launch template; defaulting to false.
- Specified by:
getHibernationConfigured
in interfaceLaunchTemplateProps
-
getInstanceInitiatedShutdownBehavior
Description copied from interface:LaunchTemplateProps
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).Default: - Shutdown behavior is not specified in the launch template; defaults to STOP.
- Specified by:
getInstanceInitiatedShutdownBehavior
in interfaceLaunchTemplateProps
- See Also:
-
getInstanceType
Description copied from interface:LaunchTemplateProps
Type of instance to launch.Default: - This Launch Template does not specify a default Instance Type.
- Specified by:
getInstanceType
in interfaceLaunchTemplateProps
-
getKeyName
Description copied from interface:LaunchTemplateProps
Name of SSH keypair to grant access to instance.Default: - No SSH access will be possible.
- Specified by:
getKeyName
in interfaceLaunchTemplateProps
-
getLaunchTemplateName
Description copied from interface:LaunchTemplateProps
Name for this launch template.Default: Automatically generated name
- Specified by:
getLaunchTemplateName
in interfaceLaunchTemplateProps
-
getMachineImage
Description copied from interface:LaunchTemplateProps
The AMI that will be used by instances.Default: - This Launch Template does not specify a default AMI.
- Specified by:
getMachineImage
in interfaceLaunchTemplateProps
-
getNitroEnclaveEnabled
Description copied from interface:LaunchTemplateProps
If this parameter is set to true, the instance is enabled for AWS Nitro Enclaves;otherwise, it is not enabled for AWS Nitro Enclaves.
Default: - Enablement of Nitro enclaves is not specified in the launch template; defaulting to false.
- Specified by:
getNitroEnclaveEnabled
in interfaceLaunchTemplateProps
-
getRequireImdsv2
Description copied from interface:LaunchTemplateProps
Whether IMDSv2 should be required on launched instances.Default: - false
- Specified by:
getRequireImdsv2
in interfaceLaunchTemplateProps
-
getRole
Description copied from interface:LaunchTemplateProps
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
:Default: - No new role is created.
Example:
Role role = Role.Builder.create(this, "MyRole") .assumedBy(new ServicePrincipal("ec2.amazonaws.com")) .build();
- Specified by:
getRole
in interfaceLaunchTemplateProps
-
getSecurityGroup
Description copied from interface:LaunchTemplateProps
Security group to assign to instances created with the launch template.Default: No security group is assigned.
- Specified by:
getSecurityGroup
in interfaceLaunchTemplateProps
-
getSpotOptions
Description copied from interface:LaunchTemplateProps
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.Default: - Instance launched with this template will not be spot instances.
- Specified by:
getSpotOptions
in interfaceLaunchTemplateProps
-
getUserData
Description copied from interface:LaunchTemplateProps
The AMI that will be used by instances.Default: - This Launch Template creates a UserData based on the type of provided machineImage; no UserData is created if a machineImage is not provided
- Specified by:
getUserData
in interfaceLaunchTemplateProps
-
$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()
-