@Stability(value=Experimental) public static final class LaunchTemplateProps.Builder extends Object implements software.amazon.jsii.Builder<LaunchTemplateProps>
LaunchTemplateProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public LaunchTemplateProps.Builder blockDevices(List<? extends BlockDevice> blockDevices)
LaunchTemplateProps.getBlockDevices()blockDevices - 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.this@Stability(value=Experimental) public LaunchTemplateProps.Builder cpuCredits(CpuCredits cpuCredits)
LaunchTemplateProps.getCpuCredits()cpuCredits - CPU credit type for burstable EC2 instance types.this@Stability(value=Experimental) public LaunchTemplateProps.Builder detailedMonitoring(Boolean detailedMonitoring)
LaunchTemplateProps.getDetailedMonitoring()detailedMonitoring - If set to true, then detailed monitoring will be enabled on instances created with this launch template.this@Stability(value=Experimental) public LaunchTemplateProps.Builder disableApiTermination(Boolean disableApiTermination)
LaunchTemplateProps.getDisableApiTermination()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;.
otherwise, you can.this@Stability(value=Experimental) public LaunchTemplateProps.Builder ebsOptimized(Boolean ebsOptimized)
LaunchTemplateProps.getEbsOptimized()ebsOptimized - 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.this@Stability(value=Experimental) public LaunchTemplateProps.Builder hibernationConfigured(Boolean hibernationConfigured)
LaunchTemplateProps.getHibernationConfigured()hibernationConfigured - If you set this parameter to true, the instance is enabled for hibernation.this@Stability(value=Experimental) public LaunchTemplateProps.Builder instanceInitiatedShutdownBehavior(InstanceInitiatedShutdownBehavior instanceInitiatedShutdownBehavior)
LaunchTemplateProps.getInstanceInitiatedShutdownBehavior()instanceInitiatedShutdownBehavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).this@Stability(value=Experimental) public LaunchTemplateProps.Builder instanceType(InstanceType instanceType)
LaunchTemplateProps.getInstanceType()instanceType - Type of instance to launch.this@Stability(value=Experimental) public LaunchTemplateProps.Builder keyName(String keyName)
LaunchTemplateProps.getKeyName()keyName - Name of SSH keypair to grant access to instance.this@Stability(value=Experimental) public LaunchTemplateProps.Builder launchTemplateName(String launchTemplateName)
LaunchTemplateProps.getLaunchTemplateName()launchTemplateName - Name for this launch template.this@Stability(value=Experimental) public LaunchTemplateProps.Builder machineImage(IMachineImage machineImage)
LaunchTemplateProps.getMachineImage()machineImage - The AMI that will be used by instances.this@Stability(value=Experimental) public LaunchTemplateProps.Builder nitroEnclaveEnabled(Boolean nitroEnclaveEnabled)
LaunchTemplateProps.getNitroEnclaveEnabled()nitroEnclaveEnabled - If this parameter is set to true, the instance is enabled for AWS Nitro Enclaves;.
otherwise, it is not enabled for AWS Nitro Enclaves.this@Stability(value=Experimental) public LaunchTemplateProps.Builder role(IRole role)
LaunchTemplateProps.getRole()role - 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:this@Stability(value=Experimental) public LaunchTemplateProps.Builder securityGroup(ISecurityGroup securityGroup)
LaunchTemplateProps.getSecurityGroup()securityGroup - Security group to assign to instances created with the launch template.this@Stability(value=Experimental) public LaunchTemplateProps.Builder spotOptions(LaunchTemplateSpotOptions spotOptions)
LaunchTemplateProps.getSpotOptions()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.this@Stability(value=Experimental) public LaunchTemplateProps.Builder userData(UserData userData)
LaunchTemplateProps.getUserData()userData - The AMI that will be used by instances.this@Stability(value=Experimental) public LaunchTemplateProps build()
build in interface software.amazon.jsii.Builder<LaunchTemplateProps>LaunchTemplatePropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.