Class BastionHostLinuxProps.Jsii$Proxy
- All Implemented Interfaces:
BastionHostLinuxProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
BastionHostLinuxProps
BastionHostLinuxProps-
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.BastionHostLinuxProps
BastionHostLinuxProps.Builder, BastionHostLinuxProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(BastionHostLinuxProps.Builder builder) Constructor that initializes the object based on literal property values passed by theBastionHostLinuxProps.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 StringIn which AZ to place the instance within the VPC.final List<BlockDevice> Specifies how block devices are exposed to the instance.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 IMachineImageThe machine image to use, assumed to have SSM Agent preinstalled.final BooleanWhether IMDSv2 should be required on this instance.final ISecurityGroupSecurity Group to assign to this instance.final SubnetSelectionSelect the subnets to run the bastion host in.final BooleanDetermines whether changes to the UserData will force instance replacement.final IVpcgetVpc()VPC to launch the instance in.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 theBastionHostLinuxProps.Builder.
-
-
Method Details
-
getVpc
Description copied from interface:BastionHostLinuxPropsVPC to launch the instance in.- Specified by:
getVpcin interfaceBastionHostLinuxProps
-
getAvailabilityZone
Description copied from interface:BastionHostLinuxPropsIn which AZ to place the instance within the VPC.Default: - Random zone.
- Specified by:
getAvailabilityZonein interfaceBastionHostLinuxProps
-
getBlockDevices
Description copied from interface:BastionHostLinuxPropsSpecifies 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 interfaceBastionHostLinuxProps- See Also:
-
getInit
Description copied from interface:BastionHostLinuxPropsApply the given CloudFormation Init configuration to the instance at startup.Default: - no CloudFormation init
- Specified by:
getInitin interfaceBastionHostLinuxProps
-
getInitOptions
Description copied from interface:BastionHostLinuxPropsUse the given options for applying CloudFormation Init.Describes the configsets to use and the timeout to wait
Default: - default options
- Specified by:
getInitOptionsin interfaceBastionHostLinuxProps
-
getInstanceName
Description copied from interface:BastionHostLinuxPropsThe name of the instance.Default: 'BastionHost'
- Specified by:
getInstanceNamein interfaceBastionHostLinuxProps
-
getInstanceType
Description copied from interface:BastionHostLinuxPropsType of instance to launch.Default: 't3.nano'
- Specified by:
getInstanceTypein interfaceBastionHostLinuxProps
-
getMachineImage
Description copied from interface:BastionHostLinuxPropsThe machine image to use, assumed to have SSM Agent preinstalled.Default: - An Amazon Linux 2023 image if the `@aws-cdk/aws-ec2:bastionHostUseAmazonLinux2023ByDefault` feature flag is enabled. Otherwise, an Amazon Linux 2 image. In both cases, the image is kept up-to-date automatically (the instance may be replaced on every deployment) and already has SSM Agent installed.
- Specified by:
getMachineImagein interfaceBastionHostLinuxProps
-
getRequireImdsv2
Description copied from interface:BastionHostLinuxPropsWhether IMDSv2 should be required on this instance.Default: - false
- Specified by:
getRequireImdsv2in interfaceBastionHostLinuxProps
-
getSecurityGroup
Description copied from interface:BastionHostLinuxPropsSecurity Group to assign to this instance.Default: - create new security group with no inbound and all outbound traffic allowed
- Specified by:
getSecurityGroupin interfaceBastionHostLinuxProps
-
getSubnetSelection
Description copied from interface:BastionHostLinuxPropsSelect the subnets to run the bastion host in.Set this to PUBLIC if you need to connect to this instance via the internet and cannot use SSM. You have to allow port 22 manually by using the connections field
Default: - private subnets of the supplied VPC
- Specified by:
getSubnetSelectionin interfaceBastionHostLinuxProps
-
getUserDataCausesReplacement
Description copied from interface:BastionHostLinuxPropsDetermines whether changes to the UserData will force instance replacement.Depending on the EC2 instance type, modifying the UserData may either restart or replace the instance:
- Instance store-backed instances are replaced.
- EBS-backed instances are restarted.
Note that by default, restarting does not execute the updated UserData, so an alternative mechanism is needed to ensure the instance re-executes the UserData.
When set to
true, the instance's Logical ID will depend on the UserData, causing CloudFormation to replace the instance if the UserData changes.Default: - `true` if `initOptions` is specified, otherwise `false`.
- Specified by:
getUserDataCausesReplacementin interfaceBastionHostLinuxProps
-
$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()
-