custom_rule_group

package
v0.114.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCustomRuleGroupDataSource

func NewCustomRuleGroupDataSource() datasource.DataSource

func NewCustomRuleGroupResource

func NewCustomRuleGroupResource() resource.Resource

Types

type BehaviorModel

type BehaviorModel struct {
	Action   types.String `tfsdk:"action"`
	Log      types.Bool   `tfsdk:"log"`
	LogMsg   types.String `tfsdk:"log_msg"`
	Severity types.String `tfsdk:"severity"`
}

type ConditionModel

type ConditionModel struct {
	Operator        types.Object `tfsdk:"operator"`
	Transformations types.List   `tfsdk:"transformations"`
	Variable        types.Object `tfsdk:"variable"`
}

type Model

type Model struct {
	Id        types.String `tfsdk:"id"` // needed by TF
	ProjectId types.String `tfsdk:"project_id"`
	Region    types.String `tfsdk:"region"`
	Name      types.String `tfsdk:"name"`
	Rules     types.List   `tfsdk:"rules"`
}

type OperatorModel

type OperatorModel struct {
	Type  types.String `tfsdk:"type"`
	Value types.String `tfsdk:"value"`
}

type RuleModel

type RuleModel struct {
	Behavior    types.Object `tfsdk:"behavior"`
	Conditions  types.List   `tfsdk:"conditions"`
	Description types.String `tfsdk:"description"`
	Id          types.Int32  `tfsdk:"id"`
}

type VariableModel

type VariableModel struct {
	Type  types.String `tfsdk:"type"`
	Value types.String `tfsdk:"value"`
}

Jump to

Keyboard shortcuts

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