@Stability(value=Stable) @Internal public static final class LaunchTemplateProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements LaunchTemplateProps
LaunchTemplatePropssoftware.amazon.jsii.JsiiObject.InitializationModeLaunchTemplateProps.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.
|
protected |
Jsii$Proxy(LaunchTemplateProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
LaunchTemplateProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
List<BlockDevice> |
getBlockDevices()
Specifies how block devices are exposed to the instance.
|
CpuCredits |
getCpuCredits()
CPU credit type for burstable EC2 instance types.
|
Boolean |
getDetailedMonitoring()
If set to true, then detailed monitoring will be enabled on instances created with this launch template.
|
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;
|
Boolean |
getEbsOptimized()
Indicates whether the instances are optimized for Amazon EBS I/O.
|
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.
|
String |
getKeyName()
Name of SSH keypair to grant access to instance.
|
String |
getLaunchTemplateName()
Name for this launch template.
|
IMachineImage |
getMachineImage()
The AMI that will be used by instances.
|
Boolean |
getNitroEnclaveEnabled()
If this parameter is set to true, the instance is enabled for AWS Nitro Enclaves;
|
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() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(LaunchTemplateProps.Builder builder)
LaunchTemplateProps.Builder.public final List<BlockDevice> getBlockDevices()
LaunchTemplatePropsEach 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 LaunchTemplatePropspublic final CpuCredits getCpuCredits()
LaunchTemplatePropsDefault: - No credit type is specified in the Launch Template.
getCpuCredits in interface LaunchTemplatePropspublic final Boolean getDetailedMonitoring()
LaunchTemplatePropsDefault: False - Detailed monitoring is disabled.
getDetailedMonitoring in interface LaunchTemplatePropspublic final Boolean getDisableApiTermination()
LaunchTemplatePropsotherwise, you can.
Default: - The API termination setting is not specified in the Launch Template.
getDisableApiTermination in interface LaunchTemplatePropspublic final Boolean getEbsOptimized()
LaunchTemplatePropsThis 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 LaunchTemplatePropspublic final Boolean getHibernationConfigured()
LaunchTemplatePropsDefault: - Hibernation configuration is not specified in the launch template; defaulting to false.
getHibernationConfigured in interface LaunchTemplatePropspublic final InstanceInitiatedShutdownBehavior getInstanceInitiatedShutdownBehavior()
LaunchTemplatePropsDefault: - Shutdown behavior is not specified in the launch template; defaults to STOP.
public final InstanceType getInstanceType()
LaunchTemplatePropsDefault: - This Launch Template does not specify a default Instance Type.
getInstanceType in interface LaunchTemplatePropspublic final String getKeyName()
LaunchTemplatePropsDefault: - No SSH access will be possible.
getKeyName in interface LaunchTemplatePropspublic final String getLaunchTemplateName()
LaunchTemplatePropsDefault: Automatically generated name
getLaunchTemplateName in interface LaunchTemplatePropspublic final IMachineImage getMachineImage()
LaunchTemplatePropsDefault: - This Launch Template does not specify a default AMI.
getMachineImage in interface LaunchTemplatePropspublic final Boolean getNitroEnclaveEnabled()
LaunchTemplatePropsotherwise, 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 LaunchTemplatePropspublic final Boolean getRequireImdsv2()
LaunchTemplatePropsDefault: - false
getRequireImdsv2 in interface LaunchTemplatePropspublic final IRole getRole()
LaunchTemplateProps
The role must be assumable by the service principal ec2.amazonaws.com:
Default: - No new role is created.
Example:
// Example automatically generated from non-compiling source. May contain errors.
Role role = Role.Builder.create(this, "MyRole")
.assumedBy(new ServicePrincipal("ec2.amazonaws.com"))
.build();
getRole in interface LaunchTemplatePropspublic final ISecurityGroup getSecurityGroup()
LaunchTemplatePropsDefault: No security group is assigned.
getSecurityGroup in interface LaunchTemplatePropspublic final LaunchTemplateSpotOptions getSpotOptions()
LaunchTemplatePropsDefault: - Instance launched with this template will not be spot instances.
getSpotOptions in interface LaunchTemplatePropspublic final UserData getUserData()
LaunchTemplatePropsDefault: - 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@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.