Documentation ¶
Index ¶
- Constants
- Variables
- func FlattenRulePorts(g *vpc.SecurityGroupRule) (port, fromPort, toPort int64)
- func NewDataSource() datasource.DataSource
- func NewResource() resource.Resource
- func NullableStringSliceToList(ctx context.Context, s []string) (types.List, diag.Diagnostics)
- func SplitCidrs(cidrs *vpc.CidrBlocks) ([]string, []string)
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 SplitCidrs ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.