Class CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty>
- Enclosing interface:
CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty
CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockDeviceMappings(List<? extends Object> blockDeviceMappings) blockDeviceMappings(IResolvable blockDeviceMappings) build()Builds the configured instance.capacityReservationSpecification(CfnLaunchTemplatePropsMixin.CapacityReservationSpecificationProperty capacityReservationSpecification) capacityReservationSpecification(IResolvable capacityReservationSpecification) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getCpuOptions()cpuOptions(IResolvable cpuOptions) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getCpuOptions()creditSpecification(CfnLaunchTemplatePropsMixin.CreditSpecificationProperty creditSpecification) creditSpecification(IResolvable creditSpecification) disableApiStop(Boolean disableApiStop) disableApiStop(IResolvable disableApiStop) disableApiTermination(Boolean disableApiTermination) disableApiTermination(IResolvable disableApiTermination) ebsOptimized(Boolean ebsOptimized) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getEbsOptimized()ebsOptimized(IResolvable ebsOptimized) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getEbsOptimized()elasticGpuSpecifications(List<? extends Object> elasticGpuSpecifications) elasticGpuSpecifications(IResolvable elasticGpuSpecifications) elasticInferenceAccelerators(List<? extends Object> elasticInferenceAccelerators) elasticInferenceAccelerators(IResolvable elasticInferenceAccelerators) enclaveOptions(CfnLaunchTemplatePropsMixin.EnclaveOptionsProperty enclaveOptions) enclaveOptions(IResolvable enclaveOptions) hibernationOptions(CfnLaunchTemplatePropsMixin.HibernationOptionsProperty hibernationOptions) hibernationOptions(IResolvable hibernationOptions) iamInstanceProfile(CfnLaunchTemplatePropsMixin.IamInstanceProfileProperty iamInstanceProfile) iamInstanceProfile(IResolvable iamInstanceProfile) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getImageId()instanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior) instanceMarketOptions(CfnLaunchTemplatePropsMixin.InstanceMarketOptionsProperty instanceMarketOptions) instanceMarketOptions(IResolvable instanceMarketOptions) instanceRequirements(CfnLaunchTemplatePropsMixin.InstanceRequirementsProperty instanceRequirements) instanceRequirements(IResolvable instanceRequirements) instanceType(String instanceType) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getInstanceType()Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getKernelId()Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getKeyName()licenseSpecifications(List<? extends Object> licenseSpecifications) licenseSpecifications(IResolvable licenseSpecifications) maintenanceOptions(CfnLaunchTemplatePropsMixin.MaintenanceOptionsProperty maintenanceOptions) maintenanceOptions(IResolvable maintenanceOptions) metadataOptions(CfnLaunchTemplatePropsMixin.MetadataOptionsProperty metadataOptions) metadataOptions(IResolvable metadataOptions) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getMonitoring()monitoring(IResolvable monitoring) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getMonitoring()networkInterfaces(List<? extends Object> networkInterfaces) networkInterfaces(IResolvable networkInterfaces) networkPerformanceOptions(CfnLaunchTemplatePropsMixin.NetworkPerformanceOptionsProperty networkPerformanceOptions) networkPerformanceOptions(IResolvable networkPerformanceOptions) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getPlacement()placement(IResolvable placement) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getPlacement()privateDnsNameOptions(CfnLaunchTemplatePropsMixin.PrivateDnsNameOptionsProperty privateDnsNameOptions) privateDnsNameOptions(IResolvable privateDnsNameOptions) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getRamDiskId()securityGroupIds(List<? extends Object> securityGroupIds) securityGroups(List<String> securityGroups) tagSpecifications(List<? extends Object> tagSpecifications) tagSpecifications(IResolvable tagSpecifications) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getUserData()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blockDeviceMappings
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder blockDeviceMappings(IResolvable blockDeviceMappings) - Parameters:
blockDeviceMappings- The block device mapping.- Returns:
this
-
blockDeviceMappings
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder blockDeviceMappings(List<? extends Object> blockDeviceMappings) - Parameters:
blockDeviceMappings- The block device mapping.- Returns:
this
-
capacityReservationSpecification
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder capacityReservationSpecification(IResolvable capacityReservationSpecification) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getCapacityReservationSpecification()- Parameters:
capacityReservationSpecification- The Capacity Reservation targeting option. If you do not specify this parameter, the instance's Capacity Reservation preference defaults toopen, which enables it to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).- Returns:
this
-
capacityReservationSpecification
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder capacityReservationSpecification(CfnLaunchTemplatePropsMixin.CapacityReservationSpecificationProperty capacityReservationSpecification) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getCapacityReservationSpecification()- Parameters:
capacityReservationSpecification- The Capacity Reservation targeting option. If you do not specify this parameter, the instance's Capacity Reservation preference defaults toopen, which enables it to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).- Returns:
this
-
cpuOptions
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder cpuOptions(IResolvable cpuOptions) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getCpuOptions()- Parameters:
cpuOptions- The CPU options for the instance. For more information, see CPU options for Amazon EC2 instances in the Amazon EC2 User Guide .- Returns:
this
-
cpuOptions
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder cpuOptions(CfnLaunchTemplatePropsMixin.CpuOptionsProperty cpuOptions) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getCpuOptions()- Parameters:
cpuOptions- The CPU options for the instance. For more information, see CPU options for Amazon EC2 instances in the Amazon EC2 User Guide .- Returns:
this
-
creditSpecification
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder creditSpecification(IResolvable creditSpecification) - Parameters:
creditSpecification- The credit option for CPU usage of the instance. Valid only for T instances.- Returns:
this
-
creditSpecification
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder creditSpecification(CfnLaunchTemplatePropsMixin.CreditSpecificationProperty creditSpecification) - Parameters:
creditSpecification- The credit option for CPU usage of the instance. Valid only for T instances.- Returns:
this
-
disableApiStop
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder disableApiStop(Boolean disableApiStop) - Parameters:
disableApiStop- Indicates whether to enable the instance for stop protection. For more information, see Enable stop protection for your EC2 instances in the Amazon EC2 User Guide .- Returns:
this
-
disableApiStop
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder disableApiStop(IResolvable disableApiStop) - Parameters:
disableApiStop- Indicates whether to enable the instance for stop protection. For more information, see Enable stop protection for your EC2 instances in the Amazon EC2 User Guide .- Returns:
this
-
disableApiTermination
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder disableApiTermination(Boolean disableApiTermination) - Parameters:
disableApiTermination- Indicates whether termination protection is enabled for the instance. The default isfalse, which means that you can terminate the instance using the Amazon EC2 console, command line tools, or API. You can enable termination protection when you launch an instance, while the instance is running, or while the instance is stopped.- Returns:
this
-
disableApiTermination
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder disableApiTermination(IResolvable disableApiTermination) - Parameters:
disableApiTermination- Indicates whether termination protection is enabled for the instance. The default isfalse, which means that you can terminate the instance using the Amazon EC2 console, command line tools, or API. You can enable termination protection when you launch an instance, while the instance is running, or while the instance is stopped.- Returns:
this
-
ebsOptimized
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder ebsOptimized(Boolean ebsOptimized) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getEbsOptimized()- Parameters:
ebsOptimized- Indicates whether the instance is 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.- Returns:
this
-
ebsOptimized
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder ebsOptimized(IResolvable ebsOptimized) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getEbsOptimized()- Parameters:
ebsOptimized- Indicates whether the instance is 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.- Returns:
this
-
elasticGpuSpecifications
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder elasticGpuSpecifications(IResolvable elasticGpuSpecifications) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getElasticGpuSpecifications()- Parameters:
elasticGpuSpecifications- the value to be set.- Returns:
this
-
elasticGpuSpecifications
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder elasticGpuSpecifications(List<? extends Object> elasticGpuSpecifications) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getElasticGpuSpecifications()- Parameters:
elasticGpuSpecifications- the value to be set.- Returns:
this
-
elasticInferenceAccelerators
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder elasticInferenceAccelerators(IResolvable elasticInferenceAccelerators) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getElasticInferenceAccelerators()- Parameters:
elasticInferenceAccelerators- the value to be set.- Returns:
this
-
elasticInferenceAccelerators
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder elasticInferenceAccelerators(List<? extends Object> elasticInferenceAccelerators) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getElasticInferenceAccelerators()- Parameters:
elasticInferenceAccelerators- the value to be set.- Returns:
this
-
enclaveOptions
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder enclaveOptions(IResolvable enclaveOptions) - Parameters:
enclaveOptions- Indicates whether the instance is enabled for AWS Nitro Enclaves. For more information, see What is Nitro Enclaves? in the AWS Nitro Enclaves User Guide .You can't enable AWS Nitro Enclaves and hibernation on the same instance.
- Returns:
this
-
enclaveOptions
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder enclaveOptions(CfnLaunchTemplatePropsMixin.EnclaveOptionsProperty enclaveOptions) - Parameters:
enclaveOptions- Indicates whether the instance is enabled for AWS Nitro Enclaves. For more information, see What is Nitro Enclaves? in the AWS Nitro Enclaves User Guide .You can't enable AWS Nitro Enclaves and hibernation on the same instance.
- Returns:
this
-
hibernationOptions
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder hibernationOptions(IResolvable hibernationOptions) - Parameters:
hibernationOptions- Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites . For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide .- Returns:
this
-
hibernationOptions
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder hibernationOptions(CfnLaunchTemplatePropsMixin.HibernationOptionsProperty hibernationOptions) - Parameters:
hibernationOptions- Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites . For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide .- Returns:
this
-
iamInstanceProfile
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder iamInstanceProfile(IResolvable iamInstanceProfile) - Parameters:
iamInstanceProfile- The name or Amazon Resource Name (ARN) of an IAM instance profile.- Returns:
this
-
iamInstanceProfile
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder iamInstanceProfile(CfnLaunchTemplatePropsMixin.IamInstanceProfileProperty iamInstanceProfile) - Parameters:
iamInstanceProfile- The name or Amazon Resource Name (ARN) of an IAM instance profile.- Returns:
this
-
imageId
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder imageId(String imageId) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getImageId()- Parameters:
imageId- The ID of the AMI. Alternatively, you can specify a Systems Manager parameter, which will resolve to an AMI ID on launch.Valid formats:
ami-0ac394d6a3exampleresolve:ssm:parameter-nameresolve:ssm:parameter-name:version-numberresolve:ssm:parameter-name:label
For more information, see Use a Systems Manager parameter to find an AMI in the Amazon Elastic Compute Cloud User Guide .
- Returns:
this
-
instanceInitiatedShutdownBehavior
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder instanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getInstanceInitiatedShutdownBehavior()- Parameters:
instanceInitiatedShutdownBehavior- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown). Default:stop- Returns:
this
-
instanceMarketOptions
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder instanceMarketOptions(IResolvable instanceMarketOptions) - Parameters:
instanceMarketOptions- The market (purchasing) option for the instances.- Returns:
this
-
instanceMarketOptions
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder instanceMarketOptions(CfnLaunchTemplatePropsMixin.InstanceMarketOptionsProperty instanceMarketOptions) - Parameters:
instanceMarketOptions- The market (purchasing) option for the instances.- Returns:
this
-
instanceRequirements
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder instanceRequirements(IResolvable instanceRequirements) - Parameters:
instanceRequirements- The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes.You must specify
VCpuCountandMemoryMiB. All other attributes are optional. Any unspecified optional attribute is set to its default.When you specify multiple attributes, you get instance types that satisfy all of the specified attributes. If you specify multiple values for an attribute, you get instance types that satisfy any of the specified values.
To limit the list of instance types from which Amazon EC2 can identify matching instance types, you can use one of the following parameters, but not both in the same request:
AllowedInstanceTypes- The instance types to include in the list. All other instance types are ignored, even if they match your specified attributes.ExcludedInstanceTypes- The instance types to exclude from the list, even if they match your specified attributes.
If you specify
InstanceRequirements, you can't specifyInstanceType.Attribute-based instance type selection is only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to launch instances. If you plan to use the launch template in the launch instance wizard , or with the RunInstances API or AWS::EC2::Instance AWS CloudFormation resource, you can't specify
InstanceRequirements.For more information, see Specify attributes for instance type selection for EC2 Fleet or Spot Fleet and Spot placement score in the Amazon EC2 User Guide .
- Returns:
this
-
instanceRequirements
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder instanceRequirements(CfnLaunchTemplatePropsMixin.InstanceRequirementsProperty instanceRequirements) - Parameters:
instanceRequirements- The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes.You must specify
VCpuCountandMemoryMiB. All other attributes are optional. Any unspecified optional attribute is set to its default.When you specify multiple attributes, you get instance types that satisfy all of the specified attributes. If you specify multiple values for an attribute, you get instance types that satisfy any of the specified values.
To limit the list of instance types from which Amazon EC2 can identify matching instance types, you can use one of the following parameters, but not both in the same request:
AllowedInstanceTypes- The instance types to include in the list. All other instance types are ignored, even if they match your specified attributes.ExcludedInstanceTypes- The instance types to exclude from the list, even if they match your specified attributes.
If you specify
InstanceRequirements, you can't specifyInstanceType.Attribute-based instance type selection is only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to launch instances. If you plan to use the launch template in the launch instance wizard , or with the RunInstances API or AWS::EC2::Instance AWS CloudFormation resource, you can't specify
InstanceRequirements.For more information, see Specify attributes for instance type selection for EC2 Fleet or Spot Fleet and Spot placement score in the Amazon EC2 User Guide .
- Returns:
this
-
instanceType
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder instanceType(String instanceType) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getInstanceType()- Parameters:
instanceType- The instance type. For more information, see Amazon EC2 instance types in the Amazon EC2 User Guide . If you specifyInstanceType, you can't specifyInstanceRequirements.- Returns:
this
-
kernelId
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder kernelId(String kernelId) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getKernelId()- Parameters:
kernelId- The ID of the kernel. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon EC2 User Guide .- Returns:
this
-
keyName
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder keyName(String keyName) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getKeyName()- Parameters:
keyName- The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair .If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
- Returns:
this
-
licenseSpecifications
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder licenseSpecifications(IResolvable licenseSpecifications) - Parameters:
licenseSpecifications- The license configurations.- Returns:
this
-
licenseSpecifications
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder licenseSpecifications(List<? extends Object> licenseSpecifications) - Parameters:
licenseSpecifications- The license configurations.- Returns:
this
-
maintenanceOptions
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder maintenanceOptions(IResolvable maintenanceOptions) - Parameters:
maintenanceOptions- The maintenance options of your instance.- Returns:
this
-
maintenanceOptions
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder maintenanceOptions(CfnLaunchTemplatePropsMixin.MaintenanceOptionsProperty maintenanceOptions) - Parameters:
maintenanceOptions- The maintenance options of your instance.- Returns:
this
-
metadataOptions
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder metadataOptions(IResolvable metadataOptions) - Parameters:
metadataOptions- The metadata options for the instance. For more information, see Configure the Instance Metadata Service options in the Amazon EC2 User Guide .- Returns:
this
-
metadataOptions
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder metadataOptions(CfnLaunchTemplatePropsMixin.MetadataOptionsProperty metadataOptions) - Parameters:
metadataOptions- The metadata options for the instance. For more information, see Configure the Instance Metadata Service options in the Amazon EC2 User Guide .- Returns:
this
-
monitoring
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder monitoring(IResolvable monitoring) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getMonitoring()- Parameters:
monitoring- The monitoring for the instance.- Returns:
this
-
monitoring
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder monitoring(CfnLaunchTemplatePropsMixin.MonitoringProperty monitoring) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getMonitoring()- Parameters:
monitoring- The monitoring for the instance.- Returns:
this
-
networkInterfaces
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder networkInterfaces(IResolvable networkInterfaces) - Parameters:
networkInterfaces- The network interfaces for the instance.- Returns:
this
-
networkInterfaces
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder networkInterfaces(List<? extends Object> networkInterfaces) - Parameters:
networkInterfaces- The network interfaces for the instance.- Returns:
this
-
networkPerformanceOptions
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder networkPerformanceOptions(IResolvable networkPerformanceOptions) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getNetworkPerformanceOptions()- Parameters:
networkPerformanceOptions- The settings for the network performance options for the instance. For more information, see EC2 instance bandwidth weighting configuration .- Returns:
this
-
networkPerformanceOptions
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder networkPerformanceOptions(CfnLaunchTemplatePropsMixin.NetworkPerformanceOptionsProperty networkPerformanceOptions) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getNetworkPerformanceOptions()- Parameters:
networkPerformanceOptions- The settings for the network performance options for the instance. For more information, see EC2 instance bandwidth weighting configuration .- Returns:
this
-
placement
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder placement(IResolvable placement) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getPlacement()- Parameters:
placement- The placement for the instance.- Returns:
this
-
placement
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder placement(CfnLaunchTemplatePropsMixin.PlacementProperty placement) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getPlacement()- Parameters:
placement- The placement for the instance.- Returns:
this
-
privateDnsNameOptions
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder privateDnsNameOptions(IResolvable privateDnsNameOptions) - Parameters:
privateDnsNameOptions- The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries should be handled. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide .- Returns:
this
-
privateDnsNameOptions
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder privateDnsNameOptions(CfnLaunchTemplatePropsMixin.PrivateDnsNameOptionsProperty privateDnsNameOptions) - Parameters:
privateDnsNameOptions- The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries should be handled. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide .- Returns:
this
-
ramDiskId
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder ramDiskId(String ramDiskId) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getRamDiskId()- Parameters:
ramDiskId- The ID of the RAM disk.We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided kernels in the Amazon EC2 User Guide .
- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder securityGroupIds(List<? extends Object> securityGroupIds) - Parameters:
securityGroupIds- The IDs of the security groups. You can specify the IDs of existing security groups and references to resources created by the stack template.If you specify a network interface, you must specify any security groups as part of the network interface instead.
- Returns:
this
-
securityGroups
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder securityGroups(List<String> securityGroups) - Parameters:
securityGroups- The names of the security groups. For a nondefault VPC, you must use security group IDs instead. If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.- Returns:
this
-
tagSpecifications
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder tagSpecifications(IResolvable tagSpecifications) - Parameters:
tagSpecifications- The tags to apply to resources that are created during instance launch. To tag the launch template itself, use TagSpecifications .- Returns:
this
-
tagSpecifications
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder tagSpecifications(List<? extends Object> tagSpecifications) - Parameters:
tagSpecifications- The tags to apply to resources that are created during instance launch. To tag the launch template itself, use TagSpecifications .- Returns:
this
-
userData
@Stability(Stable) public CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.Builder userData(String userData) Sets the value ofCfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty.getUserData()- Parameters:
userData- The user data to make available to the instance. You must provide base64-encoded text. User data is limited to 16 KB. For more information, see Run commands when you launch an EC2 instance with user data input in the Amazon EC2 User Guide .If you are creating the launch template for use with AWS Batch , the user data must be provided in the MIME multi-part archive format . For more information, see Amazon EC2 user data in launch templates in the AWS Batch User Guide .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty>- Returns:
- a new instance of
CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty - Throws:
NullPointerException- if any required attribute was not provided
-