Uses of Class
software.amazon.awscdk.services.ec2.Instance.Builder
Packages that use Instance.Builder
-
Uses of Instance.Builder in software.amazon.awscdk.services.ec2
Methods in software.amazon.awscdk.services.ec2 that return Instance.BuilderModifier 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.BuilderInstance.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.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.instanceName(String instanceName) The name of the instance.Instance.Builder.instanceType(InstanceType instanceType) Type of instance to launch.Deprecated.The SSH keypair to grant access to the instance.Instance.Builder.machineImage(IMachineImage machineImage) AMI to launch.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.
keyPairinstead - https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2-readme.html#using-an-existing-ec2-key-pair