Documentation ¶
Index ¶
- type Args
- type Resource
- func (gnsap *Resource) Attributes() googleNetworkSecurityAuthorizationPolicyAttributes
- func (gnsap *Resource) Configuration() interface{}
- func (gnsap *Resource) DependOn() terra.Reference
- func (gnsap *Resource) Dependencies() terra.Dependencies
- func (gnsap *Resource) ImportState(state io.Reader) error
- func (gnsap *Resource) LifecycleManagement() *terra.Lifecycle
- func (gnsap *Resource) LocalName() string
- func (gnsap *Resource) State() (*googleNetworkSecurityAuthorizationPolicyState, bool)
- func (gnsap *Resource) StateMust() *googleNetworkSecurityAuthorizationPolicyState
- func (gnsap *Resource) Type() string
- type Rules
- type RulesAttributes
- func (r RulesAttributes) Destinations() terra.ListValue[RulesDestinationsAttributes]
- func (r RulesAttributes) InternalRef() (terra.Reference, error)
- func (r RulesAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (r RulesAttributes) InternalWithRef(ref terra.Reference) RulesAttributes
- func (r RulesAttributes) Sources() terra.ListValue[RulesSourcesAttributes]
- type RulesDestinations
- type RulesDestinationsAttributes
- func (d RulesDestinationsAttributes) Hosts() terra.ListValue[terra.StringValue]
- func (d RulesDestinationsAttributes) HttpHeaderMatch() terra.ListValue[RulesDestinationsHttpHeaderMatchAttributes]
- func (d RulesDestinationsAttributes) InternalRef() (terra.Reference, error)
- func (d RulesDestinationsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (d RulesDestinationsAttributes) InternalWithRef(ref terra.Reference) RulesDestinationsAttributes
- func (d RulesDestinationsAttributes) Methods() terra.ListValue[terra.StringValue]
- func (d RulesDestinationsAttributes) Ports() terra.ListValue[terra.NumberValue]
- type RulesDestinationsHttpHeaderMatch
- type RulesDestinationsHttpHeaderMatchAttributes
- func (hhm RulesDestinationsHttpHeaderMatchAttributes) HeaderName() terra.StringValue
- func (hhm RulesDestinationsHttpHeaderMatchAttributes) InternalRef() (terra.Reference, error)
- func (hhm RulesDestinationsHttpHeaderMatchAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (hhm RulesDestinationsHttpHeaderMatchAttributes) InternalWithRef(ref terra.Reference) RulesDestinationsHttpHeaderMatchAttributes
- func (hhm RulesDestinationsHttpHeaderMatchAttributes) RegexMatch() terra.StringValue
- type RulesDestinationsHttpHeaderMatchState
- type RulesDestinationsState
- type RulesSources
- type RulesSourcesAttributes
- func (s RulesSourcesAttributes) InternalRef() (terra.Reference, error)
- func (s RulesSourcesAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (s RulesSourcesAttributes) InternalWithRef(ref terra.Reference) RulesSourcesAttributes
- func (s RulesSourcesAttributes) IpBlocks() terra.ListValue[terra.StringValue]
- func (s RulesSourcesAttributes) Principals() terra.ListValue[terra.StringValue]
- type RulesSourcesState
- type RulesState
- 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"` // Labels: map of string, optional Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"` // Location: string, optional Location terra.StringValue `hcl:"location,attr"` // Name: string, required Name terra.StringValue `hcl:"name,attr" validate:"required"` // Project: string, optional Project terra.StringValue `hcl:"project,attr"` // Rules: min=0 Rules []Rules `hcl:"rules,block" validate:"min=0"` // Timeouts: optional Timeouts *Timeouts `hcl:"timeouts,block"` }
Args contains the configurations for google_network_security_authorization_policy.
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_network_security_authorization_policy.
func (*Resource) Attributes ¶
func (gnsap *Resource) Attributes() googleNetworkSecurityAuthorizationPolicyAttributes
Attributes returns the attributes for Resource.
func (*Resource) Configuration ¶
func (gnsap *Resource) Configuration() interface{}
Configuration returns the configuration (args) for Resource.
func (*Resource) Dependencies ¶
func (gnsap *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 Rules ¶
type Rules struct { // RulesDestinations: min=0 Destinations []RulesDestinations `hcl:"destinations,block" validate:"min=0"` // RulesSources: min=0 Sources []RulesSources `hcl:"sources,block" validate:"min=0"` }
type RulesAttributes ¶
type RulesAttributes struct {
// contains filtered or unexported fields
}
func (RulesAttributes) Destinations ¶
func (r RulesAttributes) Destinations() terra.ListValue[RulesDestinationsAttributes]
func (RulesAttributes) InternalRef ¶
func (r RulesAttributes) InternalRef() (terra.Reference, error)
func (RulesAttributes) InternalTokens ¶
func (r RulesAttributes) InternalTokens() (hclwrite.Tokens, error)
func (RulesAttributes) InternalWithRef ¶
func (r RulesAttributes) InternalWithRef(ref terra.Reference) RulesAttributes
func (RulesAttributes) Sources ¶
func (r RulesAttributes) Sources() terra.ListValue[RulesSourcesAttributes]
type RulesDestinations ¶
type RulesDestinations struct { // Hosts: list of string, required Hosts terra.ListValue[terra.StringValue] `hcl:"hosts,attr" validate:"required"` // Methods: list of string, required Methods terra.ListValue[terra.StringValue] `hcl:"methods,attr" validate:"required"` // Ports: list of number, required Ports terra.ListValue[terra.NumberValue] `hcl:"ports,attr" validate:"required"` // RulesDestinationsHttpHeaderMatch: optional HttpHeaderMatch *RulesDestinationsHttpHeaderMatch `hcl:"http_header_match,block"` }
type RulesDestinationsAttributes ¶
type RulesDestinationsAttributes struct {
// contains filtered or unexported fields
}
func (RulesDestinationsAttributes) Hosts ¶
func (d RulesDestinationsAttributes) Hosts() terra.ListValue[terra.StringValue]
func (RulesDestinationsAttributes) HttpHeaderMatch ¶
func (d RulesDestinationsAttributes) HttpHeaderMatch() terra.ListValue[RulesDestinationsHttpHeaderMatchAttributes]
func (RulesDestinationsAttributes) InternalRef ¶
func (d RulesDestinationsAttributes) InternalRef() (terra.Reference, error)
func (RulesDestinationsAttributes) InternalTokens ¶
func (d RulesDestinationsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (RulesDestinationsAttributes) InternalWithRef ¶
func (d RulesDestinationsAttributes) InternalWithRef(ref terra.Reference) RulesDestinationsAttributes
func (RulesDestinationsAttributes) Methods ¶
func (d RulesDestinationsAttributes) Methods() terra.ListValue[terra.StringValue]
func (RulesDestinationsAttributes) Ports ¶
func (d RulesDestinationsAttributes) Ports() terra.ListValue[terra.NumberValue]
type RulesDestinationsHttpHeaderMatch ¶
type RulesDestinationsHttpHeaderMatch struct { // HeaderName: string, required HeaderName terra.StringValue `hcl:"header_name,attr" validate:"required"` // RegexMatch: string, required RegexMatch terra.StringValue `hcl:"regex_match,attr" validate:"required"` }
type RulesDestinationsHttpHeaderMatchAttributes ¶
type RulesDestinationsHttpHeaderMatchAttributes struct {
// contains filtered or unexported fields
}
func (RulesDestinationsHttpHeaderMatchAttributes) HeaderName ¶
func (hhm RulesDestinationsHttpHeaderMatchAttributes) HeaderName() terra.StringValue
func (RulesDestinationsHttpHeaderMatchAttributes) InternalRef ¶
func (hhm RulesDestinationsHttpHeaderMatchAttributes) InternalRef() (terra.Reference, error)
func (RulesDestinationsHttpHeaderMatchAttributes) InternalTokens ¶
func (hhm RulesDestinationsHttpHeaderMatchAttributes) InternalTokens() (hclwrite.Tokens, error)
func (RulesDestinationsHttpHeaderMatchAttributes) InternalWithRef ¶
func (hhm RulesDestinationsHttpHeaderMatchAttributes) InternalWithRef(ref terra.Reference) RulesDestinationsHttpHeaderMatchAttributes
func (RulesDestinationsHttpHeaderMatchAttributes) RegexMatch ¶
func (hhm RulesDestinationsHttpHeaderMatchAttributes) RegexMatch() terra.StringValue
type RulesDestinationsState ¶
type RulesDestinationsState struct { Hosts []string `json:"hosts"` Methods []string `json:"methods"` Ports []float64 `json:"ports"` HttpHeaderMatch []RulesDestinationsHttpHeaderMatchState `json:"http_header_match"` }
type RulesSources ¶
type RulesSources struct { // IpBlocks: list of string, optional IpBlocks terra.ListValue[terra.StringValue] `hcl:"ip_blocks,attr"` // Principals: list of string, optional Principals terra.ListValue[terra.StringValue] `hcl:"principals,attr"` }
type RulesSourcesAttributes ¶
type RulesSourcesAttributes struct {
// contains filtered or unexported fields
}
func (RulesSourcesAttributes) InternalRef ¶
func (s RulesSourcesAttributes) InternalRef() (terra.Reference, error)
func (RulesSourcesAttributes) InternalTokens ¶
func (s RulesSourcesAttributes) InternalTokens() (hclwrite.Tokens, error)
func (RulesSourcesAttributes) InternalWithRef ¶
func (s RulesSourcesAttributes) InternalWithRef(ref terra.Reference) RulesSourcesAttributes
func (RulesSourcesAttributes) IpBlocks ¶
func (s RulesSourcesAttributes) IpBlocks() terra.ListValue[terra.StringValue]
func (RulesSourcesAttributes) Principals ¶
func (s RulesSourcesAttributes) Principals() terra.ListValue[terra.StringValue]
type RulesSourcesState ¶
type RulesState ¶
type RulesState struct { Destinations []RulesDestinationsState `json:"destinations"` Sources []RulesSourcesState `json:"sources"` }
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.