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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.InstanceProps
InstanceProps.Builder, InstanceProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(InstanceProps.Builder builder) Constructor that initializes the object based on literal property values passed by theInstanceProps.Builder.protectedJsii$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.JsonNodefinal booleanfinal BooleanWhether the instance could initiate IPv6 connections to anywhere by default.final BooleanWhether the instance could initiate connections to anywhere by default.final BooleanWhether to associate a public IP address to the primary network interface attached to this instance.final StringIn which AZ to place the instance within the VPC.final List<BlockDevice>Specifies how block devices are exposed to the instance.final CpuCreditsSpecifying the CPU credit type for burstable EC2 instance types (T2, T3, T3a, etc).final BooleanWhether "Detailed Monitoring" is enabled for this instance Keep in mind that Detailed Monitoring results in extra charges.final BooleanIf true, the instance will not be able to be terminated using the Amazon EC2 console, CLI, or API.final BooleanIndicates whether the instance is optimized for Amazon EBS I/O.final BooleanWhether the instance is enabled for AWS Nitro Enclaves.final BooleanWhether the instance is enabled for hibernation.final CloudFormationInitgetInit()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 StringThe name of the instance.final InstanceTypeType of instance to launch.final NumberThe number of IPv6 addresses to associate with the primary network interface.final String(deprecated) Name of SSH keypair to grant access to instance.final IKeyPairThe SSH keypair to grant access to the instance.final IMachineImageAMI to launch.final IPlacementGroupThe placement group that you want to launch the instance into.final StringDefines a private IP address to associate with an instance.final BooleanPropagate the EC2 instance tags to the EBS volumes.final BooleanWhether IMDSv2 should be required on this instance.final DurationThe length of time to wait for the resourceSignalCount.final IRolegetRole()An IAM role to associate with the instance profile assigned to this Auto Scaling Group.final ISecurityGroupSecurity Group to assign to this instance.final BooleanSpecifies whether to enable an instance launched in a VPC to perform NAT.final BooleanAdd SSM session permissions to the instance role.final UserDataSpecific UserData to use.final BooleanChanges to the UserData force replacement.final IVpcgetVpc()VPC to launch the instance in.final SubnetSelectionWhere to place the instance within the VPC.final inthashCode()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:InstancePropsType of instance to launch.- Specified by:
getInstanceTypein interfaceInstanceProps
-
getMachineImage
Description copied from interface:InstancePropsAMI to launch.- Specified by:
getMachineImagein interfaceInstanceProps
-
getVpc
Description copied from interface:InstancePropsVPC to launch the instance in.- Specified by:
getVpcin interfaceInstanceProps
-
getAllowAllIpv6Outbound
Description copied from interface:InstancePropsWhether 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:
getAllowAllIpv6Outboundin interfaceInstanceProps
-
getAllowAllOutbound
Description copied from interface:InstancePropsWhether 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:
getAllowAllOutboundin interfaceInstanceProps
-
getAssociatePublicIpAddress
Description copied from interface:InstancePropsWhether to associate a public IP address to the primary network interface attached to this instance.You cannot specify this property and
ipv6AddressCountat the same time.Default: - public IP address is automatically assigned based on default behavior
- Specified by:
getAssociatePublicIpAddressin interfaceInstanceProps
-
getAvailabilityZone
Description copied from interface:InstancePropsIn which AZ to place the instance within the VPC.Default: - Random zone.
- Specified by:
getAvailabilityZonein interfaceInstanceProps
-
getBlockDevices
Description copied from interface:InstancePropsSpecifies 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:
getBlockDevicesin interfaceInstanceProps- See Also:
-
getCreditSpecification
Description copied from interface:InstancePropsSpecifying 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:
getCreditSpecificationin interfaceInstanceProps
-
getDetailedMonitoring
Description copied from interface:InstancePropsWhether "Detailed Monitoring" is enabled for this instance Keep in mind that Detailed Monitoring results in extra charges.Default: - false
- Specified by:
getDetailedMonitoringin interfaceInstanceProps- See Also:
-
getDisableApiTermination
Description copied from interface:InstancePropsIf 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:
getDisableApiTerminationin interfaceInstanceProps- See Also:
-
getEbsOptimized
Description copied from interface:InstancePropsIndicates 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:
getEbsOptimizedin interfaceInstanceProps
-
getEnclaveEnabled
Description copied from interface:InstancePropsWhether 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
enclaveEnabledandhibernationEnabledto true on the same instance.Default: - false
- Specified by:
getEnclaveEnabledin interfaceInstanceProps- See Also:
-
getHibernationEnabled
Description copied from interface:InstancePropsWhether the instance is enabled for hibernation.You can't set both
enclaveEnabledandhibernationEnabledto true on the same instance.Default: - false
- Specified by:
getHibernationEnabledin interfaceInstanceProps- See Also:
-
getInit
Description copied from interface:InstancePropsApply the given CloudFormation Init configuration to the instance at startup.Default: - no CloudFormation init
- Specified by:
getInitin interfaceInstanceProps
-
getInitOptions
Description copied from interface:InstancePropsUse the given options for applying CloudFormation Init.Describes the configsets to use and the timeout to wait
Default: - default options
- Specified by:
getInitOptionsin interfaceInstanceProps
-
getInstanceInitiatedShutdownBehavior
Description copied from interface:InstancePropsIndicates 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:
getInstanceInitiatedShutdownBehaviorin interfaceInstanceProps- See Also:
-
getInstanceName
Description copied from interface:InstancePropsThe name of the instance.Default: - CDK generated name
- Specified by:
getInstanceNamein interfaceInstanceProps
-
getIpv6AddressCount
Description copied from interface:InstancePropsThe 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
associatePublicIpAddressat the same time.Default: - For instances associated with an IPv6 subnet, use 1; otherwise, use 0.
- Specified by:
getIpv6AddressCountin 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:
getKeyNamein interfaceInstanceProps
-
getKeyPair
Description copied from interface:InstancePropsThe SSH keypair to grant access to the instance.Default: - No SSH access will be possible.
- Specified by:
getKeyPairin interfaceInstanceProps
-
getPlacementGroup
Description copied from interface:InstancePropsThe placement group that you want to launch the instance into.Default: - no placement group will be used for this instance.
- Specified by:
getPlacementGroupin interfaceInstanceProps
-
getPrivateIpAddress
Description copied from interface:InstancePropsDefines 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:
getPrivateIpAddressin interfaceInstanceProps
-
getPropagateTagsToVolumeOnCreation
Description copied from interface:InstancePropsPropagate the EC2 instance tags to the EBS volumes.Default: - false
- Specified by:
getPropagateTagsToVolumeOnCreationin interfaceInstanceProps
-
getRequireImdsv2
Description copied from interface:InstancePropsWhether IMDSv2 should be required on this instance.Default: - false
- Specified by:
getRequireImdsv2in interfaceInstanceProps
-
getResourceSignalTimeout
Description copied from interface:InstancePropsThe length of time to wait for the resourceSignalCount.The maximum value is 43200 (12 hours).
Default: Duration.minutes(5)
- Specified by:
getResourceSignalTimeoutin interfaceInstanceProps
-
getRole
Description copied from interface:InstancePropsAn 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:
getRolein interfaceInstanceProps
-
getSecurityGroup
Description copied from interface:InstancePropsSecurity Group to assign to this instance.Default: - create new security group
- Specified by:
getSecurityGroupin interfaceInstanceProps
-
getSourceDestCheck
Description copied from interface:InstancePropsSpecifies 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:
getSourceDestCheckin interfaceInstanceProps
-
getSsmSessionPermissions
Description copied from interface:InstancePropsAdd SSM session permissions to the instance role.Setting this to
trueadds 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
truemay 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:
getSsmSessionPermissionsin interfaceInstanceProps
-
getUserData
Description copied from interface:InstancePropsSpecific 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:
getUserDatain interfaceInstanceProps
-
getUserDataCausesReplacement
Description copied from interface:InstancePropsChanges 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
truewill 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:
getUserDataCausesReplacementin interfaceInstanceProps
-
getVpcSubnets
Description copied from interface:InstancePropsWhere to place the instance within the VPC.Default: - Private subnets.
- Specified by:
getVpcSubnetsin interfaceInstanceProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-