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 connections to anywhere by default.final StringIn which AZ to place the instance within the VPC.final List<BlockDevice>Specifies how block devices are exposed to the instance.final BooleanWhether "Detailed Monitoring" is enabled for this instance Keep in mind that Detailed Monitoring results in extra charges.final CloudFormationInitgetInit()Apply the given CloudFormation Init configuration to the instance at startup.Use the given options for applying CloudFormation Init.final StringThe name of the instance.final InstanceTypeType of instance to launch.final StringName of SSH keypair to grant access to instance.final IMachineImageAMI to launch.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 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
-
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
-
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:
-
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:
-
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
-
getInstanceName
Description copied from interface:InstancePropsThe name of the instance.Default: - CDK generated name
- Specified by:
getInstanceNamein interfaceInstanceProps
-
getKeyName
Description copied from interface:InstancePropsName of SSH keypair to grant access to instance.Default: - No SSH access will be possible.
- Specified by:
getKeyNamein 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
-
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 iff `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()
-