AddNatGatewayOptions

class aws_cdk.aws_ec2.AddNatGatewayOptions(*, max_drain_duration=None)

Bases: object

Options for adding a NAT gateway to a public subnet.

Parameters:

max_drain_duration (Optional[Duration]) – Maximum amount of time to wait before forcibly releasing the IP addresses if connections are still in progress. Default: Duration.seconds(350)

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_ec2 as ec2

add_nat_gateway_options = ec2.AddNatGatewayOptions(
    max_drain_duration=cdk.Duration.minutes(30)
)

Attributes

max_drain_duration

Maximum amount of time to wait before forcibly releasing the IP addresses if connections are still in progress.

Default:

Duration.seconds(350)