@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:17.100Z") @Stability(value=Experimental) public interface LaunchTemplateProps extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
LaunchTemplateProps.Builder
A builder for
LaunchTemplateProps |
static class |
LaunchTemplateProps.Jsii$Proxy
An implementation for
LaunchTemplateProps |
| Modifier and Type | Method and Description |
|---|---|
static LaunchTemplateProps.Builder |
builder() |
default List<BlockDevice> |
getBlockDevices()
(experimental) Specifies how block devices are exposed to the instance.
|
default CpuCredits |
getCpuCredits()
(experimental) CPU credit type for burstable EC2 instance types.
|
default Boolean |
getDetailedMonitoring()
(experimental) If set to true, then detailed monitoring will be enabled on instances created with this launch template.
|
default Boolean |
getDisableApiTermination()
(experimental) 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;
|
default Boolean |
getEbsOptimized()
(experimental) Indicates whether the instances are optimized for Amazon EBS I/O.
|
default Boolean |
getHibernationConfigured()
(experimental) If you set this parameter to true, the instance is enabled for hibernation.
|
default InstanceInitiatedShutdownBehavior |
getInstanceInitiatedShutdownBehavior()
(experimental) Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
|
default InstanceType |
getInstanceType()
(experimental) Type of instance to launch.
|
default String |
getKeyName()
(experimental) Name of SSH keypair to grant access to instance.
|
default String |
getLaunchTemplateName()
(experimental) Name for this launch template.
|
default IMachineImage |
getMachineImage()
(experimental) The AMI that will be used by instances.
|
default Boolean |
getNitroEnclaveEnabled()
(experimental) If this parameter is set to true, the instance is enabled for AWS Nitro Enclaves;
|
default IRole |
getRole()
(experimental) An IAM role to associate with the instance profile that is used by instances.
|
default ISecurityGroup |
getSecurityGroup()
(experimental) Security group to assign to instances created with the launch template.
|
default LaunchTemplateSpotOptions |
getSpotOptions()
(experimental) 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 UserData |
getUserData()
(experimental) The AMI that will be used by instances.
|
@Stability(value=Experimental) @Nullable default List<BlockDevice> getBlockDevices()
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
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html@Stability(value=Experimental) @Nullable default CpuCredits getCpuCredits()
Default: - No credit type is specified in the Launch Template.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html@Stability(value=Experimental) @Nullable default Boolean getDetailedMonitoring()
Default: False - Detailed monitoring is disabled.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch-new.html@Stability(value=Experimental) @Nullable default Boolean getDisableApiTermination()
otherwise, you can.
Default: - The API termination setting is not specified in the Launch Template.
@Stability(value=Experimental) @Nullable default Boolean getEbsOptimized()
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.
@Stability(value=Experimental) @Nullable default Boolean getHibernationConfigured()
Default: - Hibernation configuration is not specified in the launch template; defaulting to false.
@Stability(value=Experimental) @Nullable default InstanceInitiatedShutdownBehavior getInstanceInitiatedShutdownBehavior()
Default: - Shutdown behavior is not specified in the launch template; defaults to STOP.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#Using_ChangingInstanceInitiatedShutdownBehavior@Stability(value=Experimental) @Nullable default InstanceType getInstanceType()
Default: - This Launch Template does not specify a default Instance Type.
@Stability(value=Experimental) @Nullable default String getKeyName()
Default: - No SSH access will be possible.
@Stability(value=Experimental) @Nullable default String getLaunchTemplateName()
Default: Automatically generated name
@Stability(value=Experimental) @Nullable default IMachineImage getMachineImage()
Default: - This Launch Template does not specify a default AMI.
@Stability(value=Experimental) @Nullable default Boolean getNitroEnclaveEnabled()
otherwise, it is not enabled for AWS Nitro Enclaves.
Default: - Enablement of Nitro enclaves is not specified in the launch template; defaulting to false.
@Stability(value=Experimental) @Nullable default IRole getRole()
The role must be assumable by the service principal ec2.amazonaws.com:
Default: - No new role is created.
Example:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 Role role = new Role(this, "MyRole", new RoleProps() .assumedBy(new ServicePrincipal("ec2.amazonaws.com")));
@Stability(value=Experimental) @Nullable default ISecurityGroup getSecurityGroup()
Default: No security group is assigned.
@Stability(value=Experimental) @Nullable default LaunchTemplateSpotOptions getSpotOptions()
Default: - Instance launched with this template will not be spot instances.
@Stability(value=Experimental) @Nullable default UserData getUserData()
Default: - This Launch Template creates a UserData based on the type of provided machineImage; no UserData is created if a machineImage is not provided
@Stability(value=Experimental) static LaunchTemplateProps.Builder builder()
LaunchTemplateProps.Builder of LaunchTemplatePropsCopyright © 2021. All rights reserved.