@Generated(value="jsii-pacmak/1.14.1 (build 828de8a)", date="2020-11-24T22:28:22.370Z") @Stability(value=Experimental) public interface NatInstanceProps extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
NatInstanceProps.Builder
A builder for
NatInstanceProps |
static class |
NatInstanceProps.Jsii$Proxy
An implementation for
NatInstanceProps |
| Modifier and Type | Method and Description |
|---|---|
static NatInstanceProps.Builder |
builder() |
default Boolean |
getAllowAllTraffic()
(experimental) Allow all traffic through the NAT instance.
|
InstanceType |
getInstanceType()
(experimental) Instance type of the NAT instance.
|
default String |
getKeyName()
(experimental) Name of SSH keypair to grant access to instance.
|
default IMachineImage |
getMachineImage()
(experimental) The machine image (AMI) to use.
|
default ISecurityGroup |
getSecurityGroup()
(experimental) Security Group for NAT instances.
|
@Stability(value=Experimental) @NotNull InstanceType getInstanceType()
@Stability(value=Experimental) @Nullable default Boolean getAllowAllTraffic()
If you set this to false, you must configure the NAT instance's security
groups in another way, either by passing in a fully configured Security
Group using the securityGroup property, or by configuring it using the
.securityGroup or .connections members after passing the NAT Instance
Provider to a Vpc.
Default: true
@Stability(value=Experimental) @Nullable default String getKeyName()
Default: - No SSH access will be possible.
@Stability(value=Experimental) @Nullable default IMachineImage getMachineImage()
By default, will do an AMI lookup for the latest NAT instance image.
If you have a specific AMI ID you want to use, pass a GenericLinuxImage. For example:
// Example automatically generated. See https://github.com/aws/jsii/issues/826
ec2.NatProvider.instance(Map.of(
"instanceType", new InstanceType("t3.micro"),
"machineImage", GenericLinuxImage.Builder.create()
.us-east-2("ami-0f9c61b5a562a16af")
.build()));
Default: - Latest NAT instance image
@Stability(value=Experimental) @Nullable default ISecurityGroup getSecurityGroup()
Default: - A new security group will be created
@Stability(value=Experimental) static NatInstanceProps.Builder builder()
NatInstanceProps.Builder of NatInstancePropsCopyright © 2020. All rights reserved.