@Stability(value=Stable) public static final class InstanceProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements InstanceProps
InstanceProps
software.amazon.jsii.JsiiObject.InitializationMode
InstanceProps.Builder, InstanceProps.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Boolean |
getAllowAllOutbound()
Whether the instance could initiate connections to anywhere by default.
|
String |
getAvailabilityZone()
In which AZ to place the instance within the VPC.
|
List<BlockDevice> |
getBlockDevices()
Specifies how block devices are exposed to the instance.
|
String |
getInstanceName()
The name of the instance.
|
InstanceType |
getInstanceType()
Type of instance to launch.
|
String |
getKeyName()
Name of SSH keypair to grant access to instance.
|
IMachineImage |
getMachineImage()
AMI to launch.
|
String |
getPrivateIpAddress()
Defines a private IP address to associate with an instance.
|
Duration |
getResourceSignalTimeout()
The length of time to wait for the resourceSignalCount.
|
IRole |
getRole()
An IAM role to associate with the instance profile assigned to this Auto Scaling Group.
|
ISecurityGroup |
getSecurityGroup()
Security Group to assign to this instance.
|
Boolean |
getSourceDestCheck()
Specifies whether to enable an instance launched in a VPC to perform NAT.
|
UserData |
getUserData()
Specific UserData to use.
|
IVpc |
getVpc()
VPC to launch the instance in.
|
SubnetSelection |
getVpcSubnets()
Where to place the instance within the VPC.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public InstanceType getInstanceType()
InstanceProps
getInstanceType
in interface InstanceProps
public IMachineImage getMachineImage()
InstanceProps
getMachineImage
in interface InstanceProps
public IVpc getVpc()
InstanceProps
getVpc
in interface InstanceProps
public Boolean getAllowAllOutbound()
InstanceProps
This property is only used when you do not provide a security group.
Default: true
getAllowAllOutbound
in interface InstanceProps
public String getAvailabilityZone()
InstanceProps
Default: - Random zone.
getAvailabilityZone
in interface InstanceProps
public List<BlockDevice> getBlockDevices()
InstanceProps
Each instance that is launched has an associated root device volume, either an Amazon EBS volume or an instance store volume. You can use block device mappings to specify additional EBS volumes or instance store volumes to attach to an instance when it is launched.
Default: - Uses the block device mapping of the AMI
getBlockDevices
in interface InstanceProps
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html
public String getInstanceName()
InstanceProps
Default: - CDK generated name
getInstanceName
in interface InstanceProps
public String getKeyName()
InstanceProps
Default: - No SSH access will be possible.
getKeyName
in interface InstanceProps
public String getPrivateIpAddress()
InstanceProps
Private IP should be available within the VPC that the instance is build within.
Default: - no association
getPrivateIpAddress
in interface InstanceProps
public Duration getResourceSignalTimeout()
InstanceProps
The maximum value is 43200 (12 hours).
Default: Duration.minutes(5)
getResourceSignalTimeout
in interface InstanceProps
public IRole getRole()
InstanceProps
The role must be assumable by the service principal ec2.amazonaws.com
:
Default: - A role will automatically be created, it can be accessed via the `role` property
Example:
// Example automatically generated. See https://github.com/aws/jsii/issues/826 var role = Role.Builder.create(this, "MyRole") .assumedBy(new ServicePrincipal("ec2.amazonaws.com")) .build();
getRole
in interface InstanceProps
public ISecurityGroup getSecurityGroup()
InstanceProps
Default: - create new security group
getSecurityGroup
in interface InstanceProps
public Boolean getSourceDestCheck()
InstanceProps
This controls whether source/destination checking is enabled on the instance. A value of true means that checking is enabled, and false means that checking is disabled. The value must be false for the instance to perform NAT.
Default: true
getSourceDestCheck
in interface InstanceProps
public UserData getUserData()
InstanceProps
The UserData may still be mutated after creation.
Default: - A UserData object appropriate for the MachineImage's Operating System is created.
getUserData
in interface InstanceProps
public SubnetSelection getVpcSubnets()
InstanceProps
Default: - Private subnets.
getVpcSubnets
in interface InstanceProps
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson
in interface software.amazon.jsii.JsiiSerializable
Copyright © 2020. All rights reserved.