azurerm_firewall_policy_rule_collection_group

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 ApplicationRuleCollection

type ApplicationRuleCollection struct {
	// Action: string, required
	Action terra.StringValue `hcl:"action,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Priority: number, required
	Priority terra.NumberValue `hcl:"priority,attr" validate:"required"`
	// ApplicationRuleCollectionRule: min=1
	Rule []ApplicationRuleCollectionRule `hcl:"rule,block" validate:"min=1"`
}

type ApplicationRuleCollectionAttributes

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

func (ApplicationRuleCollectionAttributes) Action

func (ApplicationRuleCollectionAttributes) InternalRef

func (ApplicationRuleCollectionAttributes) InternalTokens

func (arc ApplicationRuleCollectionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ApplicationRuleCollectionAttributes) InternalWithRef

func (ApplicationRuleCollectionAttributes) Name

func (ApplicationRuleCollectionAttributes) Priority

func (ApplicationRuleCollectionAttributes) Rule

type ApplicationRuleCollectionRule

type ApplicationRuleCollectionRule struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// DestinationAddresses: list of string, optional
	DestinationAddresses terra.ListValue[terra.StringValue] `hcl:"destination_addresses,attr"`
	// DestinationFqdnTags: list of string, optional
	DestinationFqdnTags terra.ListValue[terra.StringValue] `hcl:"destination_fqdn_tags,attr"`
	// DestinationFqdns: list of string, optional
	DestinationFqdns terra.ListValue[terra.StringValue] `hcl:"destination_fqdns,attr"`
	// DestinationUrls: list of string, optional
	DestinationUrls terra.ListValue[terra.StringValue] `hcl:"destination_urls,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// SourceAddresses: list of string, optional
	SourceAddresses terra.ListValue[terra.StringValue] `hcl:"source_addresses,attr"`
	// SourceIpGroups: list of string, optional
	SourceIpGroups terra.ListValue[terra.StringValue] `hcl:"source_ip_groups,attr"`
	// TerminateTls: bool, optional
	TerminateTls terra.BoolValue `hcl:"terminate_tls,attr"`
	// WebCategories: list of string, optional
	WebCategories terra.ListValue[terra.StringValue] `hcl:"web_categories,attr"`
	// ApplicationRuleCollectionRuleHttpHeaders: min=0
	HttpHeaders []ApplicationRuleCollectionRuleHttpHeaders `hcl:"http_headers,block" validate:"min=0"`
	// ApplicationRuleCollectionRuleProtocols: min=0
	Protocols []ApplicationRuleCollectionRuleProtocols `hcl:"protocols,block" validate:"min=0"`
}

type ApplicationRuleCollectionRuleAttributes

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

func (ApplicationRuleCollectionRuleAttributes) Description

func (ApplicationRuleCollectionRuleAttributes) DestinationAddresses

func (ApplicationRuleCollectionRuleAttributes) DestinationFqdnTags

func (ApplicationRuleCollectionRuleAttributes) DestinationFqdns

func (ApplicationRuleCollectionRuleAttributes) DestinationUrls

func (ApplicationRuleCollectionRuleAttributes) HttpHeaders

func (ApplicationRuleCollectionRuleAttributes) InternalRef

func (ApplicationRuleCollectionRuleAttributes) InternalTokens

func (ApplicationRuleCollectionRuleAttributes) InternalWithRef

func (ApplicationRuleCollectionRuleAttributes) Name

func (ApplicationRuleCollectionRuleAttributes) Protocols

func (ApplicationRuleCollectionRuleAttributes) SourceAddresses

func (ApplicationRuleCollectionRuleAttributes) SourceIpGroups

func (ApplicationRuleCollectionRuleAttributes) TerminateTls

func (ApplicationRuleCollectionRuleAttributes) WebCategories

type ApplicationRuleCollectionRuleHttpHeaders

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

type ApplicationRuleCollectionRuleHttpHeadersAttributes

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

func (ApplicationRuleCollectionRuleHttpHeadersAttributes) InternalRef

func (ApplicationRuleCollectionRuleHttpHeadersAttributes) InternalTokens

func (ApplicationRuleCollectionRuleHttpHeadersAttributes) InternalWithRef

func (ApplicationRuleCollectionRuleHttpHeadersAttributes) Name

func (ApplicationRuleCollectionRuleHttpHeadersAttributes) Value

type ApplicationRuleCollectionRuleHttpHeadersState

type ApplicationRuleCollectionRuleHttpHeadersState struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type ApplicationRuleCollectionRuleProtocols

type ApplicationRuleCollectionRuleProtocols struct {
	// Port: number, required
	Port terra.NumberValue `hcl:"port,attr" validate:"required"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type ApplicationRuleCollectionRuleProtocolsAttributes

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

func (ApplicationRuleCollectionRuleProtocolsAttributes) InternalRef

func (ApplicationRuleCollectionRuleProtocolsAttributes) InternalTokens

func (ApplicationRuleCollectionRuleProtocolsAttributes) InternalWithRef

func (ApplicationRuleCollectionRuleProtocolsAttributes) Port

func (ApplicationRuleCollectionRuleProtocolsAttributes) Type

type ApplicationRuleCollectionRuleProtocolsState

type ApplicationRuleCollectionRuleProtocolsState struct {
	Port float64 `json:"port"`
	Type string  `json:"type"`
}

type ApplicationRuleCollectionRuleState

type ApplicationRuleCollectionRuleState struct {
	Description          string                                          `json:"description"`
	DestinationAddresses []string                                        `json:"destination_addresses"`
	DestinationFqdnTags  []string                                        `json:"destination_fqdn_tags"`
	DestinationFqdns     []string                                        `json:"destination_fqdns"`
	DestinationUrls      []string                                        `json:"destination_urls"`
	Name                 string                                          `json:"name"`
	SourceAddresses      []string                                        `json:"source_addresses"`
	SourceIpGroups       []string                                        `json:"source_ip_groups"`
	TerminateTls         bool                                            `json:"terminate_tls"`
	WebCategories        []string                                        `json:"web_categories"`
	HttpHeaders          []ApplicationRuleCollectionRuleHttpHeadersState `json:"http_headers"`
	Protocols            []ApplicationRuleCollectionRuleProtocolsState   `json:"protocols"`
}

type ApplicationRuleCollectionState

type ApplicationRuleCollectionState struct {
	Action   string                               `json:"action"`
	Name     string                               `json:"name"`
	Priority float64                              `json:"priority"`
	Rule     []ApplicationRuleCollectionRuleState `json:"rule"`
}

type Args

type Args struct {
	// FirewallPolicyId: string, required
	FirewallPolicyId terra.StringValue `hcl:"firewall_policy_id,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Priority: number, required
	Priority terra.NumberValue `hcl:"priority,attr" validate:"required"`
	// ApplicationRuleCollection: min=0
	ApplicationRuleCollection []ApplicationRuleCollection `hcl:"application_rule_collection,block" validate:"min=0"`
	// NatRuleCollection: min=0
	NatRuleCollection []NatRuleCollection `hcl:"nat_rule_collection,block" validate:"min=0"`
	// NetworkRuleCollection: min=0
	NetworkRuleCollection []NetworkRuleCollection `hcl:"network_rule_collection,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_firewall_policy_rule_collection_group.

type NatRuleCollection

type NatRuleCollection struct {
	// Action: string, required
	Action terra.StringValue `hcl:"action,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Priority: number, required
	Priority terra.NumberValue `hcl:"priority,attr" validate:"required"`
	// NatRuleCollectionRule: min=1
	Rule []NatRuleCollectionRule `hcl:"rule,block" validate:"min=1"`
}

type NatRuleCollectionAttributes

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

func (NatRuleCollectionAttributes) Action

func (NatRuleCollectionAttributes) InternalRef

func (nrc NatRuleCollectionAttributes) InternalRef() (terra.Reference, error)

func (NatRuleCollectionAttributes) InternalTokens

func (nrc NatRuleCollectionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NatRuleCollectionAttributes) InternalWithRef

func (NatRuleCollectionAttributes) Name

func (NatRuleCollectionAttributes) Priority

func (NatRuleCollectionAttributes) Rule

type NatRuleCollectionRule

type NatRuleCollectionRule struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// DestinationAddress: string, optional
	DestinationAddress terra.StringValue `hcl:"destination_address,attr"`
	// DestinationPorts: list of string, optional
	DestinationPorts terra.ListValue[terra.StringValue] `hcl:"destination_ports,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Protocols: list of string, required
	Protocols terra.ListValue[terra.StringValue] `hcl:"protocols,attr" validate:"required"`
	// SourceAddresses: list of string, optional
	SourceAddresses terra.ListValue[terra.StringValue] `hcl:"source_addresses,attr"`
	// SourceIpGroups: list of string, optional
	SourceIpGroups terra.ListValue[terra.StringValue] `hcl:"source_ip_groups,attr"`
	// TranslatedAddress: string, optional
	TranslatedAddress terra.StringValue `hcl:"translated_address,attr"`
	// TranslatedFqdn: string, optional
	TranslatedFqdn terra.StringValue `hcl:"translated_fqdn,attr"`
	// TranslatedPort: number, required
	TranslatedPort terra.NumberValue `hcl:"translated_port,attr" validate:"required"`
}

type NatRuleCollectionRuleAttributes

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

func (NatRuleCollectionRuleAttributes) Description

func (NatRuleCollectionRuleAttributes) DestinationAddress

func (r NatRuleCollectionRuleAttributes) DestinationAddress() terra.StringValue

func (NatRuleCollectionRuleAttributes) DestinationPorts

func (NatRuleCollectionRuleAttributes) InternalRef

func (NatRuleCollectionRuleAttributes) InternalTokens

func (r NatRuleCollectionRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NatRuleCollectionRuleAttributes) InternalWithRef

func (NatRuleCollectionRuleAttributes) Name

func (NatRuleCollectionRuleAttributes) Protocols

func (NatRuleCollectionRuleAttributes) SourceAddresses

func (NatRuleCollectionRuleAttributes) SourceIpGroups

func (NatRuleCollectionRuleAttributes) TranslatedAddress

func (r NatRuleCollectionRuleAttributes) TranslatedAddress() terra.StringValue

func (NatRuleCollectionRuleAttributes) TranslatedFqdn

func (NatRuleCollectionRuleAttributes) TranslatedPort

type NatRuleCollectionRuleState

type NatRuleCollectionRuleState struct {
	Description        string   `json:"description"`
	DestinationAddress string   `json:"destination_address"`
	DestinationPorts   []string `json:"destination_ports"`
	Name               string   `json:"name"`
	Protocols          []string `json:"protocols"`
	SourceAddresses    []string `json:"source_addresses"`
	SourceIpGroups     []string `json:"source_ip_groups"`
	TranslatedAddress  string   `json:"translated_address"`
	TranslatedFqdn     string   `json:"translated_fqdn"`
	TranslatedPort     float64  `json:"translated_port"`
}

type NatRuleCollectionState

type NatRuleCollectionState struct {
	Action   string                       `json:"action"`
	Name     string                       `json:"name"`
	Priority float64                      `json:"priority"`
	Rule     []NatRuleCollectionRuleState `json:"rule"`
}

type NetworkRuleCollection

type NetworkRuleCollection struct {
	// Action: string, required
	Action terra.StringValue `hcl:"action,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Priority: number, required
	Priority terra.NumberValue `hcl:"priority,attr" validate:"required"`
	// NetworkRuleCollectionRule: min=1
	Rule []NetworkRuleCollectionRule `hcl:"rule,block" validate:"min=1"`
}

type NetworkRuleCollectionAttributes

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

func (NetworkRuleCollectionAttributes) Action

func (NetworkRuleCollectionAttributes) InternalRef

func (NetworkRuleCollectionAttributes) InternalTokens

func (nrc NetworkRuleCollectionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NetworkRuleCollectionAttributes) InternalWithRef

func (NetworkRuleCollectionAttributes) Name

func (NetworkRuleCollectionAttributes) Priority

func (NetworkRuleCollectionAttributes) Rule

type NetworkRuleCollectionRule

type NetworkRuleCollectionRule struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// DestinationAddresses: list of string, optional
	DestinationAddresses terra.ListValue[terra.StringValue] `hcl:"destination_addresses,attr"`
	// DestinationFqdns: list of string, optional
	DestinationFqdns terra.ListValue[terra.StringValue] `hcl:"destination_fqdns,attr"`
	// DestinationIpGroups: list of string, optional
	DestinationIpGroups terra.ListValue[terra.StringValue] `hcl:"destination_ip_groups,attr"`
	// DestinationPorts: list of string, required
	DestinationPorts terra.ListValue[terra.StringValue] `hcl:"destination_ports,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Protocols: list of string, required
	Protocols terra.ListValue[terra.StringValue] `hcl:"protocols,attr" validate:"required"`
	// SourceAddresses: list of string, optional
	SourceAddresses terra.ListValue[terra.StringValue] `hcl:"source_addresses,attr"`
	// SourceIpGroups: list of string, optional
	SourceIpGroups terra.ListValue[terra.StringValue] `hcl:"source_ip_groups,attr"`
}

type NetworkRuleCollectionRuleAttributes

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

func (NetworkRuleCollectionRuleAttributes) Description

func (NetworkRuleCollectionRuleAttributes) DestinationAddresses

func (NetworkRuleCollectionRuleAttributes) DestinationFqdns

func (NetworkRuleCollectionRuleAttributes) DestinationIpGroups

func (NetworkRuleCollectionRuleAttributes) DestinationPorts

func (NetworkRuleCollectionRuleAttributes) InternalRef

func (NetworkRuleCollectionRuleAttributes) InternalTokens

func (NetworkRuleCollectionRuleAttributes) InternalWithRef

func (NetworkRuleCollectionRuleAttributes) Name

func (NetworkRuleCollectionRuleAttributes) Protocols

func (NetworkRuleCollectionRuleAttributes) SourceAddresses

func (NetworkRuleCollectionRuleAttributes) SourceIpGroups

type NetworkRuleCollectionRuleState

type NetworkRuleCollectionRuleState struct {
	Description          string   `json:"description"`
	DestinationAddresses []string `json:"destination_addresses"`
	DestinationFqdns     []string `json:"destination_fqdns"`
	DestinationIpGroups  []string `json:"destination_ip_groups"`
	DestinationPorts     []string `json:"destination_ports"`
	Name                 string   `json:"name"`
	Protocols            []string `json:"protocols"`
	SourceAddresses      []string `json:"source_addresses"`
	SourceIpGroups       []string `json:"source_ip_groups"`
}

type NetworkRuleCollectionState

type NetworkRuleCollectionState struct {
	Action   string                           `json:"action"`
	Name     string                           `json:"name"`
	Priority float64                          `json:"priority"`
	Rule     []NetworkRuleCollectionRuleState `json:"rule"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (afprcg *Resource) Attributes() azurermFirewallPolicyRuleCollectionGroupAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (afprcg *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (afprcg *Resource) State() (*azurermFirewallPolicyRuleCollectionGroupState, bool)

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

func (*Resource) StateMust

func (afprcg *Resource) StateMust() *azurermFirewallPolicyRuleCollectionGroupState

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

func (*Resource) Type

func (afprcg *Resource) Type() string

Type returns the Terraform object type 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"`
	// Read: string, optional
	Read terra.StringValue `hcl:"read,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) Read

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Read   string `json:"read"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL