google_compute_region_security_policy_rule

package
v0.0.0-...-4deecce Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// Action: string, required
	Action terra.StringValue `hcl:"action,attr" validate:"required"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Preview: bool, optional
	Preview terra.BoolValue `hcl:"preview,attr"`
	// Priority: number, required
	Priority terra.NumberValue `hcl:"priority,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Region: string, required
	Region terra.StringValue `hcl:"region,attr" validate:"required"`
	// SecurityPolicy: string, required
	SecurityPolicy terra.StringValue `hcl:"security_policy,attr" validate:"required"`
	// Match: optional
	Match *Match `hcl:"match,block"`
	// NetworkMatch: optional
	NetworkMatch *NetworkMatch `hcl:"network_match,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_compute_region_security_policy_rule.

type Match

type Match struct {
	// VersionedExpr: string, optional
	VersionedExpr terra.StringValue `hcl:"versioned_expr,attr"`
	// MatchConfig: optional
	Config *MatchConfig `hcl:"config,block"`
}

type MatchAttributes

type MatchAttributes struct {
	// contains filtered or unexported fields
}

func (MatchAttributes) Config

func (MatchAttributes) InternalRef

func (m MatchAttributes) InternalRef() (terra.Reference, error)

func (MatchAttributes) InternalTokens

func (m MatchAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MatchAttributes) InternalWithRef

func (m MatchAttributes) InternalWithRef(ref terra.Reference) MatchAttributes

func (MatchAttributes) VersionedExpr

func (m MatchAttributes) VersionedExpr() terra.StringValue

type MatchConfig

type MatchConfig struct {
	// SrcIpRanges: list of string, optional
	SrcIpRanges terra.ListValue[terra.StringValue] `hcl:"src_ip_ranges,attr"`
}

type MatchConfigAttributes

type MatchConfigAttributes struct {
	// contains filtered or unexported fields
}

func (MatchConfigAttributes) InternalRef

func (c MatchConfigAttributes) InternalRef() (terra.Reference, error)

func (MatchConfigAttributes) InternalTokens

func (c MatchConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MatchConfigAttributes) InternalWithRef

func (MatchConfigAttributes) SrcIpRanges

type MatchConfigState

type MatchConfigState struct {
	SrcIpRanges []string `json:"src_ip_ranges"`
}

type MatchState

type MatchState struct {
	VersionedExpr string             `json:"versioned_expr"`
	Config        []MatchConfigState `json:"config"`
}

type NetworkMatch

type NetworkMatch struct {
	// DestIpRanges: list of string, optional
	DestIpRanges terra.ListValue[terra.StringValue] `hcl:"dest_ip_ranges,attr"`
	// DestPorts: list of string, optional
	DestPorts terra.ListValue[terra.StringValue] `hcl:"dest_ports,attr"`
	// IpProtocols: list of string, optional
	IpProtocols terra.ListValue[terra.StringValue] `hcl:"ip_protocols,attr"`
	// SrcAsns: list of number, optional
	SrcAsns terra.ListValue[terra.NumberValue] `hcl:"src_asns,attr"`
	// SrcIpRanges: list of string, optional
	SrcIpRanges terra.ListValue[terra.StringValue] `hcl:"src_ip_ranges,attr"`
	// SrcPorts: list of string, optional
	SrcPorts terra.ListValue[terra.StringValue] `hcl:"src_ports,attr"`
	// SrcRegionCodes: list of string, optional
	SrcRegionCodes terra.ListValue[terra.StringValue] `hcl:"src_region_codes,attr"`
	// NetworkMatchUserDefinedFields: min=0
	UserDefinedFields []NetworkMatchUserDefinedFields `hcl:"user_defined_fields,block" validate:"min=0"`
}

type NetworkMatchAttributes

type NetworkMatchAttributes struct {
	// contains filtered or unexported fields
}

func (NetworkMatchAttributes) DestIpRanges

func (NetworkMatchAttributes) DestPorts

func (NetworkMatchAttributes) InternalRef

func (nm NetworkMatchAttributes) InternalRef() (terra.Reference, error)

func (NetworkMatchAttributes) InternalTokens

func (nm NetworkMatchAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NetworkMatchAttributes) InternalWithRef

func (NetworkMatchAttributes) IpProtocols

func (NetworkMatchAttributes) SrcAsns

func (NetworkMatchAttributes) SrcIpRanges

func (NetworkMatchAttributes) SrcPorts

func (NetworkMatchAttributes) SrcRegionCodes

func (NetworkMatchAttributes) UserDefinedFields

type NetworkMatchState

type NetworkMatchState struct {
	DestIpRanges      []string                             `json:"dest_ip_ranges"`
	DestPorts         []string                             `json:"dest_ports"`
	IpProtocols       []string                             `json:"ip_protocols"`
	SrcAsns           []float64                            `json:"src_asns"`
	SrcIpRanges       []string                             `json:"src_ip_ranges"`
	SrcPorts          []string                             `json:"src_ports"`
	SrcRegionCodes    []string                             `json:"src_region_codes"`
	UserDefinedFields []NetworkMatchUserDefinedFieldsState `json:"user_defined_fields"`
}

type NetworkMatchUserDefinedFields

type NetworkMatchUserDefinedFields struct {
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// Values: list of string, optional
	Values terra.ListValue[terra.StringValue] `hcl:"values,attr"`
}

type NetworkMatchUserDefinedFieldsAttributes

type NetworkMatchUserDefinedFieldsAttributes struct {
	// contains filtered or unexported fields
}

func (NetworkMatchUserDefinedFieldsAttributes) InternalRef

func (NetworkMatchUserDefinedFieldsAttributes) InternalTokens

func (NetworkMatchUserDefinedFieldsAttributes) InternalWithRef

func (NetworkMatchUserDefinedFieldsAttributes) Name

func (NetworkMatchUserDefinedFieldsAttributes) Values

type NetworkMatchUserDefinedFieldsState

type NetworkMatchUserDefinedFieldsState struct {
	Name   string   `json:"name"`
	Values []string `json:"values"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource google_compute_region_security_policy_rule.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gcrspr *Resource) Attributes() googleComputeRegionSecurityPolicyRuleAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (gcrspr *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (gcrspr *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (gcrspr *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (gcrspr *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (gcrspr *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gcrspr *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gcrspr *Resource) State() (*googleComputeRegionSecurityPolicyRuleState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (gcrspr *Resource) StateMust() *googleComputeRegionSecurityPolicyRuleState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (gcrspr *Resource) Type() string

Type returns the Terraform object type for Resource.

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

type TimeoutsAttributes struct {
	// contains filtered or unexported fields
}

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

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