Skip to content
v2.278.0

GatewayConfig Struct ​

Pair represents a gateway created by NAT Provider.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const gatewayConfig: ec2.GatewayConfig = {
  az: 'az',
  gatewayId: 'gatewayId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

gateway_config = ec2.GatewayConfig(
    az="az",
    gateway_id="gatewayId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;

GatewayConfig gatewayConfig = GatewayConfig.builder()
        .az("az")
        .gatewayId("gatewayId")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;

var gatewayConfig = new GatewayConfig {
    Az = "az",
    GatewayId = "gatewayId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

gatewayConfig := &GatewayConfig{
	Az: jsii.String("az"),
	GatewayId: jsii.String("gatewayId"),
}

Properties ​

azstringazstrazStringAzstringAz*string required #
Availability Zone.
gatewayIdstringgateway_idstrgatewayIdStringGatewayIdstringGatewayId*string required #
Identity of gateway spawned by the provider.