@Stability(value=Stable) @Internal public static final class InstanceProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements InstanceProps
InstancePropssoftware.amazon.jsii.JsiiObject.InitializationModeInstanceProps.Builder, InstanceProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(InstanceProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
InstanceProps.Builder. |
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.
|
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.
|
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.
|
Boolean |
getPropagateTagsToVolumeOnCreation()
Propagate the EC2 instance tags to the EBS volumes.
|
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.
|
Boolean |
getSourceDestCheck()
Specifies whether to enable an instance launched in a VPC to perform NAT.
|
UserData |
getUserData()
Specific UserData to use.
|
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() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(InstanceProps.Builder builder)
InstanceProps.Builder.public final InstanceType getInstanceType()
InstancePropsgetInstanceType in interface InstancePropspublic final IMachineImage getMachineImage()
InstancePropsgetMachineImage in interface InstancePropspublic final IVpc getVpc()
InstancePropsgetVpc in interface InstancePropspublic final Boolean getAllowAllOutbound()
InstancePropsThis property is only used when you do not provide a security group.
Default: true
getAllowAllOutbound in interface InstancePropspublic final String getAvailabilityZone()
InstancePropsDefault: - Random zone.
getAvailabilityZone in interface InstancePropspublic final List<BlockDevice> getBlockDevices()
InstancePropsEach 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 InstancePropspublic final Boolean getDetailedMonitoring()
InstancePropsDefault: - false
getDetailedMonitoring in interface InstancePropspublic final CloudFormationInit getInit()
InstancePropsDefault: - no CloudFormation init
getInit in interface InstancePropspublic final ApplyCloudFormationInitOptions getInitOptions()
InstancePropsDescribes the configsets to use and the timeout to wait
Default: - default options
getInitOptions in interface InstancePropspublic final String getInstanceName()
InstancePropsDefault: - CDK generated name
getInstanceName in interface InstancePropspublic final String getKeyName()
InstancePropsDefault: - No SSH access will be possible.
getKeyName in interface InstancePropspublic final String getPrivateIpAddress()
InstancePropsPrivate IP should be available within the VPC that the instance is build within.
Default: - no association
getPrivateIpAddress in interface InstancePropspublic final Boolean getPropagateTagsToVolumeOnCreation()
InstancePropsDefault: - false
getPropagateTagsToVolumeOnCreation in interface InstancePropspublic final Boolean getRequireImdsv2()
InstancePropsDefault: - false
getRequireImdsv2 in interface InstancePropspublic final Duration getResourceSignalTimeout()
InstancePropsThe maximum value is 43200 (12 hours).
Default: Duration.minutes(5)
getResourceSignalTimeout in interface InstancePropspublic 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:
// Example automatically generated from non-compiling source. May contain errors.
Role role = Role.Builder.create(this, "MyRole")
.assumedBy(new ServicePrincipal("ec2.amazonaws.com"))
.build();
getRole in interface InstancePropspublic final ISecurityGroup getSecurityGroup()
InstancePropsDefault: - create new security group
getSecurityGroup in interface InstancePropspublic final Boolean getSourceDestCheck()
InstancePropsThis 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 InstancePropspublic final UserData getUserData()
InstancePropsThe UserData may still be mutated after creation.
Default: - A UserData object appropriate for the MachineImage's Operating System is created.
getUserData in interface InstancePropspublic final Boolean getUserDataCausesReplacement()
InstancePropsDepending 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 InstancePropspublic final SubnetSelection getVpcSubnets()
InstancePropsDefault: - Private subnets.
getVpcSubnets in interface InstanceProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.