controlPolicyGroupMappings

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanTargetIdentifier

func CleanTargetIdentifier(s string) string

func UpdateStateAfterRead

func UpdateStateAfterRead(apiEntities []*sdkControlPolicyGroup.ControlPolicyGroupMapping, state *ResourceModel)

Types

type MergedEntities

type MergedEntities struct {
	EntitiesToCreate []*controlPolicyGroup.ControlPolicyGroupMapping
	EntitiesToUpdate []*controlPolicyGroup.ControlPolicyGroupMapping
	EntitiesToDelete []*controlPolicyGroup.ControlPolicyGroupMapping
}

func Merge

func Merge(plan *ResourceModel, state *ResourceModel, converterType commons.ConverterType) *MergedEntities

type OverrideEnforcementModel

type OverrideEnforcementModel struct {
	ControlPolicyId  types.String `tfsdk:"control_policy_id"`
	EnforcementLevel types.String `tfsdk:"enforcement_level"`
	StackIds         types.List   `tfsdk:"stack_ids"`
}

func (*OverrideEnforcementModel) Hash

func (e *OverrideEnforcementModel) Hash() string

type ResourceModel

type ResourceModel struct {
	ID                   types.String   `tfsdk:"id"`
	ControlPolicyGroupId types.String   `tfsdk:"control_policy_group_id"`
	Targets              []*TargetModel `tfsdk:"targets"`
}

type TargetModel

type TargetModel struct {
	TargetId             types.String                `tfsdk:"target_id"`
	TargetType           types.String                `tfsdk:"target_type"`
	EnforcementLevel     types.String                `tfsdk:"enforcement_level"`
	OverrideEnforcements []*OverrideEnforcementModel `tfsdk:"override_enforcements"`
}

func (*TargetModel) GetBlockIdentifier

func (e *TargetModel) GetBlockIdentifier() string

func (*TargetModel) Hash

func (e *TargetModel) Hash() string

Jump to

Keyboard shortcuts

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