@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)",
date="2022-05-20T22:19:58.786Z")
public interface BastionHostLinuxProps
Example:
BastionHostLinux host = BastionHostLinux.Builder.create(this, "BastionHost") .vpc(vpc) .blockDevices(List.of(BlockDevice.builder() .deviceName("EBSBastionHost") .volume(BlockDeviceVolume.ebs(10, EbsDeviceOptions.builder() .encrypted(true) .build())) .build())) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
BastionHostLinuxProps.Builder
A builder for
BastionHostLinuxProps |
static class |
BastionHostLinuxProps.Jsii$Proxy
An implementation for
BastionHostLinuxProps |
Modifier and Type | Method and Description |
---|---|
static BastionHostLinuxProps.Builder |
builder() |
default java.lang.String |
getAvailabilityZone()
In which AZ to place the instance within the VPC.
|
default java.util.List<BlockDevice> |
getBlockDevices()
Specifies how block devices are exposed to the instance.
|
default CloudFormationInit |
getInit()
Apply the given CloudFormation Init configuration to the instance at startup.
|
default ApplyCloudFormationInitOptions |
getInitOptions()
Use the given options for applying CloudFormation Init.
|
default java.lang.String |
getInstanceName()
The name of the instance.
|
default InstanceType |
getInstanceType()
Type of instance to launch.
|
default IMachineImage |
getMachineImage()
The machine image to use, assumed to have SSM Agent preinstalled.
|
default java.lang.Boolean |
getRequireImdsv2()
Whether IMDSv2 should be required on this instance.
|
default ISecurityGroup |
getSecurityGroup()
Security Group to assign to this instance.
|
default SubnetSelection |
getSubnetSelection()
Select the subnets to run the bastion host in.
|
IVpc |
getVpc()
VPC to launch the instance in.
|
IVpc getVpc()
default java.lang.String getAvailabilityZone()
Default: - Random zone.
default java.util.List<BlockDevice> getBlockDevices()
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
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html
default CloudFormationInit getInit()
Default: - no CloudFormation init
default ApplyCloudFormationInitOptions getInitOptions()
Describes the configsets to use and the timeout to wait
Default: - default options
default java.lang.String getInstanceName()
Default: 'BastionHost'
default InstanceType getInstanceType()
Default: 't3.nano'
default IMachineImage getMachineImage()
Default: - An Amazon Linux 2 image which is kept up-to-date automatically (the instance may be replaced on every deployment) and already has SSM Agent installed.
default java.lang.Boolean getRequireImdsv2()
Default: - false
default ISecurityGroup getSecurityGroup()
Default: - create new security group with no inbound and all outbound traffic allowed
default SubnetSelection getSubnetSelection()
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
static BastionHostLinuxProps.Builder builder()
BastionHostLinuxProps.Builder
of BastionHostLinuxProps