Documentation ¶
Index ¶
- type Args
- type Match
- type MatchAttributes
- func (m MatchAttributes) DestAddressGroups() terra.ListValue[terra.StringValue]
- func (m MatchAttributes) DestFqdns() terra.ListValue[terra.StringValue]
- func (m MatchAttributes) DestIpRanges() terra.ListValue[terra.StringValue]
- func (m MatchAttributes) DestRegionCodes() terra.ListValue[terra.StringValue]
- func (m MatchAttributes) DestThreatIntelligences() terra.ListValue[terra.StringValue]
- 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) Layer4Configs() terra.ListValue[MatchLayer4ConfigsAttributes]
- func (m MatchAttributes) SrcAddressGroups() terra.ListValue[terra.StringValue]
- func (m MatchAttributes) SrcFqdns() terra.ListValue[terra.StringValue]
- func (m MatchAttributes) SrcIpRanges() terra.ListValue[terra.StringValue]
- func (m MatchAttributes) SrcRegionCodes() terra.ListValue[terra.StringValue]
- func (m MatchAttributes) SrcThreatIntelligences() terra.ListValue[terra.StringValue]
- type MatchLayer4Configs
- type MatchLayer4ConfigsAttributes
- func (lc MatchLayer4ConfigsAttributes) InternalRef() (terra.Reference, error)
- func (lc MatchLayer4ConfigsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (lc MatchLayer4ConfigsAttributes) InternalWithRef(ref terra.Reference) MatchLayer4ConfigsAttributes
- func (lc MatchLayer4ConfigsAttributes) IpProtocol() terra.StringValue
- func (lc MatchLayer4ConfigsAttributes) Ports() terra.ListValue[terra.StringValue]
- type MatchLayer4ConfigsState
- type MatchState
- type Resource
- func (gcfpr *Resource) Attributes() googleComputeFirewallPolicyRuleAttributes
- func (gcfpr *Resource) Configuration() interface{}
- func (gcfpr *Resource) DependOn() terra.Reference
- func (gcfpr *Resource) Dependencies() terra.Dependencies
- func (gcfpr *Resource) ImportState(state io.Reader) error
- func (gcfpr *Resource) LifecycleManagement() *terra.Lifecycle
- func (gcfpr *Resource) LocalName() string
- func (gcfpr *Resource) State() (*googleComputeFirewallPolicyRuleState, bool)
- func (gcfpr *Resource) StateMust() *googleComputeFirewallPolicyRuleState
- func (gcfpr *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"` // 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"` // TargetResources: list of string, optional TargetResources terra.ListValue[terra.StringValue] `hcl:"target_resources,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"` // Timeouts: optional Timeouts *Timeouts `hcl:"timeouts,block"` }
Args contains the configurations for google_compute_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"` }
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 (m MatchAttributes) DestFqdns() terra.ListValue[terra.StringValue]
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 (m MatchAttributes) Layer4Configs() terra.ListValue[MatchLayer4ConfigsAttributes]
func (MatchAttributes) SrcAddressGroups ¶
func (m MatchAttributes) SrcAddressGroups() terra.ListValue[terra.StringValue]
func (MatchAttributes) SrcFqdns ¶
func (m MatchAttributes) SrcFqdns() terra.ListValue[terra.StringValue]
func (MatchAttributes) SrcIpRanges ¶
func (m MatchAttributes) SrcIpRanges() terra.ListValue[terra.StringValue]
func (MatchAttributes) SrcRegionCodes ¶
func (m MatchAttributes) SrcRegionCodes() terra.ListValue[terra.StringValue]
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 (lc MatchLayer4ConfigsAttributes) InternalWithRef(ref terra.Reference) MatchLayer4ConfigsAttributes
func (MatchLayer4ConfigsAttributes) IpProtocol ¶
func (lc MatchLayer4ConfigsAttributes) IpProtocol() terra.StringValue
func (MatchLayer4ConfigsAttributes) Ports ¶
func (lc MatchLayer4ConfigsAttributes) Ports() terra.ListValue[terra.StringValue]
type MatchLayer4ConfigsState ¶
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"` }
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_firewall_policy_rule.
func (*Resource) Attributes ¶
func (gcfpr *Resource) Attributes() googleComputeFirewallPolicyRuleAttributes
Attributes returns the attributes for Resource.
func (*Resource) Configuration ¶
func (gcfpr *Resource) Configuration() interface{}
Configuration returns the configuration (args) for Resource.
func (*Resource) Dependencies ¶
func (gcfpr *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.