networkfirewallrulegroup

package
v0.0.0-...-964ba77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionDefinition

type ActionDefinition struct {
	// PublishMetricAction: required
	PublishMetricAction *PublishMetricAction `hcl:"publish_metric_action,block" validate:"required"`
}

type ActionDefinitionAttributes

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

func (ActionDefinitionAttributes) InternalRef

func (ad ActionDefinitionAttributes) InternalRef() (terra.Reference, error)

func (ActionDefinitionAttributes) InternalTokens

func (ad ActionDefinitionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ActionDefinitionAttributes) InternalWithRef

func (ActionDefinitionAttributes) PublishMetricAction

type ActionDefinitionState

type ActionDefinitionState struct {
	PublishMetricAction []PublishMetricActionState `json:"publish_metric_action"`
}

type CustomAction

type CustomAction struct {
	// ActionName: string, required
	ActionName terra.StringValue `hcl:"action_name,attr" validate:"required"`
	// ActionDefinition: required
	ActionDefinition *ActionDefinition `hcl:"action_definition,block" validate:"required"`
}

type CustomActionAttributes

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

func (CustomActionAttributes) ActionDefinition

func (CustomActionAttributes) ActionName

func (ca CustomActionAttributes) ActionName() terra.StringValue

func (CustomActionAttributes) InternalRef

func (ca CustomActionAttributes) InternalRef() (terra.Reference, error)

func (CustomActionAttributes) InternalTokens

func (ca CustomActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CustomActionAttributes) InternalWithRef

type CustomActionState

type CustomActionState struct {
	ActionName       string                  `json:"action_name"`
	ActionDefinition []ActionDefinitionState `json:"action_definition"`
}

type Destination

type Destination struct {
	// AddressDefinition: string, required
	AddressDefinition terra.StringValue `hcl:"address_definition,attr" validate:"required"`
}

type DestinationAttributes

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

func (DestinationAttributes) AddressDefinition

func (d DestinationAttributes) AddressDefinition() terra.StringValue

func (DestinationAttributes) InternalRef

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

func (DestinationAttributes) InternalTokens

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

func (DestinationAttributes) InternalWithRef

type DestinationPort

type DestinationPort struct {
	// FromPort: number, required
	FromPort terra.NumberValue `hcl:"from_port,attr" validate:"required"`
	// ToPort: number, optional
	ToPort terra.NumberValue `hcl:"to_port,attr"`
}

type DestinationPortAttributes

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

func (DestinationPortAttributes) FromPort

func (DestinationPortAttributes) InternalRef

func (dp DestinationPortAttributes) InternalRef() (terra.Reference, error)

func (DestinationPortAttributes) InternalTokens

func (dp DestinationPortAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DestinationPortAttributes) InternalWithRef

func (DestinationPortAttributes) ToPort

type DestinationPortState

type DestinationPortState struct {
	FromPort float64 `json:"from_port"`
	ToPort   float64 `json:"to_port"`
}

type DestinationState

type DestinationState struct {
	AddressDefinition string `json:"address_definition"`
}

type Dimension

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

type DimensionAttributes

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

func (DimensionAttributes) InternalRef

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

func (DimensionAttributes) InternalTokens

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

func (DimensionAttributes) InternalWithRef

func (d DimensionAttributes) InternalWithRef(ref terra.Reference) DimensionAttributes

func (DimensionAttributes) Value

type DimensionState

type DimensionState struct {
	Value string `json:"value"`
}

type EncryptionConfiguration

type EncryptionConfiguration struct {
	// KeyId: string, optional
	KeyId terra.StringValue `hcl:"key_id,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type EncryptionConfigurationAttributes

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

func (EncryptionConfigurationAttributes) InternalRef

func (EncryptionConfigurationAttributes) InternalTokens

func (ec EncryptionConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EncryptionConfigurationAttributes) InternalWithRef

func (EncryptionConfigurationAttributes) KeyId

func (EncryptionConfigurationAttributes) Type

type EncryptionConfigurationState

type EncryptionConfigurationState struct {
	KeyId string `json:"key_id"`
	Type  string `json:"type"`
}
type Header struct {
	// Destination: string, required
	Destination terra.StringValue `hcl:"destination,attr" validate:"required"`
	// DestinationPort: string, required
	DestinationPort terra.StringValue `hcl:"destination_port,attr" validate:"required"`
	// Direction: string, required
	Direction terra.StringValue `hcl:"direction,attr" validate:"required"`
	// Protocol: string, required
	Protocol terra.StringValue `hcl:"protocol,attr" validate:"required"`
	// Source: string, required
	Source terra.StringValue `hcl:"source,attr" validate:"required"`
	// SourcePort: string, required
	SourcePort terra.StringValue `hcl:"source_port,attr" validate:"required"`
}

type HeaderAttributes

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

func (HeaderAttributes) Destination

func (h HeaderAttributes) Destination() terra.StringValue

func (HeaderAttributes) DestinationPort

func (h HeaderAttributes) DestinationPort() terra.StringValue

func (HeaderAttributes) Direction

func (h HeaderAttributes) Direction() terra.StringValue

func (HeaderAttributes) InternalRef

func (h HeaderAttributes) InternalRef() (terra.Reference, error)

func (HeaderAttributes) InternalTokens

func (h HeaderAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HeaderAttributes) InternalWithRef

func (h HeaderAttributes) InternalWithRef(ref terra.Reference) HeaderAttributes

func (HeaderAttributes) Protocol

func (h HeaderAttributes) Protocol() terra.StringValue

func (HeaderAttributes) Source

func (h HeaderAttributes) Source() terra.StringValue

func (HeaderAttributes) SourcePort

func (h HeaderAttributes) SourcePort() terra.StringValue

type HeaderState

type HeaderState struct {
	Destination     string `json:"destination"`
	DestinationPort string `json:"destination_port"`
	Direction       string `json:"direction"`
	Protocol        string `json:"protocol"`
	Source          string `json:"source"`
	SourcePort      string `json:"source_port"`
}

type IpSet

type IpSet struct {
	// Definition: set of string, required
	Definition terra.SetValue[terra.StringValue] `hcl:"definition,attr" validate:"required"`
}

type IpSetAttributes

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

func (IpSetAttributes) Definition

func (is IpSetAttributes) Definition() terra.SetValue[terra.StringValue]

func (IpSetAttributes) InternalRef

func (is IpSetAttributes) InternalRef() (terra.Reference, error)

func (IpSetAttributes) InternalTokens

func (is IpSetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (IpSetAttributes) InternalWithRef

func (is IpSetAttributes) InternalWithRef(ref terra.Reference) IpSetAttributes

type IpSetReference

type IpSetReference struct {
	// ReferenceArn: string, required
	ReferenceArn terra.StringValue `hcl:"reference_arn,attr" validate:"required"`
}

type IpSetReferenceAttributes

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

func (IpSetReferenceAttributes) InternalRef

func (isr IpSetReferenceAttributes) InternalRef() (terra.Reference, error)

func (IpSetReferenceAttributes) InternalTokens

func (isr IpSetReferenceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (IpSetReferenceAttributes) InternalWithRef

func (IpSetReferenceAttributes) ReferenceArn

func (isr IpSetReferenceAttributes) ReferenceArn() terra.StringValue

type IpSetReferenceState

type IpSetReferenceState struct {
	ReferenceArn string `json:"reference_arn"`
}

type IpSetReferences

type IpSetReferences struct {
	// Key: string, required
	Key terra.StringValue `hcl:"key,attr" validate:"required"`
	// IpSetReference: min=1
	IpSetReference []IpSetReference `hcl:"ip_set_reference,block" validate:"min=1"`
}

type IpSetReferencesAttributes

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

func (IpSetReferencesAttributes) InternalRef

func (isr IpSetReferencesAttributes) InternalRef() (terra.Reference, error)

func (IpSetReferencesAttributes) InternalTokens

func (isr IpSetReferencesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (IpSetReferencesAttributes) InternalWithRef

func (IpSetReferencesAttributes) IpSetReference

func (IpSetReferencesAttributes) Key

type IpSetReferencesState

type IpSetReferencesState struct {
	Key            string                `json:"key"`
	IpSetReference []IpSetReferenceState `json:"ip_set_reference"`
}

type IpSetState

type IpSetState struct {
	Definition []string `json:"definition"`
}

type IpSets

type IpSets struct {
	// Key: string, required
	Key terra.StringValue `hcl:"key,attr" validate:"required"`
	// IpSet: required
	IpSet *IpSet `hcl:"ip_set,block" validate:"required"`
}

type IpSetsAttributes

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

func (IpSetsAttributes) InternalRef

func (is IpSetsAttributes) InternalRef() (terra.Reference, error)

func (IpSetsAttributes) InternalTokens

func (is IpSetsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (IpSetsAttributes) InternalWithRef

func (is IpSetsAttributes) InternalWithRef(ref terra.Reference) IpSetsAttributes

func (IpSetsAttributes) IpSet

func (IpSetsAttributes) Key

type IpSetsState

type IpSetsState struct {
	Key   string       `json:"key"`
	IpSet []IpSetState `json:"ip_set"`
}

type MatchAttributes

type MatchAttributes struct {
	// Protocols: set of number, optional
	Protocols terra.SetValue[terra.NumberValue] `hcl:"protocols,attr"`
	// Destination: min=0
	Destination []Destination `hcl:"destination,block" validate:"min=0"`
	// DestinationPort: min=0
	DestinationPort []DestinationPort `hcl:"destination_port,block" validate:"min=0"`
	// Source: min=0
	Source []Source `hcl:"source,block" validate:"min=0"`
	// SourcePort: min=0
	SourcePort []SourcePort `hcl:"source_port,block" validate:"min=0"`
	// TcpFlag: min=0
	TcpFlag []TcpFlag `hcl:"tcp_flag,block" validate:"min=0"`
}

type MatchAttributesAttributes

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

func (MatchAttributesAttributes) Destination

func (MatchAttributesAttributes) DestinationPort

func (MatchAttributesAttributes) InternalRef

func (ma MatchAttributesAttributes) InternalRef() (terra.Reference, error)

func (MatchAttributesAttributes) InternalTokens

func (ma MatchAttributesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MatchAttributesAttributes) InternalWithRef

func (MatchAttributesAttributes) Protocols

func (MatchAttributesAttributes) Source

func (MatchAttributesAttributes) SourcePort

func (MatchAttributesAttributes) TcpFlag

type MatchAttributesState

type MatchAttributesState struct {
	Protocols       []float64              `json:"protocols"`
	Destination     []DestinationState     `json:"destination"`
	DestinationPort []DestinationPortState `json:"destination_port"`
	Source          []SourceState          `json:"source"`
	SourcePort      []SourcePortState      `json:"source_port"`
	TcpFlag         []TcpFlagState         `json:"tcp_flag"`
}

type PortSet

type PortSet struct {
	// Definition: set of string, required
	Definition terra.SetValue[terra.StringValue] `hcl:"definition,attr" validate:"required"`
}

type PortSetAttributes

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

func (PortSetAttributes) Definition

func (PortSetAttributes) InternalRef

func (ps PortSetAttributes) InternalRef() (terra.Reference, error)

func (PortSetAttributes) InternalTokens

func (ps PortSetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PortSetAttributes) InternalWithRef

func (ps PortSetAttributes) InternalWithRef(ref terra.Reference) PortSetAttributes

type PortSetState

type PortSetState struct {
	Definition []string `json:"definition"`
}

type PortSets

type PortSets struct {
	// Key: string, required
	Key terra.StringValue `hcl:"key,attr" validate:"required"`
	// PortSet: required
	PortSet *PortSet `hcl:"port_set,block" validate:"required"`
}

type PortSetsAttributes

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

func (PortSetsAttributes) InternalRef

func (ps PortSetsAttributes) InternalRef() (terra.Reference, error)

func (PortSetsAttributes) InternalTokens

func (ps PortSetsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PortSetsAttributes) InternalWithRef

func (ps PortSetsAttributes) InternalWithRef(ref terra.Reference) PortSetsAttributes

func (PortSetsAttributes) Key

func (PortSetsAttributes) PortSet

type PortSetsState

type PortSetsState struct {
	Key     string         `json:"key"`
	PortSet []PortSetState `json:"port_set"`
}

type PublishMetricAction

type PublishMetricAction struct {
	// Dimension: min=1
	Dimension []Dimension `hcl:"dimension,block" validate:"min=1"`
}

type PublishMetricActionAttributes

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

func (PublishMetricActionAttributes) Dimension

func (PublishMetricActionAttributes) InternalRef

func (pma PublishMetricActionAttributes) InternalRef() (terra.Reference, error)

func (PublishMetricActionAttributes) InternalTokens

func (pma PublishMetricActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PublishMetricActionAttributes) InternalWithRef

type PublishMetricActionState

type PublishMetricActionState struct {
	Dimension []DimensionState `json:"dimension"`
}

type ReferenceSets

type ReferenceSets struct {
	// IpSetReferences: min=0,max=5
	IpSetReferences []IpSetReferences `hcl:"ip_set_references,block" validate:"min=0,max=5"`
}

type ReferenceSetsAttributes

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

func (ReferenceSetsAttributes) InternalRef

func (rs ReferenceSetsAttributes) InternalRef() (terra.Reference, error)

func (ReferenceSetsAttributes) InternalTokens

func (rs ReferenceSetsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ReferenceSetsAttributes) InternalWithRef

func (ReferenceSetsAttributes) IpSetReferences

type ReferenceSetsState

type ReferenceSetsState struct {
	IpSetReferences []IpSetReferencesState `json:"ip_set_references"`
}

type RuleDefinition

type RuleDefinition struct {
	// Actions: set of string, required
	Actions terra.SetValue[terra.StringValue] `hcl:"actions,attr" validate:"required"`
	// MatchAttributes: required
	MatchAttributes *MatchAttributes `hcl:"match_attributes,block" validate:"required"`
}

type RuleDefinitionAttributes

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

func (RuleDefinitionAttributes) Actions

func (RuleDefinitionAttributes) InternalRef

func (rd RuleDefinitionAttributes) InternalRef() (terra.Reference, error)

func (RuleDefinitionAttributes) InternalTokens

func (rd RuleDefinitionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleDefinitionAttributes) InternalWithRef

func (RuleDefinitionAttributes) MatchAttributes

type RuleDefinitionState

type RuleDefinitionState struct {
	Actions         []string               `json:"actions"`
	MatchAttributes []MatchAttributesState `json:"match_attributes"`
}

type RuleGroup

type RuleGroup struct {
	// ReferenceSets: optional
	ReferenceSets *ReferenceSets `hcl:"reference_sets,block"`
	// RuleVariables: optional
	RuleVariables *RuleVariables `hcl:"rule_variables,block"`
	// RulesSource: required
	RulesSource *RulesSource `hcl:"rules_source,block" validate:"required"`
	// StatefulRuleOptions: optional
	StatefulRuleOptions *StatefulRuleOptions `hcl:"stateful_rule_options,block"`
}

type RuleGroupAttributes

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

func (RuleGroupAttributes) InternalRef

func (rg RuleGroupAttributes) InternalRef() (terra.Reference, error)

func (RuleGroupAttributes) InternalTokens

func (rg RuleGroupAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleGroupAttributes) InternalWithRef

func (rg RuleGroupAttributes) InternalWithRef(ref terra.Reference) RuleGroupAttributes

func (RuleGroupAttributes) ReferenceSets

func (RuleGroupAttributes) RuleVariables

func (RuleGroupAttributes) RulesSource

func (RuleGroupAttributes) StatefulRuleOptions

type RuleGroupState

type RuleGroupState struct {
	ReferenceSets       []ReferenceSetsState       `json:"reference_sets"`
	RuleVariables       []RuleVariablesState       `json:"rule_variables"`
	RulesSource         []RulesSourceState         `json:"rules_source"`
	StatefulRuleOptions []StatefulRuleOptionsState `json:"stateful_rule_options"`
}

type RuleOption

type RuleOption struct {
	// Keyword: string, required
	Keyword terra.StringValue `hcl:"keyword,attr" validate:"required"`
	// Settings: set of string, optional
	Settings terra.SetValue[terra.StringValue] `hcl:"settings,attr"`
}

type RuleOptionAttributes

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

func (RuleOptionAttributes) InternalRef

func (ro RuleOptionAttributes) InternalRef() (terra.Reference, error)

func (RuleOptionAttributes) InternalTokens

func (ro RuleOptionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleOptionAttributes) InternalWithRef

func (ro RuleOptionAttributes) InternalWithRef(ref terra.Reference) RuleOptionAttributes

func (RuleOptionAttributes) Keyword

func (ro RuleOptionAttributes) Keyword() terra.StringValue

func (RuleOptionAttributes) Settings

type RuleOptionState

type RuleOptionState struct {
	Keyword  string   `json:"keyword"`
	Settings []string `json:"settings"`
}

type RuleVariables

type RuleVariables struct {
	// IpSets: min=0
	IpSets []IpSets `hcl:"ip_sets,block" validate:"min=0"`
	// PortSets: min=0
	PortSets []PortSets `hcl:"port_sets,block" validate:"min=0"`
}

type RuleVariablesAttributes

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

func (RuleVariablesAttributes) InternalRef

func (rv RuleVariablesAttributes) InternalRef() (terra.Reference, error)

func (RuleVariablesAttributes) InternalTokens

func (rv RuleVariablesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleVariablesAttributes) InternalWithRef

func (RuleVariablesAttributes) IpSets

func (RuleVariablesAttributes) PortSets

type RuleVariablesState

type RuleVariablesState struct {
	IpSets   []IpSetsState   `json:"ip_sets"`
	PortSets []PortSetsState `json:"port_sets"`
}

type RulesSource

type RulesSource struct {
	// RulesString: string, optional
	RulesString terra.StringValue `hcl:"rules_string,attr"`
	// RulesSourceList: optional
	RulesSourceList *RulesSourceList `hcl:"rules_source_list,block"`
	// StatefulRule: min=0
	StatefulRule []StatefulRule `hcl:"stateful_rule,block" validate:"min=0"`
	// StatelessRulesAndCustomActions: optional
	StatelessRulesAndCustomActions *StatelessRulesAndCustomActions `hcl:"stateless_rules_and_custom_actions,block"`
}

type RulesSourceAttributes

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

func (RulesSourceAttributes) InternalRef

func (rs RulesSourceAttributes) InternalRef() (terra.Reference, error)

func (RulesSourceAttributes) InternalTokens

func (rs RulesSourceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RulesSourceAttributes) InternalWithRef

func (RulesSourceAttributes) RulesSourceList

func (RulesSourceAttributes) RulesString

func (rs RulesSourceAttributes) RulesString() terra.StringValue

func (RulesSourceAttributes) StatefulRule

func (RulesSourceAttributes) StatelessRulesAndCustomActions

type RulesSourceList

type RulesSourceList struct {
	// GeneratedRulesType: string, required
	GeneratedRulesType terra.StringValue `hcl:"generated_rules_type,attr" validate:"required"`
	// TargetTypes: set of string, required
	TargetTypes terra.SetValue[terra.StringValue] `hcl:"target_types,attr" validate:"required"`
	// Targets: set of string, required
	Targets terra.SetValue[terra.StringValue] `hcl:"targets,attr" validate:"required"`
}

type RulesSourceListAttributes

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

func (RulesSourceListAttributes) GeneratedRulesType

func (rsl RulesSourceListAttributes) GeneratedRulesType() terra.StringValue

func (RulesSourceListAttributes) InternalRef

func (rsl RulesSourceListAttributes) InternalRef() (terra.Reference, error)

func (RulesSourceListAttributes) InternalTokens

func (rsl RulesSourceListAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RulesSourceListAttributes) InternalWithRef

func (RulesSourceListAttributes) TargetTypes

func (RulesSourceListAttributes) Targets

type RulesSourceListState

type RulesSourceListState struct {
	GeneratedRulesType string   `json:"generated_rules_type"`
	TargetTypes        []string `json:"target_types"`
	Targets            []string `json:"targets"`
}

type RulesSourceState

type RulesSourceState struct {
	RulesString                    string                                `json:"rules_string"`
	RulesSourceList                []RulesSourceListState                `json:"rules_source_list"`
	StatefulRule                   []StatefulRuleState                   `json:"stateful_rule"`
	StatelessRulesAndCustomActions []StatelessRulesAndCustomActionsState `json:"stateless_rules_and_custom_actions"`
}

type Source

type Source struct {
	// AddressDefinition: string, required
	AddressDefinition terra.StringValue `hcl:"address_definition,attr" validate:"required"`
}

type SourceAttributes

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

func (SourceAttributes) AddressDefinition

func (s SourceAttributes) AddressDefinition() terra.StringValue

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

type SourcePort

type SourcePort struct {
	// FromPort: number, required
	FromPort terra.NumberValue `hcl:"from_port,attr" validate:"required"`
	// ToPort: number, optional
	ToPort terra.NumberValue `hcl:"to_port,attr"`
}

type SourcePortAttributes

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

func (SourcePortAttributes) FromPort

func (sp SourcePortAttributes) FromPort() terra.NumberValue

func (SourcePortAttributes) InternalRef

func (sp SourcePortAttributes) InternalRef() (terra.Reference, error)

func (SourcePortAttributes) InternalTokens

func (sp SourcePortAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SourcePortAttributes) InternalWithRef

func (sp SourcePortAttributes) InternalWithRef(ref terra.Reference) SourcePortAttributes

func (SourcePortAttributes) ToPort

type SourcePortState

type SourcePortState struct {
	FromPort float64 `json:"from_port"`
	ToPort   float64 `json:"to_port"`
}

type SourceState

type SourceState struct {
	AddressDefinition string `json:"address_definition"`
}

type StatefulRule

type StatefulRule struct {
	// Action: string, required
	Action terra.StringValue `hcl:"action,attr" validate:"required"`
	// Header: required
	Header *Header `hcl:"header,block" validate:"required"`
	// RuleOption: min=1
	RuleOption []RuleOption `hcl:"rule_option,block" validate:"min=1"`
}

type StatefulRuleAttributes

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

func (StatefulRuleAttributes) Action

func (StatefulRuleAttributes) Header

func (StatefulRuleAttributes) InternalRef

func (sr StatefulRuleAttributes) InternalRef() (terra.Reference, error)

func (StatefulRuleAttributes) InternalTokens

func (sr StatefulRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StatefulRuleAttributes) InternalWithRef

func (StatefulRuleAttributes) RuleOption

type StatefulRuleOptions

type StatefulRuleOptions struct {
	// RuleOrder: string, required
	RuleOrder terra.StringValue `hcl:"rule_order,attr" validate:"required"`
}

type StatefulRuleOptionsAttributes

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

func (StatefulRuleOptionsAttributes) InternalRef

func (sro StatefulRuleOptionsAttributes) InternalRef() (terra.Reference, error)

func (StatefulRuleOptionsAttributes) InternalTokens

func (sro StatefulRuleOptionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StatefulRuleOptionsAttributes) InternalWithRef

func (StatefulRuleOptionsAttributes) RuleOrder

type StatefulRuleOptionsState

type StatefulRuleOptionsState struct {
	RuleOrder string `json:"rule_order"`
}

type StatefulRuleState

type StatefulRuleState struct {
	Action     string            `json:"action"`
	Header     []HeaderState     `json:"header"`
	RuleOption []RuleOptionState `json:"rule_option"`
}

type StatelessRule

type StatelessRule struct {
	// Priority: number, required
	Priority terra.NumberValue `hcl:"priority,attr" validate:"required"`
	// RuleDefinition: required
	RuleDefinition *RuleDefinition `hcl:"rule_definition,block" validate:"required"`
}

type StatelessRuleAttributes

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

func (StatelessRuleAttributes) InternalRef

func (sr StatelessRuleAttributes) InternalRef() (terra.Reference, error)

func (StatelessRuleAttributes) InternalTokens

func (sr StatelessRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StatelessRuleAttributes) InternalWithRef

func (StatelessRuleAttributes) Priority

func (StatelessRuleAttributes) RuleDefinition

type StatelessRuleState

type StatelessRuleState struct {
	Priority       float64               `json:"priority"`
	RuleDefinition []RuleDefinitionState `json:"rule_definition"`
}

type StatelessRulesAndCustomActions

type StatelessRulesAndCustomActions struct {
	// CustomAction: min=0
	CustomAction []CustomAction `hcl:"custom_action,block" validate:"min=0"`
	// StatelessRule: min=1
	StatelessRule []StatelessRule `hcl:"stateless_rule,block" validate:"min=1"`
}

type StatelessRulesAndCustomActionsAttributes

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

func (StatelessRulesAndCustomActionsAttributes) CustomAction

func (StatelessRulesAndCustomActionsAttributes) InternalRef

func (StatelessRulesAndCustomActionsAttributes) InternalTokens

func (StatelessRulesAndCustomActionsAttributes) InternalWithRef

func (StatelessRulesAndCustomActionsAttributes) StatelessRule

type StatelessRulesAndCustomActionsState

type StatelessRulesAndCustomActionsState struct {
	CustomAction  []CustomActionState  `json:"custom_action"`
	StatelessRule []StatelessRuleState `json:"stateless_rule"`
}

type TcpFlag

type TcpFlag struct {
	// Flags: set of string, required
	Flags terra.SetValue[terra.StringValue] `hcl:"flags,attr" validate:"required"`
	// Masks: set of string, optional
	Masks terra.SetValue[terra.StringValue] `hcl:"masks,attr"`
}

type TcpFlagAttributes

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

func (TcpFlagAttributes) Flags

func (TcpFlagAttributes) InternalRef

func (tf TcpFlagAttributes) InternalRef() (terra.Reference, error)

func (TcpFlagAttributes) InternalTokens

func (tf TcpFlagAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TcpFlagAttributes) InternalWithRef

func (tf TcpFlagAttributes) InternalWithRef(ref terra.Reference) TcpFlagAttributes

func (TcpFlagAttributes) Masks

type TcpFlagState

type TcpFlagState struct {
	Flags []string `json:"flags"`
	Masks []string `json:"masks"`
}

Jump to

Keyboard shortcuts

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