Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanIdentifier ¶
func UpdateStateAfterRead ¶
func UpdateStateAfterRead(apiEntities []*sdkControlPolicy.ControlPolicyMapping, state *ResourceModel)
Types ¶
type MergedEntities ¶
type MergedEntities struct { EntitiesToCreate []*controlPolicy.ControlPolicyMapping EntitiesToUpdate []*controlPolicy.ControlPolicyMapping EntitiesToDelete []*controlPolicy.ControlPolicyMapping }
func Merge ¶
func Merge(plan *ResourceModel, state *ResourceModel, converterType commons.ConverterType) *MergedEntities
type ResourceModel ¶
type ResourceModel struct { ID types.String `tfsdk:"id"` ControlPolicyId types.String `tfsdk:"control_policy_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"` }
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.