event

package
v0.0.0-...-b648cea Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const CompliantResult string = "Compliant"
View Source
const ConfigEndpoint string = "https://rms.myhuaweicloud.com"
View Source
const NonCompliantResult string = "NonCompliant"

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigComplianceStatuesReportRequest

type ConfigComplianceStatuesReportRequest struct {
	PolicyResource       ConfigPolicyResource `json:"policy_resource"`
	TriggerType          *string              `json:"trigger_type"`
	ComplianceState      string               `json:"compliance_state"`
	PolicyAssignmentId   *string              `json:"policy_assignment_id"`
	PolicyAssignmentName *string              `json:"policy_assignment_name"`
	FunctionURN          *string              `json:"function_urn"`
	EvaluationTime       string               `json:"evaluation_time"`
	EvalutationHash      *string              `json:"evaluation_hash"`
}

func (*ConfigComplianceStatuesReportRequest) UpdatePolicyState

func (c *ConfigComplianceStatuesReportRequest) UpdatePolicyState(token string) error

type ConfigEvent

type ConfigEvent struct {
	DomainId       *string                      `json:"domain_id"`
	AssignmentId   *string                      `json:"policy_assignment_id"`
	AssignmentName *string                      `json:"policy_assignment_name"`
	FunctionURN    *string                      `json:"function_urn"`
	TriggerType    *string                      `json:"trigger_type"`
	EvaluationTime int64                        `json:"evaluation_time"`
	EvaluationHash *string                      `json:"evaluation_hash"`
	RuleParameter  map[string]map[string]string `json:"rule_parameter"`
	InvokingEvent  ConfigInvokingEvent          `json:"invoking_event"`
}

Doc: https://support.huaweicloud.com/intl/en-us/usermanual-rms/rms_05_0506.html

type ConfigInvokingEvent

type ConfigInvokingEvent struct {
	Id                *string           `json:"id"`
	Name              *string           `json:"name"`
	Provider          *string           `json:"provider"`
	Type              *string           `json:"type"`
	Tags              map[string]string `json:"tags"`
	CreateTime        time.Time         `json:"created"`
	UpdateTime        time.Time         `json:"updated"`
	Properties        interface{}       `json:"properties"`
	EP_Id             *string           `json:"ep_id"`
	ProjectId         *string           `json:"project_id"`
	RegionId          *string           `json:"region_id"`
	ProvisioningState *string           `json:"provisioning_state"`
}

type ConfigPolicyResource

type ConfigPolicyResource struct {
	DomainId         *string `json:"domain_id"`
	RegionId         *string `json:"region_id"`
	ResourceId       *string `json:"resource_id"`
	ResourceName     *string `json:"resource_name"`
	ResourceProvider *string `json:"resource_provider"`
	ResourceType     *string `json:"resource_type"`
}

Jump to

Keyboard shortcuts

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