vpc

package module
v0.0.0-...-52f43ae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2020 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SubnetDistributor

func SubnetDistributor(baseCidr string, azCount int) ([]string, []string, error)

Types

type Args

type Args struct {
	BaseCidr              string
	Description           string
	ZoneName              pulumi.String
	AvailabilityZoneNames pulumi.StringArray
	BaseTags              pulumi.StringMap
	Endpoints             Endpoints
}

Args are the arguments passed to the resource

type Endpoints

type Endpoints struct {
	S3       bool
	DynamoDB bool
}

type Vpc

type Vpc struct {
	pulumi.ResourceState

	ID             pulumi.IDOutput      `pulumi:"ID"`
	Args           Args                 `pulumi:"Args"`
	Cidr           pulumi.StringOutput  `pulumi:"Cidr"`
	Arn            pulumi.StringOutput  `pulumi:"Arn"`
	Vpc            ec2.Vpc              `pulumi:"Vpc"`
	PublicSubnets  pulumi.IDArrayOutput `pulumi:"PublicSubnets"`
	PrivateSubnets pulumi.IDArrayOutput `pulumi:"PrivateSubnets"`
}

Vpc is the return type of the package

func NewVpc

func NewVpc(ctx *pulumi.Context, name string, args Args, opts ...pulumi.ResourceOption) (*Vpc, error)

creates a new VPC

func (Vpc) EnableFlowLoggingToCloudWatchLogs

func (vpc Vpc) EnableFlowLoggingToCloudWatchLogs(ctx *pulumi.Context, name string, trafficType string) error

Optionally enable cloudwatch logging FIXME: should be a method?

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL