public static final class NatInstanceProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements NatInstanceProps
NatInstanceProps
NatInstanceProps.Builder, NatInstanceProps.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
java.lang.Boolean |
getAllowAllTraffic()
(deprecated) Allow all inbound traffic through the NAT instance.
|
NatTrafficDirection |
getDefaultAllowedTraffic()
Direction to allow all traffic through the NAT instance by default.
|
InstanceType |
getInstanceType()
Instance type of the NAT instance.
|
java.lang.String |
getKeyName()
Name of SSH keypair to grant access to instance.
|
IMachineImage |
getMachineImage()
The machine image (AMI) to use.
|
ISecurityGroup |
getSecurityGroup()
Security Group for NAT instances.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final InstanceType getInstanceType()
NatInstanceProps
getInstanceType
in interface NatInstanceProps
public final java.lang.Boolean getAllowAllTraffic()
NatInstanceProps
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
getAllowAllTraffic
in interface NatInstanceProps
public final NatTrafficDirection getDefaultAllowedTraffic()
NatInstanceProps
By default, inbound and outbound traffic is allowed.
If you set this to another value than INBOUND_AND_OUTBOUND, 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: NatTrafficDirection.INBOUND_AND_OUTBOUND
getDefaultAllowedTraffic
in interface NatInstanceProps
public final java.lang.String getKeyName()
NatInstanceProps
Default: - No SSH access will be possible.
getKeyName
in interface NatInstanceProps
public final IMachineImage getMachineImage()
NatInstanceProps
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:
NatProvider.instance(NatInstanceProps.builder() .instanceType(new InstanceType("t3.micro")) .machineImage(new GenericLinuxImage(Map.of( "us-east-2", "ami-0f9c61b5a562a16af"))) .build());
Default: - Latest NAT instance image
getMachineImage
in interface NatInstanceProps
public final ISecurityGroup getSecurityGroup()
NatInstanceProps
Default: - A new security group will be created
getSecurityGroup
in interface NatInstanceProps
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()