@Stability(value=Experimental) @Internal public static final class NatInstanceProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements NatInstanceProps
NatInstancePropssoftware.amazon.jsii.JsiiObject.InitializationModeNatInstanceProps.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.
|
protected |
Jsii$Proxy(NatInstanceProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
NatInstanceProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Boolean |
getAllowAllTraffic()
(deprecated) Allow all inbound traffic through the NAT instance.
|
NatTrafficDirection |
getDefaultAllowedTraffic()
(experimental) Direction to allow all traffic through the NAT instance by default.
|
InstanceType |
getInstanceType()
(experimental) Instance type of the NAT instance.
|
String |
getKeyName()
(experimental) Name of SSH keypair to grant access to instance.
|
IMachineImage |
getMachineImage()
(experimental) The machine image (AMI) to use.
|
ISecurityGroup |
getSecurityGroup()
(experimental) Security Group for NAT instances.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(NatInstanceProps.Builder builder)
NatInstanceProps.Builder.public final InstanceType getInstanceType()
NatInstancePropsgetInstanceType in interface NatInstancePropspublic final 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 NatInstancePropspublic final NatTrafficDirection getDefaultAllowedTraffic()
NatInstancePropsBy 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 NatInstancePropspublic final String getKeyName()
NatInstancePropsDefault: - No SSH access will be possible.
getKeyName in interface NatInstancePropspublic final IMachineImage getMachineImage()
NatInstancePropsBy 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 NatInstancePropspublic final ISecurityGroup getSecurityGroup()
NatInstancePropsDefault: - A new security group will be created
getSecurityGroup in interface NatInstanceProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.