Uses of Class
software.amazon.awscdk.services.ec2.Instance.Builder
-
Uses of Instance.Builder in software.amazon.awscdk.services.ec2
Modifier and TypeMethodDescriptionInstance.Builder.allowAllIpv6Outbound
(Boolean allowAllIpv6Outbound) Whether the instance could initiate IPv6 connections to anywhere by default.Instance.Builder.allowAllOutbound
(Boolean allowAllOutbound) Whether the instance could initiate connections to anywhere by default.Instance.Builder.associatePublicIpAddress
(Boolean associatePublicIpAddress) Whether to associate a public IP address to the primary network interface attached to this instance.Instance.Builder.availabilityZone
(String availabilityZone) In which AZ to place the instance within the VPC.Instance.Builder.blockDevices
(List<? extends BlockDevice> blockDevices) Specifies how block devices are exposed to the instance.static Instance.Builder
Instance.Builder.creditSpecification
(CpuCredits creditSpecification) Specifying the CPU credit type for burstable EC2 instance types (T2, T3, T3a, etc).Instance.Builder.detailedMonitoring
(Boolean detailedMonitoring) Whether "Detailed Monitoring" is enabled for this instance Keep in mind that Detailed Monitoring results in extra charges.Instance.Builder.ebsOptimized
(Boolean ebsOptimized) Indicates whether the instance is optimized for Amazon EBS I/O.Instance.Builder.enclaveEnabled
(Boolean enclaveEnabled) Whether the instance is enabled for AWS Nitro Enclaves.Instance.Builder.hibernationEnabled
(Boolean hibernationEnabled) Whether the instance is enabled for hibernation.Instance.Builder.init
(CloudFormationInit init) Apply the given CloudFormation Init configuration to the instance at startup.Instance.Builder.initOptions
(ApplyCloudFormationInitOptions initOptions) Use the given options for applying CloudFormation Init.Instance.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).Instance.Builder.instanceName
(String instanceName) The name of the instance.Instance.Builder.instanceType
(InstanceType instanceType) Type of instance to launch.Instance.Builder.ipv6AddressCount
(Number ipv6AddressCount) The number of IPv6 addresses to associate with the primary network interface.Deprecated.The SSH keypair to grant access to the instance.Instance.Builder.machineImage
(IMachineImage machineImage) AMI to launch.Instance.Builder.placementGroup
(IPlacementGroup placementGroup) The placement group that you want to launch the instance into.Instance.Builder.privateIpAddress
(String privateIpAddress) Defines a private IP address to associate with an instance.Instance.Builder.propagateTagsToVolumeOnCreation
(Boolean propagateTagsToVolumeOnCreation) Propagate the EC2 instance tags to the EBS volumes.Instance.Builder.requireImdsv2
(Boolean requireImdsv2) Whether IMDSv2 should be required on this instance.Instance.Builder.resourceSignalTimeout
(Duration resourceSignalTimeout) The length of time to wait for the resourceSignalCount.An IAM role to associate with the instance profile assigned to this Auto Scaling Group.Instance.Builder.securityGroup
(ISecurityGroup securityGroup) Security Group to assign to this instance.Instance.Builder.sourceDestCheck
(Boolean sourceDestCheck) Specifies whether to enable an instance launched in a VPC to perform NAT.Instance.Builder.ssmSessionPermissions
(Boolean ssmSessionPermissions) Add SSM session permissions to the instance role.Specific UserData to use.Instance.Builder.userDataCausesReplacement
(Boolean userDataCausesReplacement) Changes to the UserData force replacement.VPC to launch the instance in.Instance.Builder.vpcSubnets
(SubnetSelection vpcSubnets) Where to place the instance within the VPC.
keyPair
instead - https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2-readme.html#using-an-existing-ec2-key-pair