Documentation
¶
Index ¶
- type Args
- type Match
- type MatchAttributes
- func (m MatchAttributes) Config() terra.ListValue[MatchConfigAttributes]
- func (m MatchAttributes) Description() 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) VersionedExpr() terra.StringValue
- type MatchConfig
- type MatchConfigAttributes
- func (c MatchConfigAttributes) DestIpRanges() terra.ListValue[terra.StringValue]
- 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) Layer4Config() terra.ListValue[MatchConfigLayer4ConfigAttributes]
- func (c MatchConfigAttributes) SrcIpRanges() terra.ListValue[terra.StringValue]
- type MatchConfigLayer4Config
- type MatchConfigLayer4ConfigAttributes
- func (lc MatchConfigLayer4ConfigAttributes) InternalRef() (terra.Reference, error)
- func (lc MatchConfigLayer4ConfigAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (lc MatchConfigLayer4ConfigAttributes) InternalWithRef(ref terra.Reference) MatchConfigLayer4ConfigAttributes
- func (lc MatchConfigLayer4ConfigAttributes) IpProtocol() terra.StringValue
- func (lc MatchConfigLayer4ConfigAttributes) Ports() terra.ListValue[terra.StringValue]
- type MatchConfigLayer4ConfigState
- type MatchConfigState
- type MatchState
- type Resource
- func (gcospr *Resource) Attributes() googleComputeOrganizationSecurityPolicyRuleAttributes
- func (gcospr *Resource) Configuration() interface{}
- func (gcospr *Resource) DependOn() terra.Reference
- func (gcospr *Resource) Dependencies() terra.Dependencies
- func (gcospr *Resource) ImportState(state io.Reader) error
- func (gcospr *Resource) LifecycleManagement() *terra.Lifecycle
- func (gcospr *Resource) LocalName() string
- func (gcospr *Resource) State() (*googleComputeOrganizationSecurityPolicyRuleState, bool)
- func (gcospr *Resource) StateMust() *googleComputeOrganizationSecurityPolicyRuleState
- func (gcospr *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, optional Direction terra.StringValue `hcl:"direction,attr"` // EnableLogging: bool, optional EnableLogging terra.BoolValue `hcl:"enable_logging,attr"` // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // PolicyId: string, required PolicyId terra.StringValue `hcl:"policy_id,attr" validate:"required"` // Preview: bool, optional Preview terra.BoolValue `hcl:"preview,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_organization_security_policy_rule.
type Match ¶
type Match struct { // Description: string, optional Description terra.StringValue `hcl:"description,attr"` // VersionedExpr: string, optional VersionedExpr terra.StringValue `hcl:"versioned_expr,attr"` // MatchConfig: required Config *MatchConfig `hcl:"config,block" validate:"required"` }
type MatchAttributes ¶
type MatchAttributes struct {
// contains filtered or unexported fields
}
func (MatchAttributes) Config ¶
func (m MatchAttributes) Config() terra.ListValue[MatchConfigAttributes]
func (MatchAttributes) Description ¶
func (m MatchAttributes) Description() 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) VersionedExpr ¶
func (m MatchAttributes) VersionedExpr() terra.StringValue
type MatchConfig ¶
type MatchConfig struct { // DestIpRanges: list of string, optional DestIpRanges terra.ListValue[terra.StringValue] `hcl:"dest_ip_ranges,attr"` // SrcIpRanges: list of string, optional SrcIpRanges terra.ListValue[terra.StringValue] `hcl:"src_ip_ranges,attr"` // MatchConfigLayer4Config: min=1 Layer4Config []MatchConfigLayer4Config `hcl:"layer4_config,block" validate:"min=1"` }
type MatchConfigAttributes ¶
type MatchConfigAttributes struct {
// contains filtered or unexported fields
}
func (MatchConfigAttributes) DestIpRanges ¶
func (c MatchConfigAttributes) DestIpRanges() terra.ListValue[terra.StringValue]
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) Layer4Config ¶
func (c MatchConfigAttributes) Layer4Config() terra.ListValue[MatchConfigLayer4ConfigAttributes]
func (MatchConfigAttributes) SrcIpRanges ¶
func (c MatchConfigAttributes) SrcIpRanges() terra.ListValue[terra.StringValue]
type MatchConfigLayer4Config ¶
type MatchConfigLayer4Config 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 MatchConfigLayer4ConfigAttributes ¶
type MatchConfigLayer4ConfigAttributes struct {
// contains filtered or unexported fields
}
func (MatchConfigLayer4ConfigAttributes) InternalRef ¶
func (lc MatchConfigLayer4ConfigAttributes) InternalRef() (terra.Reference, error)
func (MatchConfigLayer4ConfigAttributes) InternalTokens ¶
func (lc MatchConfigLayer4ConfigAttributes) InternalTokens() (hclwrite.Tokens, error)
func (MatchConfigLayer4ConfigAttributes) InternalWithRef ¶
func (lc MatchConfigLayer4ConfigAttributes) InternalWithRef(ref terra.Reference) MatchConfigLayer4ConfigAttributes
func (MatchConfigLayer4ConfigAttributes) IpProtocol ¶
func (lc MatchConfigLayer4ConfigAttributes) IpProtocol() terra.StringValue
func (MatchConfigLayer4ConfigAttributes) Ports ¶
func (lc MatchConfigLayer4ConfigAttributes) Ports() terra.ListValue[terra.StringValue]
type MatchConfigState ¶
type MatchConfigState struct { DestIpRanges []string `json:"dest_ip_ranges"` SrcIpRanges []string `json:"src_ip_ranges"` Layer4Config []MatchConfigLayer4ConfigState `json:"layer4_config"` }
type MatchState ¶
type MatchState struct { Description string `json:"description"` VersionedExpr string `json:"versioned_expr"` Config []MatchConfigState `json:"config"` }
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_organization_security_policy_rule.
func (*Resource) Attributes ¶
func (gcospr *Resource) Attributes() googleComputeOrganizationSecurityPolicyRuleAttributes
Attributes returns the attributes for Resource.
func (*Resource) Configuration ¶
func (gcospr *Resource) Configuration() interface{}
Configuration returns the configuration (args) for Resource.
func (*Resource) Dependencies ¶
func (gcospr *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.