google_compute_region_network_firewall_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"`
	// Direction: string, required
	Direction terra.StringValue `hcl:"direction,attr" validate:"required"`
	// Disabled: bool, optional
	Disabled terra.BoolValue `hcl:"disabled,attr"`
	// EnableLogging: bool, optional
	EnableLogging terra.BoolValue `hcl:"enable_logging,attr"`
	// FirewallPolicy: string, required
	FirewallPolicy terra.StringValue `hcl:"firewall_policy,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Priority: number, required
	Priority terra.NumberValue `hcl:"priority,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Region: string, optional
	Region terra.StringValue `hcl:"region,attr"`
	// RuleName: string, optional
	RuleName terra.StringValue `hcl:"rule_name,attr"`
	// TargetServiceAccounts: list of string, optional
	TargetServiceAccounts terra.ListValue[terra.StringValue] `hcl:"target_service_accounts,attr"`
	// Match: required
	Match *Match `hcl:"match,block" validate:"required"`
	// TargetSecureTags: min=0
	TargetSecureTags []TargetSecureTags `hcl:"target_secure_tags,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_compute_region_network_firewall_policy_rule.

type Match

type Match struct {
	// DestAddressGroups: list of string, optional
	DestAddressGroups terra.ListValue[terra.StringValue] `hcl:"dest_address_groups,attr"`
	// DestFqdns: list of string, optional
	DestFqdns terra.ListValue[terra.StringValue] `hcl:"dest_fqdns,attr"`
	// DestIpRanges: list of string, optional
	DestIpRanges terra.ListValue[terra.StringValue] `hcl:"dest_ip_ranges,attr"`
	// DestRegionCodes: list of string, optional
	DestRegionCodes terra.ListValue[terra.StringValue] `hcl:"dest_region_codes,attr"`
	// DestThreatIntelligences: list of string, optional
	DestThreatIntelligences terra.ListValue[terra.StringValue] `hcl:"dest_threat_intelligences,attr"`
	// SrcAddressGroups: list of string, optional
	SrcAddressGroups terra.ListValue[terra.StringValue] `hcl:"src_address_groups,attr"`
	// SrcFqdns: list of string, optional
	SrcFqdns terra.ListValue[terra.StringValue] `hcl:"src_fqdns,attr"`
	// SrcIpRanges: list of string, optional
	SrcIpRanges terra.ListValue[terra.StringValue] `hcl:"src_ip_ranges,attr"`
	// SrcRegionCodes: list of string, optional
	SrcRegionCodes terra.ListValue[terra.StringValue] `hcl:"src_region_codes,attr"`
	// SrcThreatIntelligences: list of string, optional
	SrcThreatIntelligences terra.ListValue[terra.StringValue] `hcl:"src_threat_intelligences,attr"`
	// MatchLayer4Configs: min=1
	Layer4Configs []MatchLayer4Configs `hcl:"layer4_configs,block" validate:"min=1"`
	// MatchSrcSecureTags: min=0
	SrcSecureTags []MatchSrcSecureTags `hcl:"src_secure_tags,block" validate:"min=0"`
}

type MatchAttributes

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

func (MatchAttributes) DestAddressGroups

func (m MatchAttributes) DestAddressGroups() terra.ListValue[terra.StringValue]

func (MatchAttributes) DestFqdns

func (MatchAttributes) DestIpRanges

func (m MatchAttributes) DestIpRanges() terra.ListValue[terra.StringValue]

func (MatchAttributes) DestRegionCodes

func (m MatchAttributes) DestRegionCodes() terra.ListValue[terra.StringValue]

func (MatchAttributes) DestThreatIntelligences

func (m MatchAttributes) DestThreatIntelligences() terra.ListValue[terra.StringValue]

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) Layer4Configs

func (MatchAttributes) SrcAddressGroups

func (m MatchAttributes) SrcAddressGroups() terra.ListValue[terra.StringValue]

func (MatchAttributes) SrcFqdns

func (MatchAttributes) SrcIpRanges

func (m MatchAttributes) SrcIpRanges() terra.ListValue[terra.StringValue]

func (MatchAttributes) SrcRegionCodes

func (m MatchAttributes) SrcRegionCodes() terra.ListValue[terra.StringValue]

func (MatchAttributes) SrcSecureTags

func (MatchAttributes) SrcThreatIntelligences

func (m MatchAttributes) SrcThreatIntelligences() terra.ListValue[terra.StringValue]

type MatchLayer4Configs

type MatchLayer4Configs struct {
	// IpProtocol: string, required
	IpProtocol terra.StringValue `hcl:"ip_protocol,attr" validate:"required"`
	// Ports: list of string, optional
	Ports terra.ListValue[terra.StringValue] `hcl:"ports,attr"`
}

type MatchLayer4ConfigsAttributes

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

func (MatchLayer4ConfigsAttributes) InternalRef

func (lc MatchLayer4ConfigsAttributes) InternalRef() (terra.Reference, error)

func (MatchLayer4ConfigsAttributes) InternalTokens

func (lc MatchLayer4ConfigsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MatchLayer4ConfigsAttributes) InternalWithRef

func (MatchLayer4ConfigsAttributes) IpProtocol

func (MatchLayer4ConfigsAttributes) Ports

type MatchLayer4ConfigsState

type MatchLayer4ConfigsState struct {
	IpProtocol string   `json:"ip_protocol"`
	Ports      []string `json:"ports"`
}

type MatchSrcSecureTags

type MatchSrcSecureTags struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
}

type MatchSrcSecureTagsAttributes

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

func (MatchSrcSecureTagsAttributes) InternalRef

func (sst MatchSrcSecureTagsAttributes) InternalRef() (terra.Reference, error)

func (MatchSrcSecureTagsAttributes) InternalTokens

func (sst MatchSrcSecureTagsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MatchSrcSecureTagsAttributes) InternalWithRef

func (MatchSrcSecureTagsAttributes) Name

func (MatchSrcSecureTagsAttributes) State

type MatchSrcSecureTagsState

type MatchSrcSecureTagsState struct {
	Name  string `json:"name"`
	State string `json:"state"`
}

type MatchState

type MatchState struct {
	DestAddressGroups       []string                  `json:"dest_address_groups"`
	DestFqdns               []string                  `json:"dest_fqdns"`
	DestIpRanges            []string                  `json:"dest_ip_ranges"`
	DestRegionCodes         []string                  `json:"dest_region_codes"`
	DestThreatIntelligences []string                  `json:"dest_threat_intelligences"`
	SrcAddressGroups        []string                  `json:"src_address_groups"`
	SrcFqdns                []string                  `json:"src_fqdns"`
	SrcIpRanges             []string                  `json:"src_ip_ranges"`
	SrcRegionCodes          []string                  `json:"src_region_codes"`
	SrcThreatIntelligences  []string                  `json:"src_threat_intelligences"`
	Layer4Configs           []MatchLayer4ConfigsState `json:"layer4_configs"`
	SrcSecureTags           []MatchSrcSecureTagsState `json:"src_secure_tags"`
}

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_network_firewall_policy_rule.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gcrnfpr *Resource) Attributes() googleComputeRegionNetworkFirewallPolicyRuleAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gcrnfpr *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gcrnfpr *Resource) State() (*googleComputeRegionNetworkFirewallPolicyRuleState, bool)

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

func (*Resource) StateMust

func (gcrnfpr *Resource) StateMust() *googleComputeRegionNetworkFirewallPolicyRuleState

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

func (*Resource) Type

func (gcrnfpr *Resource) Type() string

Type returns the Terraform object type for Resource.

type TargetSecureTags

type TargetSecureTags struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
}

type TargetSecureTagsAttributes

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

func (TargetSecureTagsAttributes) InternalRef

func (tst TargetSecureTagsAttributes) InternalRef() (terra.Reference, error)

func (TargetSecureTagsAttributes) InternalTokens

func (tst TargetSecureTagsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TargetSecureTagsAttributes) InternalWithRef

func (TargetSecureTagsAttributes) Name

func (TargetSecureTagsAttributes) State

type TargetSecureTagsState

type TargetSecureTagsState struct {
	Name  string `json:"name"`
	State string `json:"state"`
}

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