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
ModifierConstructorDescriptionprotected
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 IPv6 connections to anywhere by default.final Boolean
Whether the instance could initiate connections to anywhere by default.final Boolean
Whether to associate a public IP address to the primary network interface attached to this instance.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 CpuCredits
Specifying the CPU credit type for burstable EC2 instance types (T2, T3, T3a, etc).final Boolean
Whether "Detailed Monitoring" is enabled for this instance Keep in mind that Detailed Monitoring results in extra charges.final Boolean
If true, the instance will not be able to be terminated using the Amazon EC2 console, CLI, or API.final Boolean
Indicates whether the instance is optimized for Amazon EBS I/O.final Boolean
Whether the instance is enabled for AWS Nitro Enclaves.final Boolean
Whether the instance is enabled for hibernation.final CloudFormationInit
getInit()
Apply the given CloudFormation Init configuration to the instance at startup.Use the given options for applying CloudFormation Init.Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).final String
The name of the instance.final IInstanceProfile
The instance profile used to pass role information to EC2 instances.final InstanceType
Type of instance to launch.final Number
The number of IPv6 addresses to associate with the primary network interface.final String
(deprecated) Name of SSH keypair to grant access to instance.final IKeyPair
The SSH keypair to grant access to the instance.final IMachineImage
AMI to launch.final IPlacementGroup
The placement group that you want to launch the instance into.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 Boolean
Add SSM session permissions to the instance role.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
-
getAllowAllIpv6Outbound
Description copied from interface:InstanceProps
Whether the instance could initiate IPv6 connections to anywhere by default.This property is only used when you do not provide a security group.
Default: false
- Specified by:
getAllowAllIpv6Outbound
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
-
getAssociatePublicIpAddress
Description copied from interface:InstanceProps
Whether to associate a public IP address to the primary network interface attached to this instance.You cannot specify this property and
ipv6AddressCount
at the same time.Default: - public IP address is automatically assigned based on default behavior
- Specified by:
getAssociatePublicIpAddress
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:
-
getCreditSpecification
Description copied from interface:InstanceProps
Specifying the CPU credit type for burstable EC2 instance types (T2, T3, T3a, etc).The unlimited CPU credit option is not supported for T3 instances with a dedicated host.
Default: - T2 instances are standard, while T3, T4g, and T3a instances are unlimited.
- Specified by:
getCreditSpecification
in interfaceInstanceProps
-
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:
-
getDisableApiTermination
Description copied from interface:InstanceProps
If true, the instance will not be able to be terminated using the Amazon EC2 console, CLI, or API.To change this attribute after launch, use ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, you can terminate the instance by running the shutdown command from the instance.
Default: false
- Specified by:
getDisableApiTermination
in interfaceInstanceProps
- See Also:
-
getEbsOptimized
Description copied from interface:InstanceProps
Indicates whether the instance is optimized for Amazon EBS I/O.This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
Default: false
- Specified by:
getEbsOptimized
in interfaceInstanceProps
-
getEnclaveEnabled
Description copied from interface:InstanceProps
Whether the instance is enabled for AWS Nitro Enclaves.Nitro Enclaves requires a Nitro-based virtualized parent instance with specific Intel/AMD with at least 4 vCPUs or Graviton with at least 2 vCPUs instance types and Linux/Windows host OS, while the enclave itself supports only Linux OS.
You can't set both
enclaveEnabled
andhibernationEnabled
to true on the same instance.Default: - false
- Specified by:
getEnclaveEnabled
in interfaceInstanceProps
- See Also:
-
getHibernationEnabled
Description copied from interface:InstanceProps
Whether the instance is enabled for hibernation.You can't set both
enclaveEnabled
andhibernationEnabled
to true on the same instance.Default: - false
- Specified by:
getHibernationEnabled
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
-
getInstanceInitiatedShutdownBehavior
Description copied from interface:InstanceProps
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).Default: InstanceInitiatedShutdownBehavior.STOP
- Specified by:
getInstanceInitiatedShutdownBehavior
in interfaceInstanceProps
- See Also:
-
getInstanceName
Description copied from interface:InstanceProps
The name of the instance.Default: - CDK generated name
- Specified by:
getInstanceName
in interfaceInstanceProps
-
getInstanceProfile
Description copied from interface:InstanceProps
The instance profile used to pass role information to EC2 instances.Note: You can provide an instanceProfile or a role, but not both.
Default: - No instance profile
- Specified by:
getInstanceProfile
in interfaceInstanceProps
-
getIpv6AddressCount
Description copied from interface:InstanceProps
The number of IPv6 addresses to associate with the primary network interface.Amazon EC2 chooses the IPv6 addresses from the range of your subnet.
You cannot specify this property and
associatePublicIpAddress
at the same time.Default: - For instances associated with an IPv6 subnet, use 1; otherwise, use 0.
- Specified by:
getIpv6AddressCount
in interfaceInstanceProps
-
getKeyName
Description copied from interface:InstanceProps
(deprecated) Name of SSH keypair to grant access to instance.Default: - No SSH access will be possible.
- Specified by:
getKeyName
in interfaceInstanceProps
-
getKeyPair
Description copied from interface:InstanceProps
The SSH keypair to grant access to the instance.Default: - No SSH access will be possible.
- Specified by:
getKeyPair
in interfaceInstanceProps
-
getPlacementGroup
Description copied from interface:InstanceProps
The placement group that you want to launch the instance into.Default: - no placement group will be used for this instance.
- Specified by:
getPlacementGroup
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
: Note: You can provide an instanceProfile or a role, but not both.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
-
getSsmSessionPermissions
Description copied from interface:InstanceProps
Add SSM session permissions to the instance role.Setting this to
true
adds the necessary permissions to connect to the instance using SSM Session Manager. You can do this from the AWS Console.NOTE: Setting this flag to
true
may not be enough by itself. You must also use an AMI that comes with the SSM Agent, or install the SSM Agent yourself. See Working with SSM Agent in the SSM Developer Guide.Default: false
- Specified by:
getSsmSessionPermissions
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 if `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()
-