@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(InstanceType instanceType,
NatTrafficDirection defaultAllowedTraffic,
String keyName,
IMachineImage machineImage,
ISecurityGroup securityGroup)
Constructor that initializes the object based on literal property values passed by the
NatInstanceProps.Builder. |
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(Object o) |
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(InstanceType instanceType, NatTrafficDirection defaultAllowedTraffic, String keyName, IMachineImage machineImage, ISecurityGroup securityGroup)
NatInstanceProps.Builder.public final InstanceType getInstanceType()
NatInstancePropsgetInstanceType 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:
// Example automatically generated without compilation. 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
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 © 2021. All rights reserved.