Interface IGatewayVpcEndpointProps
Construction properties for a GatewayVpcEndpoint.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IGatewayVpcEndpointProps : IGatewayVpcEndpointOptions
Syntax (vb)
Public Interface IGatewayVpcEndpointProps
Inherits IGatewayVpcEndpointOptions
Remarks
ExampleMetadata: infused
Examples
var stack = new Stack();
var myVpc = new VpcV2(this, "Vpc");
var routeTable = new RouteTable(this, "RouteTable", new RouteTableProps {
Vpc = myVpc
});
var subnet = new SubnetV2(this, "Subnet", new SubnetV2Props {
Vpc = myVpc,
AvailabilityZone = "eu-west-2a",
Ipv4CidrBlock = new IpCidr("10.0.0.0/24"),
SubnetType = SubnetType.PRIVATE
});
var dynamoEndpoint = new GatewayVpcEndpoint(this, "DynamoEndpoint", new GatewayVpcEndpointProps {
Service = GatewayVpcEndpointAwsService.DYNAMODB,
Vpc = myVpc,
Subnets = new [] { subnet }
});
new Route(this, "DynamoDBRoute", new RouteProps {
RouteTable = routeTable,
Destination = "0.0.0.0/0",
Target = new Dictionary<string, IVpcEndpoint?> { { "endpoint", dynamoEndpoint } }
});
Synopsis
Properties
Vpc | The VPC network in which the gateway endpoint will be used. |