Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanTargetIdentifier ¶
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
Click to show internal directories.
Click to hide internal directories.