subnet

package
v0.1.56 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-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" json:"cidr_block"`
	VpcId               string `hcl:"vpc_id,expr" json:"vpc_id"`
	AvailabilityZone    string `hcl:"availability_zone,optional" hcle:"omitempty" json:"availability_zone"`
	MapPublicIpOnLaunch bool   `hcl:"map_public_ip_on_launch"  hcle:"omitempty" json:"map_public_ip_on_launch"`
}

type AzureSubnet

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

func (*AzureSubnet) GetId

func (subnet *AzureSubnet) GetId() string

type GoogleComputeSubnetwork added in v0.1.48

type GoogleComputeSubnetwork struct {
	*common.GcpResource   `hcl:",squash"  default:"name=google_compute_subnetwork"`
	IpCidrRange           string `hcl:"ip_cidr_range" json:"ip_cidr_range"`
	Network               string `hcl:"network,expr" json:"network"`
	Description           string `hcl:"description" hcle:"omitempty" json:"description"`
	PrivateIpGoogleAccess bool   `hcl:"private_ip_google_access"`
}

Jump to

Keyboard shortcuts

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