Class InstanceProps.Jsii$Proxy
- All Implemented Interfaces:
InstanceProps
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- InstanceProps
InstanceProps
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.InstanceProps
InstanceProps.Builder, InstanceProps.Jsii$Proxy
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Jsii$Proxy
(InstanceProps.Builder builder) Constructor that initializes the object based on literal property values passed by theInstanceProps.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
final boolean
final Boolean
Whether the instance could initiate connections to anywhere by default.final String
In which AZ to place the instance within the VPC.final List<BlockDevice>
Specifies how block devices are exposed to the instance.final Boolean
Whether "Detailed Monitoring" is enabled for this instance Keep in mind that Detailed Monitoring results in extra charges.final CloudFormationInit
getInit()
Apply the given CloudFormation Init configuration to the instance at startup.Use the given options for applying CloudFormation Init.final String
The name of the instance.final InstanceType
Type of instance to launch.final String
Name of SSH keypair to grant access to instance.final IMachineImage
AMI to launch.final String
Defines a private IP address to associate with an instance.final Boolean
Propagate the EC2 instance tags to the EBS volumes.final Boolean
Whether IMDSv2 should be required on this instance.final Duration
The length of time to wait for the resourceSignalCount.final IRole
getRole()
An IAM role to associate with the instance profile assigned to this Auto Scaling Group.final ISecurityGroup
Security Group to assign to this instance.final Boolean
Specifies whether to enable an instance launched in a VPC to perform NAT.final UserData
Specific UserData to use.final Boolean
Changes to the UserData force replacement.final IVpc
getVpc()
VPC to launch the instance in.final SubnetSelection
Where to place the instance within the VPC.final int
hashCode()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theInstanceProps.Builder
.
-
-
Method Details
-
getInstanceType
Description copied from interface:InstanceProps
Type of instance to launch.- Specified by:
getInstanceType
in interfaceInstanceProps
-
getMachineImage
Description copied from interface:InstanceProps
AMI to launch.- Specified by:
getMachineImage
in interfaceInstanceProps
-
getVpc
Description copied from interface:InstanceProps
VPC to launch the instance in.- Specified by:
getVpc
in interfaceInstanceProps
-
getAllowAllOutbound
Description copied from interface:InstanceProps
Whether the instance could initiate connections to anywhere by default.This property is only used when you do not provide a security group.
Default: true
- Specified by:
getAllowAllOutbound
in interfaceInstanceProps
-
getAvailabilityZone
Description copied from interface:InstanceProps
In which AZ to place the instance within the VPC.Default: - Random zone.
- Specified by:
getAvailabilityZone
in interfaceInstanceProps
-
getBlockDevices
Description copied from interface:InstanceProps
Specifies how block devices are exposed to the instance. You can specify virtual devices and EBS volumes.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
- Specified by:
getBlockDevices
in interfaceInstanceProps
- See Also:
-
getDetailedMonitoring
Description copied from interface:InstanceProps
Whether "Detailed Monitoring" is enabled for this instance Keep in mind that Detailed Monitoring results in extra charges.Default: - false
- Specified by:
getDetailedMonitoring
in interfaceInstanceProps
- See Also:
-
getInit
Description copied from interface:InstanceProps
Apply the given CloudFormation Init configuration to the instance at startup.Default: - no CloudFormation init
- Specified by:
getInit
in interfaceInstanceProps
-
getInitOptions
Description copied from interface:InstanceProps
Use the given options for applying CloudFormation Init.Describes the configsets to use and the timeout to wait
Default: - default options
- Specified by:
getInitOptions
in interfaceInstanceProps
-
getInstanceName
Description copied from interface:InstanceProps
The name of the instance.Default: - CDK generated name
- Specified by:
getInstanceName
in interfaceInstanceProps
-
getKeyName
Description copied from interface:InstanceProps
Name of SSH keypair to grant access to instance.Default: - No SSH access will be possible.
- Specified by:
getKeyName
in interfaceInstanceProps
-
getPrivateIpAddress
Description copied from interface:InstanceProps
Defines a private IP address to associate with an instance.Private IP should be available within the VPC that the instance is build within.
Default: - no association
- Specified by:
getPrivateIpAddress
in interfaceInstanceProps
-
getPropagateTagsToVolumeOnCreation
Description copied from interface:InstanceProps
Propagate the EC2 instance tags to the EBS volumes.Default: - false
- Specified by:
getPropagateTagsToVolumeOnCreation
in interfaceInstanceProps
-
getRequireImdsv2
Description copied from interface:InstanceProps
Whether IMDSv2 should be required on this instance.Default: - false
- Specified by:
getRequireImdsv2
in interfaceInstanceProps
-
getResourceSignalTimeout
Description copied from interface:InstanceProps
The length of time to wait for the resourceSignalCount.The maximum value is 43200 (12 hours).
Default: Duration.minutes(5)
- Specified by:
getResourceSignalTimeout
in interfaceInstanceProps
-
getRole
Description copied from interface:InstanceProps
An IAM role to associate with the instance profile assigned to this Auto Scaling Group.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();
- Specified by:
getRole
in interfaceInstanceProps
-
getSecurityGroup
Description copied from interface:InstanceProps
Security Group to assign to this instance.Default: - create new security group
- Specified by:
getSecurityGroup
in interfaceInstanceProps
-
getSourceDestCheck
Description copied from interface:InstanceProps
Specifies whether to enable an instance launched in a VPC to perform NAT.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
- Specified by:
getSourceDestCheck
in interfaceInstanceProps
-
getUserData
Description copied from interface:InstanceProps
Specific UserData to use.The UserData may still be mutated after creation.
Default: - A UserData object appropriate for the MachineImage's Operating System is created.
- Specified by:
getUserData
in interfaceInstanceProps
-
getUserDataCausesReplacement
Description copied from interface:InstanceProps
Changes to the UserData force replacement.Depending the EC2 instance type, changing UserData either restarts the instance or replaces the instance.
- Instance store-backed instances are replaced.
- EBS-backed instances are restarted.
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.
- Specified by:
getUserDataCausesReplacement
in interfaceInstanceProps
-
getVpcSubnets
Description copied from interface:InstanceProps
Where to place the instance within the VPC.Default: - Private subnets.
- Specified by:
getVpcSubnets
in interfaceInstanceProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-