control_policy_group

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlPolicy added in v1.9.0

type ControlPolicy struct {
	ControlPolicyId *string `json:"controlPolicyId,omitempty"` // read-only
	Severity        *string `json:"severity,omitempty"`        //commons.SeverityTypes
	// contains filtered or unexported fields
}

func (ControlPolicy) MarshalJSON added in v1.9.0

func (o ControlPolicy) MarshalJSON() ([]byte, error)

func (*ControlPolicy) SetControlPolicyId added in v1.9.0

func (o *ControlPolicy) SetControlPolicyId(v *string) *ControlPolicy

func (*ControlPolicy) SetSeverity added in v1.9.0

func (o *ControlPolicy) SetSeverity(v *string) *ControlPolicy

type ControlPolicyGroup added in v1.9.0

type ControlPolicyGroup struct {
	ID              *string          `json:"id,omitempty"` // read-only
	Name            *string          `json:"name,omitempty"`
	Description     *string          `json:"description,omitempty"`
	ControlPolicies []*ControlPolicy `json:"controlPolicies,omitempty"`
	// contains filtered or unexported fields
}

func (ControlPolicyGroup) MarshalJSON added in v1.9.0

func (o ControlPolicyGroup) MarshalJSON() ([]byte, error)

func (*ControlPolicyGroup) SetControlPolicies added in v1.9.0

func (o *ControlPolicyGroup) SetControlPolicies(v []*ControlPolicy) *ControlPolicyGroup

func (*ControlPolicyGroup) SetDescription added in v1.9.0

func (o *ControlPolicyGroup) SetDescription(v *string) *ControlPolicyGroup

func (*ControlPolicyGroup) SetID added in v1.9.0

func (*ControlPolicyGroup) SetName added in v1.9.0

type ControlPolicyGroupMapping

type ControlPolicyGroupMapping struct {
	ControlPolicyGroupId *string                `json:"controlPolicyGroupId,omitempty"`
	TargetId             *string                `json:"targetId,omitempty"`
	TargetType           *string                `json:"targetType,omitempty"`       //commons.PolicyMappingTargetTypes
	EnforcementLevel     *string                `json:"enforcementLevel,omitempty"` //commons.GroupEnforcementLevelTypes
	OverrideEnforcements []*OverrideEnforcement `json:"overrideEnforcements,omitempty"`
	// contains filtered or unexported fields
}

func (ControlPolicyGroupMapping) MarshalJSON

func (o ControlPolicyGroupMapping) MarshalJSON() ([]byte, error)

func (*ControlPolicyGroupMapping) SetControlPolicyGroupId

func (o *ControlPolicyGroupMapping) SetControlPolicyGroupId(v *string) *ControlPolicyGroupMapping

func (*ControlPolicyGroupMapping) SetEnforcementLevel

func (o *ControlPolicyGroupMapping) SetEnforcementLevel(v *string) *ControlPolicyGroupMapping

func (*ControlPolicyGroupMapping) SetOverrideEnforcements

func (*ControlPolicyGroupMapping) SetTargetId

func (*ControlPolicyGroupMapping) SetTargetType

type OverrideEnforcement

type OverrideEnforcement struct {
	ControlPolicyId  *string   `json:"controlPolicyId,omitempty"`
	EnforcementLevel *string   `json:"enforcementLevel,omitempty"`
	StackIds         []*string `json:"stackIds,omitempty"` //commons.EnforcementLevelTypes
	// contains filtered or unexported fields
}

func (OverrideEnforcement) MarshalJSON

func (o OverrideEnforcement) MarshalJSON() ([]byte, error)

func (*OverrideEnforcement) SetControlPolicyId

func (o *OverrideEnforcement) SetControlPolicyId(v *string) *OverrideEnforcement

func (*OverrideEnforcement) SetEnforcementLevel

func (o *OverrideEnforcement) SetEnforcementLevel(v *string) *OverrideEnforcement

func (*OverrideEnforcement) SetStackIds

func (o *OverrideEnforcement) SetStackIds(v []*string) *OverrideEnforcement

type Service

type Service interface {
	CreateControlPolicyGroup(context.Context, *ControlPolicyGroup) (*ControlPolicyGroup, error)
	ListControlPolicyGroups(context.Context, *string, *string, *bool) ([]*ControlPolicyGroup, error)
	ReadControlPolicyGroup(context.Context, string) (*ControlPolicyGroup, error)
	UpdateControlPolicyGroup(context.Context, string, *ControlPolicyGroup) (*ControlPolicyGroup, error)
	DeleteControlPolicyGroup(context.Context, string) (*commons.EmptyResponse, error)

	CreateControlPolicyGroupMapping(context.Context, *ControlPolicyGroupMapping) (*ControlPolicyGroupMapping, error)
	ListControlPolicyGroupMappings(context.Context, string) ([]*ControlPolicyGroupMapping, error)
	UpdateControlPolicyGroupMapping(context.Context, *ControlPolicyGroupMapping) (*ControlPolicyGroupMapping, error)
	DeleteControlPolicyGroupMapping(context.Context, *ControlPolicyGroupMapping) (*commons.EmptyResponse, error)
}

Service provides the API operation methods for making requests to endpoints of the ControlMonkey API. See this package's package overview docs for details on the service.

func New

func New(sess *session.Session, cfgs ...*controlmonkey.Config) Service

type ServiceOp

type ServiceOp struct {
	Client *client.Client
}

func (*ServiceOp) CreateControlPolicyGroup added in v1.9.0

func (s *ServiceOp) CreateControlPolicyGroup(ctx context.Context, input *ControlPolicyGroup) (*ControlPolicyGroup, error)

func (*ServiceOp) CreateControlPolicyGroupMapping

func (s *ServiceOp) CreateControlPolicyGroupMapping(ctx context.Context, input *ControlPolicyGroupMapping) (*ControlPolicyGroupMapping, error)

func (*ServiceOp) DeleteControlPolicyGroup added in v1.9.0

func (s *ServiceOp) DeleteControlPolicyGroup(ctx context.Context, id string) (*commons.EmptyResponse, error)

func (*ServiceOp) DeleteControlPolicyGroupMapping

func (s *ServiceOp) DeleteControlPolicyGroupMapping(ctx context.Context, input *ControlPolicyGroupMapping) (*commons.EmptyResponse, error)

func (*ServiceOp) ListControlPolicyGroupMappings

func (s *ServiceOp) ListControlPolicyGroupMappings(ctx context.Context, controlPolicyGroupId string) ([]*ControlPolicyGroupMapping, error)

func (*ServiceOp) ListControlPolicyGroups added in v1.10.0

func (s *ServiceOp) ListControlPolicyGroups(ctx context.Context, controlPolicyGroupId *string, controlPolicyGroupName *string, includeManaged *bool) ([]*ControlPolicyGroup, error)

func (*ServiceOp) ReadControlPolicyGroup added in v1.9.0

func (s *ServiceOp) ReadControlPolicyGroup(ctx context.Context, controlPolicyGroupId string) (*ControlPolicyGroup, error)

func (*ServiceOp) UpdateControlPolicyGroup added in v1.9.0

func (s *ServiceOp) UpdateControlPolicyGroup(ctx context.Context, id string, input *ControlPolicyGroup) (*ControlPolicyGroup, error)

func (*ServiceOp) UpdateControlPolicyGroupMapping

func (s *ServiceOp) UpdateControlPolicyGroupMapping(ctx context.Context, input *ControlPolicyGroupMapping) (*ControlPolicyGroupMapping, error)

Jump to

Keyboard shortcuts

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