Class NatInstanceProps.Jsii$Proxy
- All Implemented Interfaces:
NatInstanceProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- NatInstanceProps
NatInstanceProps-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.NatInstanceProps
NatInstanceProps.Builder, NatInstanceProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(NatInstanceProps.Builder builder) Constructor that initializes the object based on literal property values passed by theNatInstanceProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal Boolean(deprecated) Allow all inbound traffic through the NAT instance.final NatTrafficDirectionDirection to allow all traffic through the NAT instance by default.final InstanceTypeInstance type of the NAT instance.final StringName of SSH keypair to grant access to instance.final IMachineImageThe machine image (AMI) to use.final ISecurityGroupSecurity Group for NAT instances.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theNatInstanceProps.Builder.
-
-
Method Details
-
getInstanceType
Description copied from interface:NatInstancePropsInstance type of the NAT instance.- Specified by:
getInstanceTypein interfaceNatInstanceProps
-
getAllowAllTraffic
Description copied from interface:NatInstanceProps(deprecated) Allow all inbound traffic through the NAT instance.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
securityGroupproperty, or by configuring it using the.securityGroupor.connectionsmembers after passing the NAT Instance Provider to a Vpc.Default: true
- Specified by:
getAllowAllTrafficin interfaceNatInstanceProps
-
getDefaultAllowedTraffic
Description copied from interface:NatInstancePropsDirection to allow all traffic through the NAT instance by default.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
securityGroupproperty, or by configuring it using the.securityGroupor.connectionsmembers after passing the NAT Instance Provider to a Vpc.Default: NatTrafficDirection.INBOUND_AND_OUTBOUND
- Specified by:
getDefaultAllowedTrafficin interfaceNatInstanceProps
-
getKeyName
Description copied from interface:NatInstancePropsName of SSH keypair to grant access to instance.Default: - No SSH access will be possible.
- Specified by:
getKeyNamein interfaceNatInstanceProps
-
getMachineImage
Description copied from interface:NatInstancePropsThe machine image (AMI) to use.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
- Specified by:
getMachineImagein interfaceNatInstanceProps
-
getSecurityGroup
Description copied from interface:NatInstancePropsSecurity Group for NAT instances.Default: - A new security group will be created
- Specified by:
getSecurityGroupin interfaceNatInstanceProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-