custom_rule_group

package
v0.110.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 31 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

func OnlyAllowedIfBoolEquals

func OnlyAllowedIfBoolEquals(target path.Expression, value bool) validator.String

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 OnlyAllowedIfBoolEqualsValidator

type OnlyAllowedIfBoolEqualsValidator struct {
	Target path.Expression
	Value  bool
}

OnlyAllowedIfBoolEqualsValidator prevents that this string attribute is set if a target bool does not equal the specified value.

func (OnlyAllowedIfBoolEqualsValidator) Description

func (OnlyAllowedIfBoolEqualsValidator) MarkdownDescription

func (v OnlyAllowedIfBoolEqualsValidator) MarkdownDescription(ctx context.Context) string

func (OnlyAllowedIfBoolEqualsValidator) ValidateString

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