-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsec2_SubnetProps.go
30 lines (27 loc) · 1.06 KB
/
awsec2_SubnetProps.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
package awsec2
// Specify configuration parameters for a VPC subnet.
//
// 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"
//
// subnetProps := &subnetProps{
// availabilityZone: jsii.String("availabilityZone"),
// cidrBlock: jsii.String("cidrBlock"),
// vpcId: jsii.String("vpcId"),
//
// // the properties below are optional
// mapPublicIpOnLaunch: jsii.Boolean(false),
// }
//
type SubnetProps struct {
// The availability zone for the subnet.
AvailabilityZone *string `field:"required" json:"availabilityZone" yaml:"availabilityZone"`
// The CIDR notation for this subnet.
CidrBlock *string `field:"required" json:"cidrBlock" yaml:"cidrBlock"`
// The VPC which this subnet is part of.
VpcId *string `field:"required" json:"vpcId" yaml:"vpcId"`
// Controls if a public IP is associated to an instance at launch.
MapPublicIpOnLaunch *bool `field:"optional" json:"mapPublicIpOnLaunch" yaml:"mapPublicIpOnLaunch"`
}