Skip to content
v2.277.0

IpAddressType Enum ​

Supported IP Address Types.

Example ​

ts
const api = new apigateway.RestApi(this, 'api', {
  endpointConfiguration: {
    types: [ apigateway.EndpointType.REGIONAL ],
    ipAddressType: apigateway.IpAddressType.DUAL_STACK,
  }
});
python
api = apigateway.RestApi(self, "api",
    endpoint_configuration=apigateway.EndpointConfiguration(
        types=[apigateway.EndpointType.REGIONAL],
        ip_address_type=apigateway.IpAddressType.DUAL_STACK
    )
)
java
RestApi api = RestApi.Builder.create(this, "api")
        .endpointConfiguration(EndpointConfiguration.builder()
                .types(List.of(EndpointType.REGIONAL))
                .ipAddressType(IpAddressType.DUAL_STACK)
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
var api = new RestApi(this, "api", new RestApiProps {
    EndpointConfiguration = new EndpointConfiguration {
        Types = new [] { EndpointType.REGIONAL },
        IpAddressType = IpAddressType.DUAL_STACK
    }
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
api := apigateway.NewRestApi(this, jsii.String("api"), &RestApiProps{
	EndpointConfiguration: &EndpointConfiguration{
		Types: []EndpointType{
			apigateway.EndpointType_REGIONAL,
		},
		IpAddressType: apigateway.IpAddressType_DUAL_STACK,
	},
})

Members ​

MemberDescription
IPV4IPv4 address type.
DUAL_STACKIPv4 and IPv6 address type.

Referenced by ​