Documentation ¶
Index ¶
- type Args
- type Match
- type MatchAttributes
- func (m MatchAttributes) Config() terra.ListValue[MatchConfigAttributes]
- func (m MatchAttributes) InternalRef() (terra.Reference, error)
- func (m MatchAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (m MatchAttributes) InternalWithRef(ref terra.Reference) MatchAttributes
- func (m MatchAttributes) VersionedExpr() terra.StringValue
- type MatchConfig
- type MatchConfigAttributes
- func (c MatchConfigAttributes) InternalRef() (terra.Reference, error)
- func (c MatchConfigAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (c MatchConfigAttributes) InternalWithRef(ref terra.Reference) MatchConfigAttributes
- func (c MatchConfigAttributes) SrcIpRanges() terra.ListValue[terra.StringValue]
- type MatchConfigState
- type MatchState
- type NetworkMatch
- type NetworkMatchAttributes
- func (nm NetworkMatchAttributes) DestIpRanges() terra.ListValue[terra.StringValue]
- func (nm NetworkMatchAttributes) DestPorts() terra.ListValue[terra.StringValue]
- func (nm NetworkMatchAttributes) InternalRef() (terra.Reference, error)
- func (nm NetworkMatchAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (nm NetworkMatchAttributes) InternalWithRef(ref terra.Reference) NetworkMatchAttributes
- func (nm NetworkMatchAttributes) IpProtocols() terra.ListValue[terra.StringValue]
- func (nm NetworkMatchAttributes) SrcAsns() terra.ListValue[terra.NumberValue]
- func (nm NetworkMatchAttributes) SrcIpRanges() terra.ListValue[terra.StringValue]
- func (nm NetworkMatchAttributes) SrcPorts() terra.ListValue[terra.StringValue]
- func (nm NetworkMatchAttributes) SrcRegionCodes() terra.ListValue[terra.StringValue]
- func (nm NetworkMatchAttributes) UserDefinedFields() terra.ListValue[NetworkMatchUserDefinedFieldsAttributes]
- type NetworkMatchState
- type NetworkMatchUserDefinedFields
- type NetworkMatchUserDefinedFieldsAttributes
- func (udf NetworkMatchUserDefinedFieldsAttributes) InternalRef() (terra.Reference, error)
- func (udf NetworkMatchUserDefinedFieldsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (udf NetworkMatchUserDefinedFieldsAttributes) InternalWithRef(ref terra.Reference) NetworkMatchUserDefinedFieldsAttributes
- func (udf NetworkMatchUserDefinedFieldsAttributes) Name() terra.StringValue
- func (udf NetworkMatchUserDefinedFieldsAttributes) Values() terra.ListValue[terra.StringValue]
- type NetworkMatchUserDefinedFieldsState
- type Resource
- func (gcrspr *Resource) Attributes() googleComputeRegionSecurityPolicyRuleAttributes
- func (gcrspr *Resource) Configuration() interface{}
- func (gcrspr *Resource) DependOn() terra.Reference
- func (gcrspr *Resource) Dependencies() terra.Dependencies
- func (gcrspr *Resource) ImportState(state io.Reader) error
- func (gcrspr *Resource) LifecycleManagement() *terra.Lifecycle
- func (gcrspr *Resource) LocalName() string
- func (gcrspr *Resource) State() (*googleComputeRegionSecurityPolicyRuleState, bool)
- func (gcrspr *Resource) StateMust() *googleComputeRegionSecurityPolicyRuleState
- func (gcrspr *Resource) Type() string
- type Timeouts
- type TimeoutsAttributes
- func (t TimeoutsAttributes) Create() terra.StringValue
- func (t TimeoutsAttributes) Delete() terra.StringValue
- func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)
- func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes
- func (t TimeoutsAttributes) Update() terra.StringValue
- type TimeoutsState
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 (m MatchAttributes) Config() terra.ListValue[MatchConfigAttributes]
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 (c MatchConfigAttributes) InternalWithRef(ref terra.Reference) MatchConfigAttributes
func (MatchConfigAttributes) SrcIpRanges ¶
func (c MatchConfigAttributes) SrcIpRanges() terra.ListValue[terra.StringValue]
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 (nm NetworkMatchAttributes) DestIpRanges() terra.ListValue[terra.StringValue]
func (NetworkMatchAttributes) DestPorts ¶
func (nm NetworkMatchAttributes) DestPorts() terra.ListValue[terra.StringValue]
func (NetworkMatchAttributes) InternalRef ¶
func (nm NetworkMatchAttributes) InternalRef() (terra.Reference, error)
func (NetworkMatchAttributes) InternalTokens ¶
func (nm NetworkMatchAttributes) InternalTokens() (hclwrite.Tokens, error)
func (NetworkMatchAttributes) InternalWithRef ¶
func (nm NetworkMatchAttributes) InternalWithRef(ref terra.Reference) NetworkMatchAttributes
func (NetworkMatchAttributes) IpProtocols ¶
func (nm NetworkMatchAttributes) IpProtocols() terra.ListValue[terra.StringValue]
func (NetworkMatchAttributes) SrcAsns ¶
func (nm NetworkMatchAttributes) SrcAsns() terra.ListValue[terra.NumberValue]
func (NetworkMatchAttributes) SrcIpRanges ¶
func (nm NetworkMatchAttributes) SrcIpRanges() terra.ListValue[terra.StringValue]
func (NetworkMatchAttributes) SrcPorts ¶
func (nm NetworkMatchAttributes) SrcPorts() terra.ListValue[terra.StringValue]
func (NetworkMatchAttributes) SrcRegionCodes ¶
func (nm NetworkMatchAttributes) SrcRegionCodes() terra.ListValue[terra.StringValue]
func (NetworkMatchAttributes) UserDefinedFields ¶
func (nm NetworkMatchAttributes) UserDefinedFields() terra.ListValue[NetworkMatchUserDefinedFieldsAttributes]
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 (udf NetworkMatchUserDefinedFieldsAttributes) InternalRef() (terra.Reference, error)
func (NetworkMatchUserDefinedFieldsAttributes) InternalTokens ¶
func (udf NetworkMatchUserDefinedFieldsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (NetworkMatchUserDefinedFieldsAttributes) InternalWithRef ¶
func (udf NetworkMatchUserDefinedFieldsAttributes) InternalWithRef(ref terra.Reference) NetworkMatchUserDefinedFieldsAttributes
func (NetworkMatchUserDefinedFieldsAttributes) Name ¶
func (udf NetworkMatchUserDefinedFieldsAttributes) Name() terra.StringValue
func (NetworkMatchUserDefinedFieldsAttributes) Values ¶
func (udf NetworkMatchUserDefinedFieldsAttributes) Values() terra.ListValue[terra.StringValue]
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 (*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) Dependencies ¶
func (gcrspr *Resource) Dependencies() terra.Dependencies
Dependencies returns the list of resources Resource depends_on.
func (*Resource) ImportState ¶
ImportState imports the given attribute values into Resource's state.
func (*Resource) LifecycleManagement ¶
LifecycleManagement returns the lifecycle block 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 (t TimeoutsAttributes) Create() terra.StringValue
func (TimeoutsAttributes) Delete ¶
func (t TimeoutsAttributes) Delete() terra.StringValue
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 ¶
func (t TimeoutsAttributes) Update() terra.StringValue
type TimeoutsState ¶
Click to show internal directories.
Click to hide internal directories.