| Package | Description |
|---|---|
| software.amazon.awscdk.services.ec2 |
Amazon EC2 Construct Library
|
| Modifier and Type | Method and Description |
|---|---|
LaunchTemplate.Builder |
LaunchTemplate.Builder.blockDevices(List<? extends BlockDevice> blockDevices)
Specifies how block devices are exposed to the instance.
|
LaunchTemplate.Builder |
LaunchTemplate.Builder.cpuCredits(CpuCredits cpuCredits)
CPU credit type for burstable EC2 instance types.
|
static LaunchTemplate.Builder |
LaunchTemplate.Builder.create(software.constructs.Construct scope,
String id) |
LaunchTemplate.Builder |
LaunchTemplate.Builder.detailedMonitoring(Boolean detailedMonitoring)
If set to true, then detailed monitoring will be enabled on instances created with this launch template.
|
LaunchTemplate.Builder |
LaunchTemplate.Builder.disableApiTermination(Boolean disableApiTermination)
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;
|
LaunchTemplate.Builder |
LaunchTemplate.Builder.ebsOptimized(Boolean ebsOptimized)
Indicates whether the instances are optimized for Amazon EBS I/O.
|
LaunchTemplate.Builder |
LaunchTemplate.Builder.hibernationConfigured(Boolean hibernationConfigured)
If you set this parameter to true, the instance is enabled for hibernation.
|
LaunchTemplate.Builder |
LaunchTemplate.Builder.instanceInitiatedShutdownBehavior(InstanceInitiatedShutdownBehavior instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
|
LaunchTemplate.Builder |
LaunchTemplate.Builder.instanceType(InstanceType instanceType)
Type of instance to launch.
|
LaunchTemplate.Builder |
LaunchTemplate.Builder.keyName(String keyName)
Name of SSH keypair to grant access to instance.
|
LaunchTemplate.Builder |
LaunchTemplate.Builder.launchTemplateName(String launchTemplateName)
Name for this launch template.
|
LaunchTemplate.Builder |
LaunchTemplate.Builder.machineImage(IMachineImage machineImage)
The AMI that will be used by instances.
|
LaunchTemplate.Builder |
LaunchTemplate.Builder.nitroEnclaveEnabled(Boolean nitroEnclaveEnabled)
If this parameter is set to true, the instance is enabled for AWS Nitro Enclaves;
|
LaunchTemplate.Builder |
LaunchTemplate.Builder.requireImdsv2(Boolean requireImdsv2)
Whether IMDSv2 should be required on launched instances.
|
LaunchTemplate.Builder |
LaunchTemplate.Builder.role(IRole role)
An IAM role to associate with the instance profile that is used by instances.
|
LaunchTemplate.Builder |
LaunchTemplate.Builder.securityGroup(ISecurityGroup securityGroup)
Security group to assign to instances created with the launch template.
|
LaunchTemplate.Builder |
LaunchTemplate.Builder.spotOptions(LaunchTemplateSpotOptions spotOptions)
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.
|
LaunchTemplate.Builder |
LaunchTemplate.Builder.userData(UserData userData)
The AMI that will be used by instances.
|
Copyright © 2022. All rights reserved.