/
VpcSubnet.go
35 lines (32 loc) · 1.12 KB
/
VpcSubnet.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package cxapi
// A subnet representation that the VPC provider uses.
//
// Example:
// // 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"
//
// vpcSubnet := &VpcSubnet{
// AvailabilityZone: jsii.String("availabilityZone"),
// RouteTableId: jsii.String("routeTableId"),
// SubnetId: jsii.String("subnetId"),
//
// // the properties below are optional
// Cidr: jsii.String("cidr"),
// }
//
// Experimental.
type VpcSubnet struct {
// The code of the availability zone this subnet is in (for example, 'us-west-2a').
// Experimental.
AvailabilityZone *string `field:"required" json:"availabilityZone" yaml:"availabilityZone"`
// The identifier of the route table for this subnet.
// Experimental.
RouteTableId *string `field:"required" json:"routeTableId" yaml:"routeTableId"`
// The identifier of the subnet.
// Experimental.
SubnetId *string `field:"required" json:"subnetId" yaml:"subnetId"`
// CIDR range of the subnet.
// Experimental.
Cidr *string `field:"optional" json:"cidr" yaml:"cidr"`
}