subnet

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const AwsResourceName = "aws_subnet"
View Source
const AzureResourceName = "azurerm_subnet"

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsSubnet

type AwsSubnet struct {
	*common.AwsResource `hcl:",squash" default:"name=aws_subnet"`
	CidrBlock           string `hcl:"cidr_block"`
	VpcId               string `hcl:"vpc_id,expr"`
	AvailabilityZone    string `hcl:"availability_zone,optional" hcle:"omitempty"`
	MapPublicIpOnLaunch bool   `hcl:"map_public_ip_on_launch"  hcle:"omitempty"`
}

type AzureSubnet

type AzureSubnet struct {
	*common.AzResource `hcl:",squash" default:"name=azurerm_subnet"`
	AddressPrefixes    []string `hcl:"address_prefixes"`
	VirtualNetworkName string   `hcl:"virtual_network_name,expr"`
	ServiceEndpoints   []string `hcl:"service_endpoints" hcle:"omitempty"`
}

func (*AzureSubnet) GetId

func (subnet *AzureSubnet) GetId() string

Jump to

Keyboard shortcuts

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