security_group

package
v0.135.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MPL-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const YandexVPCSecurityGroupDefaultTimeout = 3 * time.Minute

Variables

View Source
var (
	RuleDataSourceAttributes = map[string]schema.Attribute{
		"id":                schema.StringAttribute{Computed: true},
		"description":       schema.StringAttribute{Computed: true},
		"labels":            schema.MapAttribute{Computed: true, ElementType: types.StringType},
		"protocol":          schema.StringAttribute{Computed: true},
		"port":              schema.Int64Attribute{Computed: true},
		"from_port":         schema.Int64Attribute{Computed: true},
		"to_port":           schema.Int64Attribute{Computed: true},
		"v4_cidr_blocks":    schema.ListAttribute{Computed: true, ElementType: types.StringType},
		"v6_cidr_blocks":    schema.ListAttribute{Computed: true, ElementType: types.StringType},
		"security_group_id": schema.StringAttribute{Computed: true},
		"predefined_target": schema.StringAttribute{Computed: true},
	}
)

Functions

func FlattenRulePorts

func FlattenRulePorts(g *vpc.SecurityGroupRule) (port, fromPort, toPort int64)

func NewDataSource

func NewDataSource() datasource.DataSource

func NewResource

func NewResource() resource.Resource

func NullableStringSliceToList

func NullableStringSliceToList(ctx context.Context, s []string) (types.List, diag.Diagnostics)

func SplitCidrs

func SplitCidrs(cidrs *vpc.CidrBlocks) ([]string, []string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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