Interface AddNatGatewayOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AddNatGatewayOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:04:49.784Z")
@Stability(Stable)
public interface AddNatGatewayOptions
extends software.amazon.jsii.JsiiSerializable
Options for adding a NAT gateway to a public subnet.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.ec2.*;
AddNatGatewayOptions addNatGatewayOptions = AddNatGatewayOptions.builder()
.maxDrainDuration(Duration.minutes(30))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAddNatGatewayOptionsstatic final classAn implementation forAddNatGatewayOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic AddNatGatewayOptions.Builderbuilder()default DurationMaximum amount of time to wait before forcibly releasing the IP addresses if connections are still in progress.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMaxDrainDuration
Maximum amount of time to wait before forcibly releasing the IP addresses if connections are still in progress.Default: Duration.seconds(350)
-
builder
- Returns:
- a
AddNatGatewayOptions.BuilderofAddNatGatewayOptions
-