networkfirewallrule

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NetworkFirewallRuleResourceSchema

func NetworkFirewallRuleResourceSchema(ctx context.Context) schema.Schema

func NewResource

func NewResource() resource.Resource

func RenderNetworkFirewallRuleConfig

func RenderNetworkFirewallRuleConfig(t *testing.T, overrides map[string]string) (string, error)

Types

type DestinationsType

type DestinationsType struct {
	basetypes.ObjectType
}

func (DestinationsType) Equal

func (t DestinationsType) Equal(o attr.Type) bool

func (DestinationsType) String

func (t DestinationsType) String() string

func (DestinationsType) ValueFromObject

func (DestinationsType) ValueFromTerraform

func (t DestinationsType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (DestinationsType) ValueType

func (t DestinationsType) ValueType(ctx context.Context) attr.Value

type DestinationsValue

type DestinationsValue struct {
	Id basetypes.SetValue `tfsdk:"id"`
	// contains filtered or unexported fields
}

func NewDestinationsValue

func NewDestinationsValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (DestinationsValue, diag.Diagnostics)

func NewDestinationsValueMust

func NewDestinationsValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) DestinationsValue

func NewDestinationsValueNull

func NewDestinationsValueNull() DestinationsValue

func NewDestinationsValueUnknown

func NewDestinationsValueUnknown() DestinationsValue

func (DestinationsValue) AttributeTypes

func (v DestinationsValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (DestinationsValue) Equal

func (v DestinationsValue) Equal(o attr.Value) bool

func (DestinationsValue) IsNull

func (v DestinationsValue) IsNull() bool

func (DestinationsValue) IsUnknown

func (v DestinationsValue) IsUnknown() bool

func (DestinationsValue) String

func (v DestinationsValue) String() string

func (DestinationsValue) ToObjectValue

func (DestinationsValue) ToTerraformValue

func (v DestinationsValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (DestinationsValue) Type

type NetworkFirewallRuleModel

type NetworkFirewallRuleModel struct {
	Application          types.Set         `tfsdk:"application"`
	Description          types.String      `tfsdk:"description"`
	Destinations         DestinationsValue `tfsdk:"destinations"`
	Direction            types.String      `tfsdk:"direction"`
	Enabled              types.Bool        `tfsdk:"enabled"`
	Id                   types.Int64       `tfsdk:"id"`
	Name                 types.String      `tfsdk:"name"`
	NetworkIntegrationId types.Int64       `tfsdk:"network_integration_id"`
	Policy               types.String      `tfsdk:"policy"`
	Priority             types.Int64       `tfsdk:"priority"`
	Profile              types.Set         `tfsdk:"profile"`
	RuleGroupId          RuleGroupIdValue  `tfsdk:"rule_group_id"`
	Scopes               ScopesValue       `tfsdk:"scopes"`
	Sources              SourcesValue      `tfsdk:"sources"`
}

type Resource

Resource defines the resource implementation.

func (*Resource) Create

func (r *Resource) Create(
	ctx context.Context,
	req resource.CreateRequest,
	resp *resource.CreateResponse,
)

func (*Resource) Delete

func (r *Resource) Delete(
	ctx context.Context,
	req resource.DeleteRequest,
	resp *resource.DeleteResponse,
)

func (*Resource) ImportState

func (r *Resource) ImportState(
	ctx context.Context,
	req resource.ImportStateRequest,
	resp *resource.ImportStateResponse,
)

func (*Resource) Metadata

func (*Resource) Read

func (r *Resource) Read(
	ctx context.Context,
	req resource.ReadRequest,
	resp *resource.ReadResponse,
)

func (*Resource) Schema

func (*Resource) Update

func (r *Resource) Update(
	ctx context.Context,
	req resource.UpdateRequest,
	resp *resource.UpdateResponse,
)

type RuleGroupIdType

type RuleGroupIdType struct {
	basetypes.ObjectType
}

func (RuleGroupIdType) Equal

func (t RuleGroupIdType) Equal(o attr.Type) bool

func (RuleGroupIdType) String

func (t RuleGroupIdType) String() string

func (RuleGroupIdType) ValueFromObject

func (RuleGroupIdType) ValueFromTerraform

func (t RuleGroupIdType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (RuleGroupIdType) ValueType

func (t RuleGroupIdType) ValueType(ctx context.Context) attr.Value

type RuleGroupIdValue

type RuleGroupIdValue struct {
	Id   basetypes.Int64Value  `tfsdk:"id"`
	Name basetypes.StringValue `tfsdk:"name"`
	// contains filtered or unexported fields
}

func NewRuleGroupIdValue

func NewRuleGroupIdValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (RuleGroupIdValue, diag.Diagnostics)

func NewRuleGroupIdValueMust

func NewRuleGroupIdValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) RuleGroupIdValue

func NewRuleGroupIdValueNull

func NewRuleGroupIdValueNull() RuleGroupIdValue

func NewRuleGroupIdValueUnknown

func NewRuleGroupIdValueUnknown() RuleGroupIdValue

func (RuleGroupIdValue) AttributeTypes

func (v RuleGroupIdValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (RuleGroupIdValue) Equal

func (v RuleGroupIdValue) Equal(o attr.Value) bool

func (RuleGroupIdValue) IsNull

func (v RuleGroupIdValue) IsNull() bool

func (RuleGroupIdValue) IsUnknown

func (v RuleGroupIdValue) IsUnknown() bool

func (RuleGroupIdValue) String

func (v RuleGroupIdValue) String() string

func (RuleGroupIdValue) ToObjectValue

func (RuleGroupIdValue) ToTerraformValue

func (v RuleGroupIdValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (RuleGroupIdValue) Type

type ScopesType

type ScopesType struct {
	basetypes.ObjectType
}

func (ScopesType) Equal

func (t ScopesType) Equal(o attr.Type) bool

func (ScopesType) String

func (t ScopesType) String() string

func (ScopesType) ValueFromObject

func (ScopesType) ValueFromTerraform

func (t ScopesType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (ScopesType) ValueType

func (t ScopesType) ValueType(ctx context.Context) attr.Value

type ScopesValue

type ScopesValue struct {
	Id basetypes.SetValue `tfsdk:"id"`
	// contains filtered or unexported fields
}

func NewScopesValue

func NewScopesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (ScopesValue, diag.Diagnostics)

func NewScopesValueMust

func NewScopesValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) ScopesValue

func NewScopesValueNull

func NewScopesValueNull() ScopesValue

func NewScopesValueUnknown

func NewScopesValueUnknown() ScopesValue

func (ScopesValue) AttributeTypes

func (v ScopesValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (ScopesValue) Equal

func (v ScopesValue) Equal(o attr.Value) bool

func (ScopesValue) IsNull

func (v ScopesValue) IsNull() bool

func (ScopesValue) IsUnknown

func (v ScopesValue) IsUnknown() bool

func (ScopesValue) String

func (v ScopesValue) String() string

func (ScopesValue) ToObjectValue

func (ScopesValue) ToTerraformValue

func (v ScopesValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (ScopesValue) Type

func (v ScopesValue) Type(ctx context.Context) attr.Type

type SourcesType

type SourcesType struct {
	basetypes.ObjectType
}

func (SourcesType) Equal

func (t SourcesType) Equal(o attr.Type) bool

func (SourcesType) String

func (t SourcesType) String() string

func (SourcesType) ValueFromObject

func (SourcesType) ValueFromTerraform

func (t SourcesType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (SourcesType) ValueType

func (t SourcesType) ValueType(ctx context.Context) attr.Value

type SourcesValue

type SourcesValue struct {
	Id basetypes.SetValue `tfsdk:"id"`
	// contains filtered or unexported fields
}

func NewSourcesValue

func NewSourcesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (SourcesValue, diag.Diagnostics)

func NewSourcesValueMust

func NewSourcesValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) SourcesValue

func NewSourcesValueNull

func NewSourcesValueNull() SourcesValue

func NewSourcesValueUnknown

func NewSourcesValueUnknown() SourcesValue

func (SourcesValue) AttributeTypes

func (v SourcesValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (SourcesValue) Equal

func (v SourcesValue) Equal(o attr.Value) bool

func (SourcesValue) IsNull

func (v SourcesValue) IsNull() bool

func (SourcesValue) IsUnknown

func (v SourcesValue) IsUnknown() bool

func (SourcesValue) String

func (v SourcesValue) String() string

func (SourcesValue) ToObjectValue

func (SourcesValue) ToTerraformValue

func (v SourcesValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (SourcesValue) Type

func (v SourcesValue) Type(ctx context.Context) attr.Type

Jump to

Keyboard shortcuts

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