| Package | Description |
|---|---|
| software.amazon.awscdk.services.ec2 |
Amazon EC2 Construct Library
|
| Modifier and Type | Method and Description |
|---|---|
Instance.Builder |
Instance.Builder.allowAllOutbound(Boolean allowAllOutbound)
Whether the instance could initiate connections to anywhere by default.
|
Instance.Builder |
Instance.Builder.availabilityZone(String availabilityZone)
In which AZ to place the instance within the VPC.
|
Instance.Builder |
Instance.Builder.blockDevices(List<? extends BlockDevice> blockDevices)
Specifies how block devices are exposed to the instance.
|
static Instance.Builder |
Instance.Builder.create(software.constructs.Construct scope,
String id) |
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 |
Instance.Builder.init(CloudFormationInit init)
Apply the given CloudFormation Init configuration to the instance at startup.
|
Instance.Builder |
Instance.Builder.initOptions(ApplyCloudFormationInitOptions initOptions)
Use the given options for applying CloudFormation Init.
|
Instance.Builder |
Instance.Builder.instanceName(String instanceName)
The name of the instance.
|
Instance.Builder |
Instance.Builder.instanceType(InstanceType instanceType)
Type of instance to launch.
|
Instance.Builder |
Instance.Builder.keyName(String keyName)
Name of SSH keypair to grant access to instance.
|
Instance.Builder |
Instance.Builder.machineImage(IMachineImage machineImage)
AMI to launch.
|
Instance.Builder |
Instance.Builder.privateIpAddress(String privateIpAddress)
Defines a private IP address to associate with an instance.
|
Instance.Builder |
Instance.Builder.propagateTagsToVolumeOnCreation(Boolean propagateTagsToVolumeOnCreation)
Propagate the EC2 instance tags to the EBS volumes.
|
Instance.Builder |
Instance.Builder.requireImdsv2(Boolean requireImdsv2)
Whether IMDSv2 should be required on this instance.
|
Instance.Builder |
Instance.Builder.resourceSignalTimeout(Duration resourceSignalTimeout)
The length of time to wait for the resourceSignalCount.
|
Instance.Builder |
Instance.Builder.role(IRole role)
An IAM role to associate with the instance profile assigned to this Auto Scaling Group.
|
Instance.Builder |
Instance.Builder.securityGroup(ISecurityGroup securityGroup)
Security Group to assign to this instance.
|
Instance.Builder |
Instance.Builder.sourceDestCheck(Boolean sourceDestCheck)
Specifies whether to enable an instance launched in a VPC to perform NAT.
|
Instance.Builder |
Instance.Builder.userData(UserData userData)
Specific UserData to use.
|
Instance.Builder |
Instance.Builder.userDataCausesReplacement(Boolean userDataCausesReplacement)
Changes to the UserData force replacement.
|
Instance.Builder |
Instance.Builder.vpc(IVpc vpc)
VPC to launch the instance in.
|
Instance.Builder |
Instance.Builder.vpcSubnets(SubnetSelection vpcSubnets)
Where to place the instance within the VPC.
|
Copyright © 2022. All rights reserved.