azurerm_palo_alto_local_rulestack_rule

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 Args

type Args struct {
	// Action: string, required
	Action terra.StringValue `hcl:"action,attr" validate:"required"`
	// Applications: list of string, required
	Applications terra.ListValue[terra.StringValue] `hcl:"applications,attr" validate:"required"`
	// AuditComment: string, optional
	AuditComment terra.StringValue `hcl:"audit_comment,attr"`
	// DecryptionRuleType: string, optional
	DecryptionRuleType terra.StringValue `hcl:"decryption_rule_type,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// InspectionCertificateId: string, optional
	InspectionCertificateId terra.StringValue `hcl:"inspection_certificate_id,attr"`
	// LoggingEnabled: bool, optional
	LoggingEnabled terra.BoolValue `hcl:"logging_enabled,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// NegateDestination: bool, optional
	NegateDestination terra.BoolValue `hcl:"negate_destination,attr"`
	// NegateSource: bool, optional
	NegateSource terra.BoolValue `hcl:"negate_source,attr"`
	// Priority: number, required
	Priority terra.NumberValue `hcl:"priority,attr" validate:"required"`
	// Protocol: string, optional
	Protocol terra.StringValue `hcl:"protocol,attr"`
	// ProtocolPorts: list of string, optional
	ProtocolPorts terra.ListValue[terra.StringValue] `hcl:"protocol_ports,attr"`
	// RulestackId: string, required
	RulestackId terra.StringValue `hcl:"rulestack_id,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// Category: optional
	Category *Category `hcl:"category,block"`
	// Destination: required
	Destination *Destination `hcl:"destination,block" validate:"required"`
	// Source: required
	Source *Source `hcl:"source,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_palo_alto_local_rulestack_rule.

type Category

type Category struct {
	// CustomUrls: list of string, required
	CustomUrls terra.ListValue[terra.StringValue] `hcl:"custom_urls,attr" validate:"required"`
	// Feeds: list of string, optional
	Feeds terra.ListValue[terra.StringValue] `hcl:"feeds,attr"`
}

type CategoryAttributes

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

func (CategoryAttributes) CustomUrls

func (CategoryAttributes) Feeds

func (CategoryAttributes) InternalRef

func (c CategoryAttributes) InternalRef() (terra.Reference, error)

func (CategoryAttributes) InternalTokens

func (c CategoryAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CategoryAttributes) InternalWithRef

func (c CategoryAttributes) InternalWithRef(ref terra.Reference) CategoryAttributes

type CategoryState

type CategoryState struct {
	CustomUrls []string `json:"custom_urls"`
	Feeds      []string `json:"feeds"`
}

type Destination

type Destination struct {
	// Cidrs: list of string, optional
	Cidrs terra.ListValue[terra.StringValue] `hcl:"cidrs,attr"`
	// Countries: list of string, optional
	Countries terra.ListValue[terra.StringValue] `hcl:"countries,attr"`
	// Feeds: list of string, optional
	Feeds terra.ListValue[terra.StringValue] `hcl:"feeds,attr"`
	// LocalRulestackFqdnListIds: list of string, optional
	LocalRulestackFqdnListIds terra.ListValue[terra.StringValue] `hcl:"local_rulestack_fqdn_list_ids,attr"`
	// LocalRulestackPrefixListIds: list of string, optional
	LocalRulestackPrefixListIds terra.ListValue[terra.StringValue] `hcl:"local_rulestack_prefix_list_ids,attr"`
}

type DestinationAttributes

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

func (DestinationAttributes) Cidrs

func (DestinationAttributes) Countries

func (DestinationAttributes) Feeds

func (DestinationAttributes) InternalRef

func (d DestinationAttributes) InternalRef() (terra.Reference, error)

func (DestinationAttributes) InternalTokens

func (d DestinationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DestinationAttributes) InternalWithRef

func (DestinationAttributes) LocalRulestackFqdnListIds

func (d DestinationAttributes) LocalRulestackFqdnListIds() terra.ListValue[terra.StringValue]

func (DestinationAttributes) LocalRulestackPrefixListIds

func (d DestinationAttributes) LocalRulestackPrefixListIds() terra.ListValue[terra.StringValue]

type DestinationState

type DestinationState struct {
	Cidrs                       []string `json:"cidrs"`
	Countries                   []string `json:"countries"`
	Feeds                       []string `json:"feeds"`
	LocalRulestackFqdnListIds   []string `json:"local_rulestack_fqdn_list_ids"`
	LocalRulestackPrefixListIds []string `json:"local_rulestack_prefix_list_ids"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (apalrr *Resource) Attributes() azurermPaloAltoLocalRulestackRuleAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (apalrr *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (apalrr *Resource) State() (*azurermPaloAltoLocalRulestackRuleState, bool)

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

func (*Resource) StateMust

func (apalrr *Resource) StateMust() *azurermPaloAltoLocalRulestackRuleState

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

func (*Resource) Type

func (apalrr *Resource) Type() string

Type returns the Terraform object type for Resource.

type Source

type Source struct {
	// Cidrs: list of string, optional
	Cidrs terra.ListValue[terra.StringValue] `hcl:"cidrs,attr"`
	// Countries: list of string, optional
	Countries terra.ListValue[terra.StringValue] `hcl:"countries,attr"`
	// Feeds: list of string, optional
	Feeds terra.ListValue[terra.StringValue] `hcl:"feeds,attr"`
	// LocalRulestackPrefixListIds: list of string, optional
	LocalRulestackPrefixListIds terra.ListValue[terra.StringValue] `hcl:"local_rulestack_prefix_list_ids,attr"`
}

type SourceAttributes

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

func (SourceAttributes) Cidrs

func (SourceAttributes) Countries

func (SourceAttributes) Feeds

func (SourceAttributes) InternalRef

func (s SourceAttributes) InternalRef() (terra.Reference, error)

func (SourceAttributes) InternalTokens

func (s SourceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SourceAttributes) InternalWithRef

func (s SourceAttributes) InternalWithRef(ref terra.Reference) SourceAttributes

func (SourceAttributes) LocalRulestackPrefixListIds

func (s SourceAttributes) LocalRulestackPrefixListIds() terra.ListValue[terra.StringValue]

type SourceState

type SourceState struct {
	Cidrs                       []string `json:"cidrs"`
	Countries                   []string `json:"countries"`
	Feeds                       []string `json:"feeds"`
	LocalRulestackPrefixListIds []string `json:"local_rulestack_prefix_list_ids"`
}

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