Uses of Class
software.amazon.awscdk.services.ec2.Instance.Builder
-
Uses of Instance.Builder in software.amazon.awscdk.services.ec2
Modifier and TypeMethodDescriptionInstance.Builder.allowAllOutbound
(Boolean allowAllOutbound) Whether the instance could initiate connections to anywhere by default.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.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.Name of SSH keypair to grant access to 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.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.