public static final class LaunchTemplateProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements LaunchTemplateProps
LaunchTemplateProps
LaunchTemplateProps.Builder, LaunchTemplateProps.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
java.util.List<BlockDevice> |
getBlockDevices()
Specifies how block devices are exposed to the instance.
|
CpuCredits |
getCpuCredits()
CPU credit type for burstable EC2 instance types.
|
java.lang.Boolean |
getDetailedMonitoring()
If set to true, then detailed monitoring will be enabled on instances created with this launch template.
|
java.lang.Boolean |
getDisableApiTermination()
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;
|
java.lang.Boolean |
getEbsOptimized()
Indicates whether the instances are optimized for Amazon EBS I/O.
|
java.lang.Boolean |
getHibernationConfigured()
If you set this parameter to true, the instance is enabled for hibernation.
|
InstanceInitiatedShutdownBehavior |
getInstanceInitiatedShutdownBehavior()
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
|
InstanceType |
getInstanceType()
Type of instance to launch.
|
java.lang.String |
getKeyName()
Name of SSH keypair to grant access to instance.
|
java.lang.String |
getLaunchTemplateName()
Name for this launch template.
|
IMachineImage |
getMachineImage()
The AMI that will be used by instances.
|
java.lang.Boolean |
getNitroEnclaveEnabled()
If this parameter is set to true, the instance is enabled for AWS Nitro Enclaves;
|
java.lang.Boolean |
getRequireImdsv2()
Whether IMDSv2 should be required on launched instances.
|
IRole |
getRole()
An IAM role to associate with the instance profile that is used by instances.
|
ISecurityGroup |
getSecurityGroup()
Security group to assign to instances created with the launch template.
|
LaunchTemplateSpotOptions |
getSpotOptions()
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.
|
UserData |
getUserData()
The AMI that will be used by instances.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final java.util.List<BlockDevice> getBlockDevices()
LaunchTemplateProps
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
getBlockDevices
in interface LaunchTemplateProps
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html
public final CpuCredits getCpuCredits()
LaunchTemplateProps
Default: - No credit type is specified in the Launch Template.
getCpuCredits
in interface LaunchTemplateProps
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html
public final java.lang.Boolean getDetailedMonitoring()
LaunchTemplateProps
Default: False - Detailed monitoring is disabled.
getDetailedMonitoring
in interface LaunchTemplateProps
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch-new.html
public final java.lang.Boolean getDisableApiTermination()
LaunchTemplateProps
otherwise, you can.
Default: - The API termination setting is not specified in the Launch Template.
getDisableApiTermination
in interface LaunchTemplateProps
public final java.lang.Boolean getEbsOptimized()
LaunchTemplateProps
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.
getEbsOptimized
in interface LaunchTemplateProps
public final java.lang.Boolean getHibernationConfigured()
LaunchTemplateProps
Default: - Hibernation configuration is not specified in the launch template; defaulting to false.
getHibernationConfigured
in interface LaunchTemplateProps
public final InstanceInitiatedShutdownBehavior getInstanceInitiatedShutdownBehavior()
LaunchTemplateProps
Default: - Shutdown behavior is not specified in the launch template; defaults to STOP.
getInstanceInitiatedShutdownBehavior
in interface LaunchTemplateProps
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#Using_ChangingInstanceInitiatedShutdownBehavior
public final InstanceType getInstanceType()
LaunchTemplateProps
Default: - This Launch Template does not specify a default Instance Type.
getInstanceType
in interface LaunchTemplateProps
public final java.lang.String getKeyName()
LaunchTemplateProps
Default: - No SSH access will be possible.
getKeyName
in interface LaunchTemplateProps
public final java.lang.String getLaunchTemplateName()
LaunchTemplateProps
Default: Automatically generated name
getLaunchTemplateName
in interface LaunchTemplateProps
public final IMachineImage getMachineImage()
LaunchTemplateProps
Default: - This Launch Template does not specify a default AMI.
getMachineImage
in interface LaunchTemplateProps
public final java.lang.Boolean getNitroEnclaveEnabled()
LaunchTemplateProps
otherwise, it is not enabled for AWS Nitro Enclaves.
Default: - Enablement of Nitro enclaves is not specified in the launch template; defaulting to false.
getNitroEnclaveEnabled
in interface LaunchTemplateProps
public final java.lang.Boolean getRequireImdsv2()
LaunchTemplateProps
Default: - false
getRequireImdsv2
in interface LaunchTemplateProps
public final IRole getRole()
LaunchTemplateProps
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();
getRole
in interface LaunchTemplateProps
public final ISecurityGroup getSecurityGroup()
LaunchTemplateProps
Default: No security group is assigned.
getSecurityGroup
in interface LaunchTemplateProps
public final LaunchTemplateSpotOptions getSpotOptions()
LaunchTemplateProps
Default: - Instance launched with this template will not be spot instances.
getSpotOptions
in interface LaunchTemplateProps
public final UserData getUserData()
LaunchTemplateProps
Default: - This Launch Template creates a UserData based on the type of provided machineImage; no UserData is created if a machineImage is not provided
getUserData
in interface LaunchTemplateProps
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()