-
Notifications
You must be signed in to change notification settings - Fork 17
/
ConfigureNatOptions.go
35 lines (32 loc) · 1.07 KB
/
ConfigureNatOptions.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 awsec2
// Options passed by the VPC when NAT needs to be configured.
//
// 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"
//
// var privateSubnet privateSubnet
// var publicSubnet publicSubnet
// var vpc vpc
//
// configureNatOptions := &ConfigureNatOptions{
// NatSubnets: []*publicSubnet{
// publicSubnet,
// },
// PrivateSubnets: []*privateSubnet{
// privateSubnet,
// },
// Vpc: vpc,
// }
//
type ConfigureNatOptions struct {
// The public subnets where the NAT providers need to be placed.
NatSubnets *[]PublicSubnet `field:"required" json:"natSubnets" yaml:"natSubnets"`
// The private subnets that need to route through the NAT providers.
//
// There may be more private subnets than public subnets with NAT providers.
PrivateSubnets *[]PrivateSubnet `field:"required" json:"privateSubnets" yaml:"privateSubnets"`
// The VPC we're configuring NAT for.
Vpc Vpc `field:"required" json:"vpc" yaml:"vpc"`
}