public static final class InstanceProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements InstanceProps
InstanceProps
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(java.lang.Object o) |
java.lang.Boolean |
getAllowAllOutbound()
Whether the instance could initiate connections to anywhere by default.
|
java.lang.String |
getAvailabilityZone()
In which AZ to place the instance within the VPC.
|
java.util.List<BlockDevice> |
getBlockDevices()
Specifies how block devices are exposed to the instance.
|
java.lang.Boolean |
getDetailedMonitoring()
Whether "Detailed Monitoring" is enabled for this instance Keep in mind that Detailed Monitoring results in extra charges.
|
CloudFormationInit |
getInit()
Apply the given CloudFormation Init configuration to the instance at startup.
|
ApplyCloudFormationInitOptions |
getInitOptions()
Use the given options for applying CloudFormation Init.
|
java.lang.String |
getInstanceName()
The name of the instance.
|
InstanceType |
getInstanceType()
Type of instance to launch.
|
java.lang.String |
getKeyName()
Name of SSH keypair to grant access to instance.
|
IMachineImage |
getMachineImage()
AMI to launch.
|
java.lang.String |
getPrivateIpAddress()
Defines a private IP address to associate with an instance.
|
java.lang.Boolean |
getPropagateTagsToVolumeOnCreation()
Propagate the EC2 instance tags to the EBS volumes.
|
java.lang.Boolean |
getRequireImdsv2()
Whether IMDSv2 should be required on this 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.
|
java.lang.Boolean |
getSourceDestCheck()
Specifies whether to enable an instance launched in a VPC to perform NAT.
|
UserData |
getUserData()
Specific UserData to use.
|
java.lang.Boolean |
getUserDataCausesReplacement()
Changes to the UserData force replacement.
|
IVpc |
getVpc()
VPC to launch the instance in.
|
SubnetSelection |
getVpcSubnets()
Where to place the instance within the VPC.
|
int |
hashCode() |
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 final InstanceType getInstanceType()
InstanceProps
getInstanceType
in interface InstanceProps
public final IMachineImage getMachineImage()
InstanceProps
getMachineImage
in interface InstanceProps
public final IVpc getVpc()
InstanceProps
getVpc
in interface InstanceProps
public final java.lang.Boolean getAllowAllOutbound()
InstanceProps
This property is only used when you do not provide a security group.
Default: true
getAllowAllOutbound
in interface InstanceProps
public final java.lang.String getAvailabilityZone()
InstanceProps
Default: - Random zone.
getAvailabilityZone
in interface InstanceProps
public final java.util.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 final java.lang.Boolean getDetailedMonitoring()
InstanceProps
Default: - false
getDetailedMonitoring
in interface InstanceProps
http://aws.amazon.com/cloudwatch/pricing/
public final CloudFormationInit getInit()
InstanceProps
Default: - no CloudFormation init
getInit
in interface InstanceProps
public final ApplyCloudFormationInitOptions getInitOptions()
InstanceProps
Describes the configsets to use and the timeout to wait
Default: - default options
getInitOptions
in interface InstanceProps
public final java.lang.String getInstanceName()
InstanceProps
Default: - CDK generated name
getInstanceName
in interface InstanceProps
public final java.lang.String getKeyName()
InstanceProps
Default: - No SSH access will be possible.
getKeyName
in interface InstanceProps
public final java.lang.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 final java.lang.Boolean getPropagateTagsToVolumeOnCreation()
InstanceProps
Default: - false
getPropagateTagsToVolumeOnCreation
in interface InstanceProps
public final java.lang.Boolean getRequireImdsv2()
InstanceProps
Default: - false
getRequireImdsv2
in interface InstanceProps
public final Duration getResourceSignalTimeout()
InstanceProps
The maximum value is 43200 (12 hours).
Default: Duration.minutes(5)
getResourceSignalTimeout
in interface InstanceProps
public final 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:
Role role = Role.Builder.create(this, "MyRole") .assumedBy(new ServicePrincipal("ec2.amazonaws.com")) .build();
getRole
in interface InstanceProps
public final ISecurityGroup getSecurityGroup()
InstanceProps
Default: - create new security group
getSecurityGroup
in interface InstanceProps
public final java.lang.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 final 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 final java.lang.Boolean getUserDataCausesReplacement()
InstanceProps
Depending the EC2 instance type, changing UserData either restarts the instance or replaces the instance.
By default, restarting does not execute the new UserData so you will need a different mechanism to ensure the instance is restarted.
Setting this to true
will make the instance's Logical ID depend on the
UserData, which will cause CloudFormation to replace it if the UserData
changes.
Default: - true iff `initOptions` is specified, false otherwise.
getUserDataCausesReplacement
in interface InstanceProps
public final SubnetSelection getVpcSubnets()
InstanceProps
Default: - Private subnets.
getVpcSubnets
in interface InstanceProps
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()