@Stability(value=Experimental) public static final class BastionHostLinuxProps.Builder extends Object implements software.amazon.jsii.Builder<BastionHostLinuxProps>
BastionHostLinuxProps
Constructor and Description |
---|
Builder() |
@Stability(value=Experimental) public BastionHostLinuxProps.Builder vpc(IVpc vpc)
BastionHostLinuxProps.getVpc()
vpc
- VPC to launch the instance in. This parameter is required.this
@Stability(value=Experimental) public BastionHostLinuxProps.Builder availabilityZone(String availabilityZone)
BastionHostLinuxProps.getAvailabilityZone()
availabilityZone
- In which AZ to place the instance within the VPC.this
@Stability(value=Experimental) public BastionHostLinuxProps.Builder blockDevices(List<? extends BlockDevice> blockDevices)
BastionHostLinuxProps.getBlockDevices()
blockDevices
- 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.this
@Stability(value=Experimental) public BastionHostLinuxProps.Builder instanceName(String instanceName)
BastionHostLinuxProps.getInstanceName()
instanceName
- The name of the instance.this
@Stability(value=Experimental) public BastionHostLinuxProps.Builder instanceType(InstanceType instanceType)
BastionHostLinuxProps.getInstanceType()
instanceType
- Type of instance to launch.this
@Stability(value=Experimental) public BastionHostLinuxProps.Builder machineImage(IMachineImage machineImage)
BastionHostLinuxProps.getMachineImage()
machineImage
- The machine image to use, assumed to have SSM Agent preinstalled.this
@Stability(value=Experimental) public BastionHostLinuxProps.Builder securityGroup(ISecurityGroup securityGroup)
BastionHostLinuxProps.getSecurityGroup()
securityGroup
- Security Group to assign to this instance.this
@Stability(value=Experimental) public BastionHostLinuxProps.Builder subnetSelection(SubnetSelection subnetSelection)
BastionHostLinuxProps.getSubnetSelection()
subnetSelection
- Select 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 fieldthis
@Stability(value=Experimental) public BastionHostLinuxProps build()
build
in interface software.amazon.jsii.Builder<BastionHostLinuxProps>
BastionHostLinuxProps
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.