Uses of Class
software.amazon.awscdk.services.ec2.LaunchTemplate.Builder
Packages that use LaunchTemplate.Builder
-
Uses of LaunchTemplate.Builder in software.amazon.awscdk.services.ec2
Methods in software.amazon.awscdk.services.ec2 that return LaunchTemplate.BuilderModifier and TypeMethodDescriptionLaunchTemplate.Builder.associatePublicIpAddress
(Boolean associatePublicIpAddress) Whether instances should have a public IP addresses associated with them.LaunchTemplate.Builder.blockDevices
(List<? extends BlockDevice> blockDevices) Specifies how block devices are exposed to the instance.LaunchTemplate.Builder.cpuCredits
(CpuCredits cpuCredits) CPU credit type for burstable EC2 instance types.static 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.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.ebsOptimized
(Boolean ebsOptimized) Indicates whether the instances are optimized for Amazon EBS I/O.LaunchTemplate.Builder.hibernationConfigured
(Boolean hibernationConfigured) If you set this parameter to true, the instance is enabled for hibernation.LaunchTemplate.Builder.httpEndpoint
(Boolean httpEndpoint) Enables or disables the HTTP metadata endpoint on your instances.LaunchTemplate.Builder.httpProtocolIpv6
(Boolean httpProtocolIpv6) Enables or disables the IPv6 endpoint for the instance metadata service.LaunchTemplate.Builder.httpPutResponseHopLimit
(Number httpPutResponseHopLimit) The desired HTTP PUT response hop limit for instance metadata requests.LaunchTemplate.Builder.httpTokens
(LaunchTemplateHttpTokens httpTokens) The state of token usage for your instance metadata requests.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.instanceMetadataTags
(Boolean instanceMetadataTags) Set to enabled to allow access to instance tags from the instance metadata.LaunchTemplate.Builder.instanceProfile
(IInstanceProfile instanceProfile) The instance profile used to pass role information to EC2 instances.LaunchTemplate.Builder.instanceType
(InstanceType instanceType) Type of instance to launch.Deprecated.The SSH keypair to grant access to the instance.LaunchTemplate.Builder.launchTemplateName
(String launchTemplateName) Name for this launch template.LaunchTemplate.Builder.machineImage
(IMachineImage machineImage) The AMI that will be used by instances.LaunchTemplate.Builder.nitroEnclaveEnabled
(Boolean nitroEnclaveEnabled) If this parameter is set to true, the instance is enabled for AWS Nitro Enclaves;LaunchTemplate.Builder.requireImdsv2
(Boolean requireImdsv2) Whether IMDSv2 should be required on launched instances.An IAM role to associate with the instance profile that is used by instances.LaunchTemplate.Builder.securityGroup
(ISecurityGroup securityGroup) Security group to assign to instances created with the launch template.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.The AMI that will be used by instances.LaunchTemplate.Builder.versionDescription
(String versionDescription) A description for the first version of the launch template.
keyPair
instead - https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2-readme.html#using-an-existing-ec2-key-pair