Documentation ¶
Index ¶
- Constants
- type AttributeKeyDetail
- type AuditSummary
- type Client
- func (c *Client) CreateAudit(request *CreateAuditRequest) (response *CreateAuditResponse, err error)
- func (c *Client) CreateAuditTrack(request *CreateAuditTrackRequest) (response *CreateAuditTrackResponse, err error)
- func (c *Client) CreateAuditTrackWithContext(ctx context.Context, request *CreateAuditTrackRequest) (response *CreateAuditTrackResponse, err error)
- func (c *Client) CreateAuditWithContext(ctx context.Context, request *CreateAuditRequest) (response *CreateAuditResponse, err error)
- func (c *Client) DeleteAudit(request *DeleteAuditRequest) (response *DeleteAuditResponse, err error)
- func (c *Client) DeleteAuditTrack(request *DeleteAuditTrackRequest) (response *DeleteAuditTrackResponse, err error)
- func (c *Client) DeleteAuditTrackWithContext(ctx context.Context, request *DeleteAuditTrackRequest) (response *DeleteAuditTrackResponse, err error)
- func (c *Client) DeleteAuditWithContext(ctx context.Context, request *DeleteAuditRequest) (response *DeleteAuditResponse, err error)
- func (c *Client) DescribeAudit(request *DescribeAuditRequest) (response *DescribeAuditResponse, err error)
- func (c *Client) DescribeAuditTrack(request *DescribeAuditTrackRequest) (response *DescribeAuditTrackResponse, err error)
- func (c *Client) DescribeAuditTrackWithContext(ctx context.Context, request *DescribeAuditTrackRequest) (response *DescribeAuditTrackResponse, err error)
- func (c *Client) DescribeAuditTracks(request *DescribeAuditTracksRequest) (response *DescribeAuditTracksResponse, err error)
- func (c *Client) DescribeAuditTracksWithContext(ctx context.Context, request *DescribeAuditTracksRequest) (response *DescribeAuditTracksResponse, err error)
- func (c *Client) DescribeAuditWithContext(ctx context.Context, request *DescribeAuditRequest) (response *DescribeAuditResponse, err error)
- func (c *Client) DescribeEvents(request *DescribeEventsRequest) (response *DescribeEventsResponse, err error)
- func (c *Client) DescribeEventsWithContext(ctx context.Context, request *DescribeEventsRequest) (response *DescribeEventsResponse, err error)
- func (c *Client) GetAttributeKey(request *GetAttributeKeyRequest) (response *GetAttributeKeyResponse, err error)
- func (c *Client) GetAttributeKeyWithContext(ctx context.Context, request *GetAttributeKeyRequest) (response *GetAttributeKeyResponse, err error)
- func (c *Client) InquireAuditCredit(request *InquireAuditCreditRequest) (response *InquireAuditCreditResponse, err error)
- func (c *Client) InquireAuditCreditWithContext(ctx context.Context, request *InquireAuditCreditRequest) (response *InquireAuditCreditResponse, err error)
- func (c *Client) ListAudits(request *ListAuditsRequest) (response *ListAuditsResponse, err error)
- func (c *Client) ListAuditsWithContext(ctx context.Context, request *ListAuditsRequest) (response *ListAuditsResponse, err error)
- func (c *Client) ListCmqEnableRegion(request *ListCmqEnableRegionRequest) (response *ListCmqEnableRegionResponse, err error)
- func (c *Client) ListCmqEnableRegionWithContext(ctx context.Context, request *ListCmqEnableRegionRequest) (response *ListCmqEnableRegionResponse, err error)
- func (c *Client) ListCosEnableRegion(request *ListCosEnableRegionRequest) (response *ListCosEnableRegionResponse, err error)
- func (c *Client) ListCosEnableRegionWithContext(ctx context.Context, request *ListCosEnableRegionRequest) (response *ListCosEnableRegionResponse, err error)
- func (c *Client) LookUpEvents(request *LookUpEventsRequest) (response *LookUpEventsResponse, err error)
- func (c *Client) LookUpEventsWithContext(ctx context.Context, request *LookUpEventsRequest) (response *LookUpEventsResponse, err error)
- func (c *Client) ModifyAuditTrack(request *ModifyAuditTrackRequest) (response *ModifyAuditTrackResponse, err error)
- func (c *Client) ModifyAuditTrackWithContext(ctx context.Context, request *ModifyAuditTrackRequest) (response *ModifyAuditTrackResponse, err error)
- func (c *Client) StartLogging(request *StartLoggingRequest) (response *StartLoggingResponse, err error)
- func (c *Client) StartLoggingWithContext(ctx context.Context, request *StartLoggingRequest) (response *StartLoggingResponse, err error)
- func (c *Client) StopLogging(request *StopLoggingRequest) (response *StopLoggingResponse, err error)
- func (c *Client) StopLoggingWithContext(ctx context.Context, request *StopLoggingRequest) (response *StopLoggingResponse, err error)
- func (c *Client) UpdateAudit(request *UpdateAuditRequest) (response *UpdateAuditResponse, err error)
- func (c *Client) UpdateAuditWithContext(ctx context.Context, request *UpdateAuditRequest) (response *UpdateAuditResponse, err error)
- type CmqRegionInfo
- type CosRegionInfo
- type CreateAuditRequest
- type CreateAuditRequestParams
- type CreateAuditResponse
- type CreateAuditResponseParams
- type CreateAuditTrackRequest
- type CreateAuditTrackRequestParams
- type CreateAuditTrackResponse
- type CreateAuditTrackResponseParams
- type DeleteAuditRequest
- type DeleteAuditRequestParams
- type DeleteAuditResponse
- type DeleteAuditResponseParams
- type DeleteAuditTrackRequest
- type DeleteAuditTrackRequestParams
- type DeleteAuditTrackResponse
- type DeleteAuditTrackResponseParams
- type DescribeAuditRequest
- type DescribeAuditRequestParams
- type DescribeAuditResponse
- type DescribeAuditResponseParams
- type DescribeAuditTrackRequest
- type DescribeAuditTrackRequestParams
- type DescribeAuditTrackResponse
- type DescribeAuditTrackResponseParams
- type DescribeAuditTracksRequest
- type DescribeAuditTracksRequestParams
- type DescribeAuditTracksResponse
- type DescribeAuditTracksResponseParams
- type DescribeEventsRequest
- type DescribeEventsRequestParams
- type DescribeEventsResponse
- type DescribeEventsResponseParams
- type Event
- type GetAttributeKeyRequest
- type GetAttributeKeyRequestParams
- type GetAttributeKeyResponse
- type GetAttributeKeyResponseParams
- type InquireAuditCreditRequest
- type InquireAuditCreditRequestParams
- type InquireAuditCreditResponse
- type InquireAuditCreditResponseParams
- type ListAuditsRequest
- type ListAuditsRequestParams
- type ListAuditsResponse
- type ListAuditsResponseParams
- type ListCmqEnableRegionRequest
- type ListCmqEnableRegionRequestParams
- type ListCmqEnableRegionResponse
- type ListCmqEnableRegionResponseParams
- type ListCosEnableRegionRequest
- type ListCosEnableRegionRequestParams
- type ListCosEnableRegionResponse
- type ListCosEnableRegionResponseParams
- type LookUpEventsRequest
- type LookUpEventsRequestParams
- type LookUpEventsResponse
- type LookUpEventsResponseParams
- type LookupAttribute
- type ModifyAuditTrackRequest
- type ModifyAuditTrackRequestParams
- type ModifyAuditTrackResponse
- type ModifyAuditTrackResponseParams
- type Resource
- type StartLoggingRequest
- type StartLoggingRequestParams
- type StartLoggingResponse
- type StartLoggingResponseParams
- type StopLoggingRequest
- type StopLoggingRequestParams
- type StopLoggingResponse
- type StopLoggingResponseParams
- type Storage
- type Tracks
- type UpdateAuditRequest
- type UpdateAuditRequestParams
- type UpdateAuditResponse
- type UpdateAuditResponseParams
Constants ¶
const ( // Operation failed. FAILEDOPERATION = "FailedOperation" // Failed to check whether the CLS log topic exists FAILEDOPERATION_CHECKCLSTOPICISEXISTFAILED = "FailedOperation.CheckClsTopicIsExistFailed" // Failed to check whether the COS bucket exists FAILEDOPERATION_CHECKCOSBUCKETISEXISTFAILED = "FailedOperation.CheckCosBucketIsExistFailed" // Failed to create the COS bucket. FAILEDOPERATION_CREATEBUCKETFAIL = "FailedOperation.CreateBucketFail" // Failed to pull the CLS log topic FAILEDOPERATION_GETCLSTOPICFAILED = "FailedOperation.GetClsTopicFailed" // Failed to pull the COS bucket list FAILEDOPERATION_GETCOSBUCKETLISTFAILED = "FailedOperation.GetCosBucketListFailed" // Internal error. INTERNALERROR = "InternalError" // An exception occurred while creating the CMQ queue, probably because the CMQ queue to be created already exists, or your account has no permission or has overdue payments. INTERNALERROR_CMQERROR = "InternalError.CmqError" // An error occurred while creating the tracking set. Submit a ticket for assistance. INTERNALERROR_CREATEAUDITERROR = "InternalError.CreateAuditError" // Failed to delete the tracking set. Submit a ticket for assistance. INTERNALERROR_DELETEAUDITERROR = "InternalError.DeleteAuditError" // An error occurred while querying tracking set details. Submit a ticket for assistance. INTERNALERROR_DESCRIBEAUDITERROR = "InternalError.DescribeAuditError" // An error occurred while querying the number of tracking sets that can be created. Submit a ticket for assistance. INTERNALERROR_INQUIREAUDITCREDITERROR = "InternalError.InquireAuditCreditError" // An internal error occurred while querying the summary of tracking sets. Submit a ticket for assistance. INTERNALERROR_LISTAUDITSERROR = "InternalError.ListAuditsError" // An internal error occurred. Submit a ticket for assistance. INTERNALERROR_LISTCMQENABLEREGIONERROR = "InternalError.ListCmqEnableRegionError" // An internal error occurred. Submit a ticket for assistance. INTERNALERROR_LISTCOSENABLEREGIONERROR = "InternalError.ListCosEnableRegionError" // An internal error occurred. Submit a ticket for assistance. INTERNALERROR_SEARCHERROR = "InternalError.SearchError" // An internal error occurred. Submit a ticket for assistance. INTERNALERROR_STARTLOGGINGERROR = "InternalError.StartLoggingError" // An internal error occurred. Submit a ticket for assistance. INTERNALERROR_STOPLOGGINGERROR = "InternalError.StopLoggingError" // An internal error occurred. Submit a ticket for assistance. INTERNALERROR_UPDATEAUDITERROR = "InternalError.UpdateAuditError" // Parameter error. INVALIDPARAMETER = "InvalidParameter" // The parameter must contain the start time and end time and must be an integer timestamp (accurate down to the second). INVALIDPARAMETER_TIME = "InvalidParameter.Time" // The alias already exists. INVALIDPARAMETERVALUE_ALIASALREADYEXISTS = "InvalidParameterValue.AliasAlreadyExists" // The tracking set name is non-compliant. INVALIDPARAMETERVALUE_AUDITNAMEERROR = "InvalidParameterValue.AuditNameError" // The tracking set name cannot be modified. INVALIDPARAMETERVALUE_AUDITTRACKNAMENOTSUPPORTMODIFY = "InvalidParameterValue.AuditTrackNameNotSupportModify" // CloudAudit currently does not support the entered CMQ region. INVALIDPARAMETERVALUE_CMQREGIONERROR = "InvalidParameterValue.CmqRegionError" // The entered COS bucket name is non-compliant. INVALIDPARAMETERVALUE_COSNAMEERROR = "InvalidParameterValue.CosNameError" // CloudAudit currently does not support the entered COS region. INVALIDPARAMETERVALUE_COSREGIONERROR = "InvalidParameterValue.CosRegionError" // The value of `IsCreateNewBucket` can be 0 or 1. 0 indicates not to create a bucket, while 1 indicates to create a bucket. INVALIDPARAMETERVALUE_ISCREATENEWBUCKETERROR = "InvalidParameterValue.IsCreateNewBucketError" // The value of `IsCreateNewQueue` can be 0 or 1. 0 indicates not to create a queue, while 1 indicates to create a queue. INVALIDPARAMETERVALUE_ISCREATENEWQUEUEERROR = "InvalidParameterValue.IsCreateNewQueueError" // The value of `IsEnableCmqNotify` can be 0 or 1. 0 indicates not to enable CMQ delivery, while 1 indicates to enable CMQ delivery. INVALIDPARAMETERVALUE_ISENABLECMQNOTIFYERROR = "InvalidParameterValue.IsEnableCmqNotifyError" // The log prefix format is incorrect. INVALIDPARAMETERVALUE_LOGFILEPREFIXERROR = "InvalidParameterValue.LogFilePrefixError" // The maximum number of entries returned in one search is 50. INVALIDPARAMETERVALUE_MAXRESULT = "InvalidParameterValue.MaxResult" // The entered queue name is non-compliant. INVALIDPARAMETERVALUE_QUEUENAMEERROR = "InvalidParameterValue.QueueNameError" // Valid values of the read/write attribute: 1 (read-only), 2 (write-only), 3 (read/write). INVALIDPARAMETERVALUE_READWRITEATTRIBUTEERROR = "InvalidParameterValue.ReadWriteAttributeError" // The start time cannot be after the end time. INVALIDPARAMETERVALUE_TIME = "InvalidParameterValue.Time" // Valid values of `AttributeKey`: RequestId, EventName, ReadOnly, Username, ResourceType, ResourceName, AccessKeyId INVALIDPARAMETERVALUE_ATTRIBUTEKEY = "InvalidParameterValue.attributeKey" // The maximum number of tracking sets has been exceeded. LIMITEXCEEDED_OVERAMOUNT = "LimitExceeded.OverAmount" // Only entries for the last 7 days can be searched for. LIMITEXCEEDED_OVERTIME = "LimitExceeded.OverTime" // The tracking set name is missing. MISSINGPARAMETER_MISSAUDITNAME = "MissingParameter.MissAuditName" // The COS bucket parameter is missing. MISSINGPARAMETER_MISSCOSBUCKETNAME = "MissingParameter.MissCosBucketName" // The COS region parameter is missing. MISSINGPARAMETER_MISSCOSREGION = "MissingParameter.MissCosRegion" // If the value of `IsEnableCmqNotify` is 1, `IsCreateNewQueue`, `CmqQueueName`, and `CmqRegion` are required. MISSINGPARAMETER_CMQ = "MissingParameter.cmq" // A tracking set with the same name already exists. RESOURCEINUSE_ALREADYEXISTSSAMEAUDIT = "ResourceInUse.AlreadyExistsSameAudit" // A tracking set with the same CMQ delivery configuration already exists. RESOURCEINUSE_ALREADYEXISTSSAMEAUDITCMQCONFIG = "ResourceInUse.AlreadyExistsSameAuditCmqConfig" // A tracking set with the same COS delivery configuration already exists. RESOURCEINUSE_ALREADYEXISTSSAMEAUDITCOSCONFIG = "ResourceInUse.AlreadyExistsSameAuditCosConfig" // The COS bucket already exists. RESOURCEINUSE_COSBUCKETEXISTS = "ResourceInUse.CosBucketExists" // The resource doesn’t exist. RESOURCENOTFOUND = "ResourceNotFound" // The tracking set does not exist. RESOURCENOTFOUND_AUDITNOTEXIST = "ResourceNotFound.AuditNotExist" // The role doesn’t exist. RESOURCENOTFOUND_ROLENOTEXIST = "ResourceNotFound.RoleNotExist" )
const APIVersion = "2019-03-19"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeKeyDetail ¶
type AttributeKeyDetail struct { // Input box type LabelType *string `json:"LabelType,omitempty" name:"LabelType"` // Initial display Starter *string `json:"Starter,omitempty" name:"Starter"` // Display sort order Order *int64 `json:"Order,omitempty" name:"Order"` // `AttributeKey` value Value *string `json:"Value,omitempty" name:"Value"` // Tag Label *string `json:"Label,omitempty" name:"Label"` }
type AuditSummary ¶
type AuditSummary struct { // Tracking set status. 1: enabled, 0: disabled AuditStatus *int64 `json:"AuditStatus,omitempty" name:"AuditStatus"` // COS bucket name CosBucketName *string `json:"CosBucketName,omitempty" name:"CosBucketName"` // Tracking set name AuditName *string `json:"AuditName,omitempty" name:"AuditName"` // Log prefix LogFilePrefix *string `json:"LogFilePrefix,omitempty" name:"LogFilePrefix"` }
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) CreateAudit ¶
func (c *Client) CreateAudit(request *CreateAuditRequest) (response *CreateAuditResponse, err error)
CreateAudit Parameter requirements:
1. If the value of `IsCreateNewBucket` exists, `cosRegion` and `osBucketName` are required.
2. If the value of `IsEnableCmqNotify` is 1, `IsCreateNewQueue`, `CmqRegion`, and `CmqQueueName` are required.
3. If the value of `IsEnableCmqNotify` is 0, `IsCreateNewQueue`, `CmqRegion`, and `CmqQueueName` cannot be passed in.
4. If the value of `IsEnableKmsEncry` is 1, `KmsRegion` and `KeyId` are required.
error code that may be returned:
FAILEDOPERATION_CREATEBUCKETFAIL = "FailedOperation.CreateBucketFail" INTERNALERROR_CMQERROR = "InternalError.CmqError" INTERNALERROR_CREATEAUDITERROR = "InternalError.CreateAuditError" INVALIDPARAMETERVALUE_AUDITNAMEERROR = "InvalidParameterValue.AuditNameError" INVALIDPARAMETERVALUE_CMQREGIONERROR = "InvalidParameterValue.CmqRegionError" INVALIDPARAMETERVALUE_COSNAMEERROR = "InvalidParameterValue.CosNameError" INVALIDPARAMETERVALUE_COSREGIONERROR = "InvalidParameterValue.CosRegionError" INVALIDPARAMETERVALUE_ISCREATENEWBUCKETERROR = "InvalidParameterValue.IsCreateNewBucketError" INVALIDPARAMETERVALUE_ISCREATENEWQUEUEERROR = "InvalidParameterValue.IsCreateNewQueueError" INVALIDPARAMETERVALUE_ISENABLECMQNOTIFYERROR = "InvalidParameterValue.IsEnableCmqNotifyError" INVALIDPARAMETERVALUE_LOGFILEPREFIXERROR = "InvalidParameterValue.LogFilePrefixError" INVALIDPARAMETERVALUE_QUEUENAMEERROR = "InvalidParameterValue.QueueNameError" INVALIDPARAMETERVALUE_READWRITEATTRIBUTEERROR = "InvalidParameterValue.ReadWriteAttributeError" LIMITEXCEEDED_OVERAMOUNT = "LimitExceeded.OverAmount" MISSINGPARAMETER_MISSAUDITNAME = "MissingParameter.MissAuditName" MISSINGPARAMETER_MISSCOSBUCKETNAME = "MissingParameter.MissCosBucketName" MISSINGPARAMETER_MISSCOSREGION = "MissingParameter.MissCosRegion" MISSINGPARAMETER_CMQ = "MissingParameter.cmq" RESOURCEINUSE_ALREADYEXISTSSAMEAUDIT = "ResourceInUse.AlreadyExistsSameAudit" RESOURCEINUSE_ALREADYEXISTSSAMEAUDITCMQCONFIG = "ResourceInUse.AlreadyExistsSameAuditCmqConfig" RESOURCEINUSE_ALREADYEXISTSSAMEAUDITCOSCONFIG = "ResourceInUse.AlreadyExistsSameAuditCosConfig" RESOURCEINUSE_COSBUCKETEXISTS = "ResourceInUse.CosBucketExists" RESOURCENOTFOUND_ROLENOTEXIST = "ResourceNotFound.RoleNotExist"
func (*Client) CreateAuditTrack ¶
func (c *Client) CreateAuditTrack(request *CreateAuditTrackRequest) (response *CreateAuditTrackResponse, err error)
CreateAuditTrack This API is used to create a tracking set.
error code that may be returned:
FAILEDOPERATION_CHECKCLSTOPICISEXISTFAILED = "FailedOperation.CheckClsTopicIsExistFailed" FAILEDOPERATION_CHECKCOSBUCKETISEXISTFAILED = "FailedOperation.CheckCosBucketIsExistFailed" FAILEDOPERATION_GETCLSTOPICFAILED = "FailedOperation.GetClsTopicFailed" FAILEDOPERATION_GETCOSBUCKETLISTFAILED = "FailedOperation.GetCosBucketListFailed" INTERNALERROR = "InternalError" INTERNALERROR_SEARCHERROR = "InternalError.SearchError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ALIASALREADYEXISTS = "InvalidParameterValue.AliasAlreadyExists" INVALIDPARAMETERVALUE_COSREGIONERROR = "InvalidParameterValue.CosRegionError" LIMITEXCEEDED_OVERAMOUNT = "LimitExceeded.OverAmount" RESOURCENOTFOUND = "ResourceNotFound"
func (*Client) CreateAuditTrackWithContext ¶
func (c *Client) CreateAuditTrackWithContext(ctx context.Context, request *CreateAuditTrackRequest) (response *CreateAuditTrackResponse, err error)
CreateAuditTrack This API is used to create a tracking set.
error code that may be returned:
FAILEDOPERATION_CHECKCLSTOPICISEXISTFAILED = "FailedOperation.CheckClsTopicIsExistFailed" FAILEDOPERATION_CHECKCOSBUCKETISEXISTFAILED = "FailedOperation.CheckCosBucketIsExistFailed" FAILEDOPERATION_GETCLSTOPICFAILED = "FailedOperation.GetClsTopicFailed" FAILEDOPERATION_GETCOSBUCKETLISTFAILED = "FailedOperation.GetCosBucketListFailed" INTERNALERROR = "InternalError" INTERNALERROR_SEARCHERROR = "InternalError.SearchError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ALIASALREADYEXISTS = "InvalidParameterValue.AliasAlreadyExists" INVALIDPARAMETERVALUE_COSREGIONERROR = "InvalidParameterValue.CosRegionError" LIMITEXCEEDED_OVERAMOUNT = "LimitExceeded.OverAmount" RESOURCENOTFOUND = "ResourceNotFound"
func (*Client) CreateAuditWithContext ¶
func (c *Client) CreateAuditWithContext(ctx context.Context, request *CreateAuditRequest) (response *CreateAuditResponse, err error)
CreateAudit Parameter requirements:
1. If the value of `IsCreateNewBucket` exists, `cosRegion` and `osBucketName` are required.
2. If the value of `IsEnableCmqNotify` is 1, `IsCreateNewQueue`, `CmqRegion`, and `CmqQueueName` are required.
3. If the value of `IsEnableCmqNotify` is 0, `IsCreateNewQueue`, `CmqRegion`, and `CmqQueueName` cannot be passed in.
4. If the value of `IsEnableKmsEncry` is 1, `KmsRegion` and `KeyId` are required.
error code that may be returned:
FAILEDOPERATION_CREATEBUCKETFAIL = "FailedOperation.CreateBucketFail" INTERNALERROR_CMQERROR = "InternalError.CmqError" INTERNALERROR_CREATEAUDITERROR = "InternalError.CreateAuditError" INVALIDPARAMETERVALUE_AUDITNAMEERROR = "InvalidParameterValue.AuditNameError" INVALIDPARAMETERVALUE_CMQREGIONERROR = "InvalidParameterValue.CmqRegionError" INVALIDPARAMETERVALUE_COSNAMEERROR = "InvalidParameterValue.CosNameError" INVALIDPARAMETERVALUE_COSREGIONERROR = "InvalidParameterValue.CosRegionError" INVALIDPARAMETERVALUE_ISCREATENEWBUCKETERROR = "InvalidParameterValue.IsCreateNewBucketError" INVALIDPARAMETERVALUE_ISCREATENEWQUEUEERROR = "InvalidParameterValue.IsCreateNewQueueError" INVALIDPARAMETERVALUE_ISENABLECMQNOTIFYERROR = "InvalidParameterValue.IsEnableCmqNotifyError" INVALIDPARAMETERVALUE_LOGFILEPREFIXERROR = "InvalidParameterValue.LogFilePrefixError" INVALIDPARAMETERVALUE_QUEUENAMEERROR = "InvalidParameterValue.QueueNameError" INVALIDPARAMETERVALUE_READWRITEATTRIBUTEERROR = "InvalidParameterValue.ReadWriteAttributeError" LIMITEXCEEDED_OVERAMOUNT = "LimitExceeded.OverAmount" MISSINGPARAMETER_MISSAUDITNAME = "MissingParameter.MissAuditName" MISSINGPARAMETER_MISSCOSBUCKETNAME = "MissingParameter.MissCosBucketName" MISSINGPARAMETER_MISSCOSREGION = "MissingParameter.MissCosRegion" MISSINGPARAMETER_CMQ = "MissingParameter.cmq" RESOURCEINUSE_ALREADYEXISTSSAMEAUDIT = "ResourceInUse.AlreadyExistsSameAudit" RESOURCEINUSE_ALREADYEXISTSSAMEAUDITCMQCONFIG = "ResourceInUse.AlreadyExistsSameAuditCmqConfig" RESOURCEINUSE_ALREADYEXISTSSAMEAUDITCOSCONFIG = "ResourceInUse.AlreadyExistsSameAuditCosConfig" RESOURCEINUSE_COSBUCKETEXISTS = "ResourceInUse.CosBucketExists" RESOURCENOTFOUND_ROLENOTEXIST = "ResourceNotFound.RoleNotExist"
func (*Client) DeleteAudit ¶
func (c *Client) DeleteAudit(request *DeleteAuditRequest) (response *DeleteAuditResponse, err error)
DeleteAudit This API is used to delete a tracking set.
error code that may be returned:
INTERNALERROR_DELETEAUDITERROR = "InternalError.DeleteAuditError" RESOURCENOTFOUND_AUDITNOTEXIST = "ResourceNotFound.AuditNotExist"
func (*Client) DeleteAuditTrack ¶
func (c *Client) DeleteAuditTrack(request *DeleteAuditTrackRequest) (response *DeleteAuditTrackResponse, err error)
DeleteAuditTrack This API is used to delete a CloudAudit tracking set.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ALIASALREADYEXISTS = "InvalidParameterValue.AliasAlreadyExists" LIMITEXCEEDED_OVERAMOUNT = "LimitExceeded.OverAmount" RESOURCENOTFOUND_AUDITNOTEXIST = "ResourceNotFound.AuditNotExist"
func (*Client) DeleteAuditTrackWithContext ¶
func (c *Client) DeleteAuditTrackWithContext(ctx context.Context, request *DeleteAuditTrackRequest) (response *DeleteAuditTrackResponse, err error)
DeleteAuditTrack This API is used to delete a CloudAudit tracking set.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ALIASALREADYEXISTS = "InvalidParameterValue.AliasAlreadyExists" LIMITEXCEEDED_OVERAMOUNT = "LimitExceeded.OverAmount" RESOURCENOTFOUND_AUDITNOTEXIST = "ResourceNotFound.AuditNotExist"
func (*Client) DeleteAuditWithContext ¶
func (c *Client) DeleteAuditWithContext(ctx context.Context, request *DeleteAuditRequest) (response *DeleteAuditResponse, err error)
DeleteAudit This API is used to delete a tracking set.
error code that may be returned:
INTERNALERROR_DELETEAUDITERROR = "InternalError.DeleteAuditError" RESOURCENOTFOUND_AUDITNOTEXIST = "ResourceNotFound.AuditNotExist"
func (*Client) DescribeAudit ¶
func (c *Client) DescribeAudit(request *DescribeAuditRequest) (response *DescribeAuditResponse, err error)
DescribeAudit This API is used to query the details of a tracking set.
error code that may be returned:
INTERNALERROR_DESCRIBEAUDITERROR = "InternalError.DescribeAuditError" RESOURCENOTFOUND_AUDITNOTEXIST = "ResourceNotFound.AuditNotExist"
func (*Client) DescribeAuditTrack ¶
func (c *Client) DescribeAuditTrack(request *DescribeAuditTrackRequest) (response *DescribeAuditTrackResponse, err error)
DescribeAuditTrack This API is used to query the CloudAudit tracking set details.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ALIASALREADYEXISTS = "InvalidParameterValue.AliasAlreadyExists" LIMITEXCEEDED_OVERAMOUNT = "LimitExceeded.OverAmount" RESOURCENOTFOUND_AUDITNOTEXIST = "ResourceNotFound.AuditNotExist"
func (*Client) DescribeAuditTrackWithContext ¶
func (c *Client) DescribeAuditTrackWithContext(ctx context.Context, request *DescribeAuditTrackRequest) (response *DescribeAuditTrackResponse, err error)
DescribeAuditTrack This API is used to query the CloudAudit tracking set details.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ALIASALREADYEXISTS = "InvalidParameterValue.AliasAlreadyExists" LIMITEXCEEDED_OVERAMOUNT = "LimitExceeded.OverAmount" RESOURCENOTFOUND_AUDITNOTEXIST = "ResourceNotFound.AuditNotExist"
func (*Client) DescribeAuditTracks ¶
func (c *Client) DescribeAuditTracks(request *DescribeAuditTracksRequest) (response *DescribeAuditTracksResponse, err error)
DescribeAuditTracks This API is used to query the CloudAudit tracking set list.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ALIASALREADYEXISTS = "InvalidParameterValue.AliasAlreadyExists" LIMITEXCEEDED_OVERAMOUNT = "LimitExceeded.OverAmount"
func (*Client) DescribeAuditTracksWithContext ¶
func (c *Client) DescribeAuditTracksWithContext(ctx context.Context, request *DescribeAuditTracksRequest) (response *DescribeAuditTracksResponse, err error)
DescribeAuditTracks This API is used to query the CloudAudit tracking set list.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ALIASALREADYEXISTS = "InvalidParameterValue.AliasAlreadyExists" LIMITEXCEEDED_OVERAMOUNT = "LimitExceeded.OverAmount"
func (*Client) DescribeAuditWithContext ¶
func (c *Client) DescribeAuditWithContext(ctx context.Context, request *DescribeAuditRequest) (response *DescribeAuditResponse, err error)
DescribeAudit This API is used to query the details of a tracking set.
error code that may be returned:
INTERNALERROR_DESCRIBEAUDITERROR = "InternalError.DescribeAuditError" RESOURCENOTFOUND_AUDITNOTEXIST = "ResourceNotFound.AuditNotExist"
func (*Client) DescribeEvents ¶
func (c *Client) DescribeEvents(request *DescribeEventsRequest) (response *DescribeEventsResponse, err error)
DescribeEvents This API is used to query CloudAudit logs.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" LIMITEXCEEDED_OVERAMOUNT = "LimitExceeded.OverAmount"
func (*Client) DescribeEventsWithContext ¶
func (c *Client) DescribeEventsWithContext(ctx context.Context, request *DescribeEventsRequest) (response *DescribeEventsResponse, err error)
DescribeEvents This API is used to query CloudAudit logs.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" LIMITEXCEEDED_OVERAMOUNT = "LimitExceeded.OverAmount"
func (*Client) GetAttributeKey ¶
func (c *Client) GetAttributeKey(request *GetAttributeKeyRequest) (response *GetAttributeKeyResponse, err error)
GetAttributeKey This API is used to query the valid values of `AttributeKey`.
error code that may be returned:
INTERNALERROR_SEARCHERROR = "InternalError.SearchError"
func (*Client) GetAttributeKeyWithContext ¶
func (c *Client) GetAttributeKeyWithContext(ctx context.Context, request *GetAttributeKeyRequest) (response *GetAttributeKeyResponse, err error)
GetAttributeKey This API is used to query the valid values of `AttributeKey`.
error code that may be returned:
INTERNALERROR_SEARCHERROR = "InternalError.SearchError"
func (*Client) InquireAuditCredit ¶
func (c *Client) InquireAuditCredit(request *InquireAuditCreditRequest) (response *InquireAuditCreditResponse, err error)
InquireAuditCredit This API is used to query the number of tracking sets that can be created.
error code that may be returned:
INTERNALERROR_INQUIREAUDITCREDITERROR = "InternalError.InquireAuditCreditError"
func (*Client) InquireAuditCreditWithContext ¶
func (c *Client) InquireAuditCreditWithContext(ctx context.Context, request *InquireAuditCreditRequest) (response *InquireAuditCreditResponse, err error)
InquireAuditCredit This API is used to query the number of tracking sets that can be created.
error code that may be returned:
INTERNALERROR_INQUIREAUDITCREDITERROR = "InternalError.InquireAuditCreditError"
func (*Client) ListAudits ¶
func (c *Client) ListAudits(request *ListAuditsRequest) (response *ListAuditsResponse, err error)
ListAudits This API is used to query the summary of tracking sets.
error code that may be returned:
INTERNALERROR_LISTAUDITSERROR = "InternalError.ListAuditsError"
func (*Client) ListAuditsWithContext ¶
func (c *Client) ListAuditsWithContext(ctx context.Context, request *ListAuditsRequest) (response *ListAuditsResponse, err error)
ListAudits This API is used to query the summary of tracking sets.
error code that may be returned:
INTERNALERROR_LISTAUDITSERROR = "InternalError.ListAuditsError"
func (*Client) ListCmqEnableRegion ¶
func (c *Client) ListCmqEnableRegion(request *ListCmqEnableRegionRequest) (response *ListCmqEnableRegionResponse, err error)
ListCmqEnableRegion This API is used to query CloudAudit-enabled CMQ AZs.
error code that may be returned:
INTERNALERROR_LISTCMQENABLEREGIONERROR = "InternalError.ListCmqEnableRegionError"
func (*Client) ListCmqEnableRegionWithContext ¶
func (c *Client) ListCmqEnableRegionWithContext(ctx context.Context, request *ListCmqEnableRegionRequest) (response *ListCmqEnableRegionResponse, err error)
ListCmqEnableRegion This API is used to query CloudAudit-enabled CMQ AZs.
error code that may be returned:
INTERNALERROR_LISTCMQENABLEREGIONERROR = "InternalError.ListCmqEnableRegionError"
func (*Client) ListCosEnableRegion ¶
func (c *Client) ListCosEnableRegion(request *ListCosEnableRegionRequest) (response *ListCosEnableRegionResponse, err error)
ListCosEnableRegion This API is used to query CloudAudit-enabled COS AZs.
error code that may be returned:
INTERNALERROR_LISTCOSENABLEREGIONERROR = "InternalError.ListCosEnableRegionError"
func (*Client) ListCosEnableRegionWithContext ¶
func (c *Client) ListCosEnableRegionWithContext(ctx context.Context, request *ListCosEnableRegionRequest) (response *ListCosEnableRegionResponse, err error)
ListCosEnableRegion This API is used to query CloudAudit-enabled COS AZs.
error code that may be returned:
INTERNALERROR_LISTCOSENABLEREGIONERROR = "InternalError.ListCosEnableRegionError"
func (*Client) LookUpEvents ¶
func (c *Client) LookUpEvents(request *LookUpEventsRequest) (response *LookUpEventsResponse, err error)
LookUpEvents This API is used to search for operation logs to help query relevant operation information.
error code that may be returned:
INTERNALERROR_SEARCHERROR = "InternalError.SearchError" INVALIDPARAMETER_TIME = "InvalidParameter.Time" INVALIDPARAMETERVALUE_MAXRESULT = "InvalidParameterValue.MaxResult" INVALIDPARAMETERVALUE_TIME = "InvalidParameterValue.Time" INVALIDPARAMETERVALUE_ATTRIBUTEKEY = "InvalidParameterValue.attributeKey" LIMITEXCEEDED_OVERTIME = "LimitExceeded.OverTime"
func (*Client) LookUpEventsWithContext ¶
func (c *Client) LookUpEventsWithContext(ctx context.Context, request *LookUpEventsRequest) (response *LookUpEventsResponse, err error)
LookUpEvents This API is used to search for operation logs to help query relevant operation information.
error code that may be returned:
INTERNALERROR_SEARCHERROR = "InternalError.SearchError" INVALIDPARAMETER_TIME = "InvalidParameter.Time" INVALIDPARAMETERVALUE_MAXRESULT = "InvalidParameterValue.MaxResult" INVALIDPARAMETERVALUE_TIME = "InvalidParameterValue.Time" INVALIDPARAMETERVALUE_ATTRIBUTEKEY = "InvalidParameterValue.attributeKey" LIMITEXCEEDED_OVERTIME = "LimitExceeded.OverTime"
func (*Client) ModifyAuditTrack ¶
func (c *Client) ModifyAuditTrack(request *ModifyAuditTrackRequest) (response *ModifyAuditTrackResponse, err error)
ModifyAuditTrack This API is used to modify a CloudAudit tracking set.
error code that may be returned:
FAILEDOPERATION_CHECKCLSTOPICISEXISTFAILED = "FailedOperation.CheckClsTopicIsExistFailed" FAILEDOPERATION_CHECKCOSBUCKETISEXISTFAILED = "FailedOperation.CheckCosBucketIsExistFailed" FAILEDOPERATION_GETCLSTOPICFAILED = "FailedOperation.GetClsTopicFailed" FAILEDOPERATION_GETCOSBUCKETLISTFAILED = "FailedOperation.GetCosBucketListFailed" INTERNALERROR = "InternalError" INTERNALERROR_SEARCHERROR = "InternalError.SearchError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ALIASALREADYEXISTS = "InvalidParameterValue.AliasAlreadyExists" INVALIDPARAMETERVALUE_AUDITTRACKNAMENOTSUPPORTMODIFY = "InvalidParameterValue.AuditTrackNameNotSupportModify" INVALIDPARAMETERVALUE_COSREGIONERROR = "InvalidParameterValue.CosRegionError" LIMITEXCEEDED_OVERAMOUNT = "LimitExceeded.OverAmount" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_AUDITNOTEXIST = "ResourceNotFound.AuditNotExist"
func (*Client) ModifyAuditTrackWithContext ¶
func (c *Client) ModifyAuditTrackWithContext(ctx context.Context, request *ModifyAuditTrackRequest) (response *ModifyAuditTrackResponse, err error)
ModifyAuditTrack This API is used to modify a CloudAudit tracking set.
error code that may be returned:
FAILEDOPERATION_CHECKCLSTOPICISEXISTFAILED = "FailedOperation.CheckClsTopicIsExistFailed" FAILEDOPERATION_CHECKCOSBUCKETISEXISTFAILED = "FailedOperation.CheckCosBucketIsExistFailed" FAILEDOPERATION_GETCLSTOPICFAILED = "FailedOperation.GetClsTopicFailed" FAILEDOPERATION_GETCOSBUCKETLISTFAILED = "FailedOperation.GetCosBucketListFailed" INTERNALERROR = "InternalError" INTERNALERROR_SEARCHERROR = "InternalError.SearchError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ALIASALREADYEXISTS = "InvalidParameterValue.AliasAlreadyExists" INVALIDPARAMETERVALUE_AUDITTRACKNAMENOTSUPPORTMODIFY = "InvalidParameterValue.AuditTrackNameNotSupportModify" INVALIDPARAMETERVALUE_COSREGIONERROR = "InvalidParameterValue.CosRegionError" LIMITEXCEEDED_OVERAMOUNT = "LimitExceeded.OverAmount" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_AUDITNOTEXIST = "ResourceNotFound.AuditNotExist"
func (*Client) StartLogging ¶
func (c *Client) StartLogging(request *StartLoggingRequest) (response *StartLoggingResponse, err error)
StartLogging This API is used to enable a tracking set.
error code that may be returned:
INTERNALERROR_STARTLOGGINGERROR = "InternalError.StartLoggingError" RESOURCENOTFOUND_AUDITNOTEXIST = "ResourceNotFound.AuditNotExist"
func (*Client) StartLoggingWithContext ¶
func (c *Client) StartLoggingWithContext(ctx context.Context, request *StartLoggingRequest) (response *StartLoggingResponse, err error)
StartLogging This API is used to enable a tracking set.
error code that may be returned:
INTERNALERROR_STARTLOGGINGERROR = "InternalError.StartLoggingError" RESOURCENOTFOUND_AUDITNOTEXIST = "ResourceNotFound.AuditNotExist"
func (*Client) StopLogging ¶
func (c *Client) StopLogging(request *StopLoggingRequest) (response *StopLoggingResponse, err error)
StopLogging This API is used to disable a tracking set.
error code that may be returned:
INTERNALERROR_STOPLOGGINGERROR = "InternalError.StopLoggingError" RESOURCENOTFOUND_AUDITNOTEXIST = "ResourceNotFound.AuditNotExist"
func (*Client) StopLoggingWithContext ¶
func (c *Client) StopLoggingWithContext(ctx context.Context, request *StopLoggingRequest) (response *StopLoggingResponse, err error)
StopLogging This API is used to disable a tracking set.
error code that may be returned:
INTERNALERROR_STOPLOGGINGERROR = "InternalError.StopLoggingError" RESOURCENOTFOUND_AUDITNOTEXIST = "ResourceNotFound.AuditNotExist"
func (*Client) UpdateAudit ¶
func (c *Client) UpdateAudit(request *UpdateAuditRequest) (response *UpdateAuditResponse, err error)
UpdateAudit Parameter requirements:
1. If the value of `IsCreateNewBucket` exists, `cosRegion` and `osBucketName` are required.
2. If the value of `IsEnableCmqNotify` is 1, `IsCreateNewQueue`, `CmqRegion`, and `CmqQueueName` are required.
3. If the value of `IsEnableCmqNotify` is 0, `IsCreateNewQueue`, `CmqRegion`, and `CmqQueueName` cannot be passed in.
4. If the value of `IsEnableKmsEncry` is 1, `KmsRegion` and `KeyId` are required.
error code that may be returned:
INTERNALERROR_CMQERROR = "InternalError.CmqError" INTERNALERROR_UPDATEAUDITERROR = "InternalError.UpdateAuditError" INVALIDPARAMETERVALUE_CMQREGIONERROR = "InvalidParameterValue.CmqRegionError" INVALIDPARAMETERVALUE_COSNAMEERROR = "InvalidParameterValue.CosNameError" INVALIDPARAMETERVALUE_COSREGIONERROR = "InvalidParameterValue.CosRegionError" INVALIDPARAMETERVALUE_LOGFILEPREFIXERROR = "InvalidParameterValue.LogFilePrefixError" INVALIDPARAMETERVALUE_QUEUENAMEERROR = "InvalidParameterValue.QueueNameError" INVALIDPARAMETERVALUE_READWRITEATTRIBUTEERROR = "InvalidParameterValue.ReadWriteAttributeError" MISSINGPARAMETER_CMQ = "MissingParameter.cmq" RESOURCEINUSE_COSBUCKETEXISTS = "ResourceInUse.CosBucketExists" RESOURCENOTFOUND_AUDITNOTEXIST = "ResourceNotFound.AuditNotExist"
func (*Client) UpdateAuditWithContext ¶
func (c *Client) UpdateAuditWithContext(ctx context.Context, request *UpdateAuditRequest) (response *UpdateAuditResponse, err error)
UpdateAudit Parameter requirements:
1. If the value of `IsCreateNewBucket` exists, `cosRegion` and `osBucketName` are required.
2. If the value of `IsEnableCmqNotify` is 1, `IsCreateNewQueue`, `CmqRegion`, and `CmqQueueName` are required.
3. If the value of `IsEnableCmqNotify` is 0, `IsCreateNewQueue`, `CmqRegion`, and `CmqQueueName` cannot be passed in.
4. If the value of `IsEnableKmsEncry` is 1, `KmsRegion` and `KeyId` are required.
error code that may be returned:
INTERNALERROR_CMQERROR = "InternalError.CmqError" INTERNALERROR_UPDATEAUDITERROR = "InternalError.UpdateAuditError" INVALIDPARAMETERVALUE_CMQREGIONERROR = "InvalidParameterValue.CmqRegionError" INVALIDPARAMETERVALUE_COSNAMEERROR = "InvalidParameterValue.CosNameError" INVALIDPARAMETERVALUE_COSREGIONERROR = "InvalidParameterValue.CosRegionError" INVALIDPARAMETERVALUE_LOGFILEPREFIXERROR = "InvalidParameterValue.LogFilePrefixError" INVALIDPARAMETERVALUE_QUEUENAMEERROR = "InvalidParameterValue.QueueNameError" INVALIDPARAMETERVALUE_READWRITEATTRIBUTEERROR = "InvalidParameterValue.ReadWriteAttributeError" MISSINGPARAMETER_CMQ = "MissingParameter.cmq" RESOURCEINUSE_COSBUCKETEXISTS = "ResourceInUse.CosBucketExists" RESOURCENOTFOUND_AUDITNOTEXIST = "ResourceNotFound.AuditNotExist"
type CmqRegionInfo ¶
type CosRegionInfo ¶
type CreateAuditRequest ¶
type CreateAuditRequest struct { *tchttp.BaseRequest // Whether to enable CMQ message notification. 1: Yes; 0: No. Only CMQ queue service is currently supported. If CMQ message notification is enabled, CloudAudit will deliver your log contents to the designated queue in the specified region in real time. IsEnableCmqNotify *int64 `json:"IsEnableCmqNotify,omitempty" name:"IsEnableCmqNotify"` // Manages the read/write attribute of event. Valid values: 1 (read-only), 2 (write-only), 3 (read/write). ReadWriteAttribute *int64 `json:"ReadWriteAttribute,omitempty" name:"ReadWriteAttribute"` // Tracking set name, which can contain 3–128 ASCII letters (a–z; A–Z), digits (0–9), and underscores (_). AuditName *string `json:"AuditName,omitempty" name:"AuditName"` // COS region. Supported regions can be queried through the `ListCosEnableRegion` API. CosRegion *string `json:"CosRegion,omitempty" name:"CosRegion"` // Whether to create a COS bucket. 1: Yes; 0: No. IsCreateNewBucket *int64 `json:"IsCreateNewBucket,omitempty" name:"IsCreateNewBucket"` // User-defined COS bucket name, which can only contain 1–40 lowercase letters (a–z), digits (0–9), and dashes (-) and cannot begin or end with "-". If a bucket is not newly created, CloudAudit will not verify whether it actually exists. Enter the name with caution to avoid log delivery failure and consequent data loss. CosBucketName *string `json:"CosBucketName,omitempty" name:"CosBucketName"` // Globally unique ID of the CMK. This value is required if it is not a newly created KMS element. It can be obtained through `ListKeyAliasByRegion`. CloudAudit will not verify the validity of the `KeyId`. Enter it carefully to avoid data loss. KeyId *string `json:"KeyId,omitempty" name:"KeyId"` // Queue name, which must begin with a letter and can contain up to 64 letters, digits, and dashes (-). This field is required if the value of `IsEnableCmqNotify` is 1. If a queue is not newly created, CloudAudit will not verify whether it actually exists. Enter the name with caution to avoid log delivery failure and consequent data loss. CmqQueueName *string `json:"CmqQueueName,omitempty" name:"CmqQueueName"` // KMS region. Currently supported regions can be obtained through `ListKmsEnableRegion`. This must be the same as the COS region. KmsRegion *string `json:"KmsRegion,omitempty" name:"KmsRegion"` // Whether to enable KMS encryption. 1: Yes, 0: No. If KMS encryption is enabled, the data will be encrypted when delivered to COS. IsEnableKmsEncry *int64 `json:"IsEnableKmsEncry,omitempty" name:"IsEnableKmsEncry"` // Region where the queue is located. Supported CMQ regions can be queried through the `ListCmqEnableRegion` API. This field is required if the value of `IsEnableCmqNotify` is 1. CmqRegion *string `json:"CmqRegion,omitempty" name:"CmqRegion"` // Log file prefix, which can only contain 3–40 ASCII letters (a–z; A–Z) and digits (0–9). It can be left empty and is the account ID by default. LogFilePrefix *string `json:"LogFilePrefix,omitempty" name:"LogFilePrefix"` // Whether to create a queue. 1: Yes; 0: No. This field is required if the value of `IsEnableCmqNotify` is 1. IsCreateNewQueue *int64 `json:"IsCreateNewQueue,omitempty" name:"IsCreateNewQueue"` }
func NewCreateAuditRequest ¶
func NewCreateAuditRequest() (request *CreateAuditRequest)
func (*CreateAuditRequest) FromJsonString ¶
func (r *CreateAuditRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAuditRequest) ToJsonString ¶
func (r *CreateAuditRequest) ToJsonString() string
type CreateAuditRequestParams ¶
type CreateAuditRequestParams struct { // Whether to enable CMQ message notification. 1: Yes; 0: No. Only CMQ queue service is currently supported. If CMQ message notification is enabled, CloudAudit will deliver your log contents to the designated queue in the specified region in real time. IsEnableCmqNotify *int64 `json:"IsEnableCmqNotify,omitempty" name:"IsEnableCmqNotify"` // Manages the read/write attribute of event. Valid values: 1 (read-only), 2 (write-only), 3 (read/write). ReadWriteAttribute *int64 `json:"ReadWriteAttribute,omitempty" name:"ReadWriteAttribute"` // Tracking set name, which can contain 3–128 ASCII letters (a–z; A–Z), digits (0–9), and underscores (_). AuditName *string `json:"AuditName,omitempty" name:"AuditName"` // COS region. Supported regions can be queried through the `ListCosEnableRegion` API. CosRegion *string `json:"CosRegion,omitempty" name:"CosRegion"` // Whether to create a COS bucket. 1: Yes; 0: No. IsCreateNewBucket *int64 `json:"IsCreateNewBucket,omitempty" name:"IsCreateNewBucket"` // User-defined COS bucket name, which can only contain 1–40 lowercase letters (a–z), digits (0–9), and dashes (-) and cannot begin or end with "-". If a bucket is not newly created, CloudAudit will not verify whether it actually exists. Enter the name with caution to avoid log delivery failure and consequent data loss. CosBucketName *string `json:"CosBucketName,omitempty" name:"CosBucketName"` // Globally unique ID of the CMK. This value is required if it is not a newly created KMS element. It can be obtained through `ListKeyAliasByRegion`. CloudAudit will not verify the validity of the `KeyId`. Enter it carefully to avoid data loss. KeyId *string `json:"KeyId,omitempty" name:"KeyId"` // Queue name, which must begin with a letter and can contain up to 64 letters, digits, and dashes (-). This field is required if the value of `IsEnableCmqNotify` is 1. If a queue is not newly created, CloudAudit will not verify whether it actually exists. Enter the name with caution to avoid log delivery failure and consequent data loss. CmqQueueName *string `json:"CmqQueueName,omitempty" name:"CmqQueueName"` // KMS region. Currently supported regions can be obtained through `ListKmsEnableRegion`. This must be the same as the COS region. KmsRegion *string `json:"KmsRegion,omitempty" name:"KmsRegion"` // Whether to enable KMS encryption. 1: Yes, 0: No. If KMS encryption is enabled, the data will be encrypted when delivered to COS. IsEnableKmsEncry *int64 `json:"IsEnableKmsEncry,omitempty" name:"IsEnableKmsEncry"` // Region where the queue is located. Supported CMQ regions can be queried through the `ListCmqEnableRegion` API. This field is required if the value of `IsEnableCmqNotify` is 1. CmqRegion *string `json:"CmqRegion,omitempty" name:"CmqRegion"` // Log file prefix, which can only contain 3–40 ASCII letters (a–z; A–Z) and digits (0–9). It can be left empty and is the account ID by default. LogFilePrefix *string `json:"LogFilePrefix,omitempty" name:"LogFilePrefix"` // Whether to create a queue. 1: Yes; 0: No. This field is required if the value of `IsEnableCmqNotify` is 1. IsCreateNewQueue *int64 `json:"IsCreateNewQueue,omitempty" name:"IsCreateNewQueue"` }
Predefined struct for user
type CreateAuditResponse ¶
type CreateAuditResponse struct { *tchttp.BaseResponse Response *CreateAuditResponseParams `json:"Response"` }
func NewCreateAuditResponse ¶
func NewCreateAuditResponse() (response *CreateAuditResponse)
func (*CreateAuditResponse) FromJsonString ¶
func (r *CreateAuditResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAuditResponse) ToJsonString ¶
func (r *CreateAuditResponse) ToJsonString() string
type CreateAuditResponseParams ¶
type CreateAuditResponseParams struct { // Whether creation succeeded. IsSuccess *int64 `json:"IsSuccess,omitempty" name:"IsSuccess"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateAuditTrackRequest ¶
type CreateAuditTrackRequest struct { *tchttp.BaseRequest // Tracking set name, which can only contain 3-48 letters, digits, hyphens, and underscores. Name *string `json:"Name,omitempty" name:"Name"` // Tracking set event type (`Read`: Read; `Write`: Write; `*`: All) ActionType *string `json:"ActionType,omitempty" name:"ActionType"` // The product to which the tracking set event belongs. The value can be a single product such as `cos`, or `*` that indicates all products. ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` // Tracking set status (0: Not enabled; 1: Enabled) Status *uint64 `json:"Status,omitempty" name:"Status"` // The list of API names of tracking set events. When `ResourceType` is `*`, the value of `EventNames` must be `*`. When `ResourceType` is a specified product, the value of `EventNames` can be `*`. When `ResourceType` is `cos` or `cls`, up to 10 APIs are supported. EventNames []*string `json:"EventNames,omitempty" name:"EventNames"` // Storage type of shipped data. Valid values: `cos`, `cls`. Storage *Storage `json:"Storage,omitempty" name:"Storage"` // Whether to enable the feature of shipping organization members’ operation logs to the organization admin account or the trusted service admin account (0: Not enabled; 1: Enabled. This feature can only be enabled by the organization admin account or the trusted service admin account) TrackForAllMembers *uint64 `json:"TrackForAllMembers,omitempty" name:"TrackForAllMembers"` }
func NewCreateAuditTrackRequest ¶
func NewCreateAuditTrackRequest() (request *CreateAuditTrackRequest)
func (*CreateAuditTrackRequest) FromJsonString ¶
func (r *CreateAuditTrackRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAuditTrackRequest) ToJsonString ¶
func (r *CreateAuditTrackRequest) ToJsonString() string
type CreateAuditTrackRequestParams ¶
type CreateAuditTrackRequestParams struct { // Tracking set name, which can only contain 3-48 letters, digits, hyphens, and underscores. Name *string `json:"Name,omitempty" name:"Name"` // Tracking set event type (`Read`: Read; `Write`: Write; `*`: All) ActionType *string `json:"ActionType,omitempty" name:"ActionType"` // The product to which the tracking set event belongs. The value can be a single product such as `cos`, or `*` that indicates all products. ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` // Tracking set status (0: Not enabled; 1: Enabled) Status *uint64 `json:"Status,omitempty" name:"Status"` // The list of API names of tracking set events. When `ResourceType` is `*`, the value of `EventNames` must be `*`. When `ResourceType` is a specified product, the value of `EventNames` can be `*`. When `ResourceType` is `cos` or `cls`, up to 10 APIs are supported. EventNames []*string `json:"EventNames,omitempty" name:"EventNames"` // Storage type of shipped data. Valid values: `cos`, `cls`. Storage *Storage `json:"Storage,omitempty" name:"Storage"` // Whether to enable the feature of shipping organization members’ operation logs to the organization admin account or the trusted service admin account (0: Not enabled; 1: Enabled. This feature can only be enabled by the organization admin account or the trusted service admin account) TrackForAllMembers *uint64 `json:"TrackForAllMembers,omitempty" name:"TrackForAllMembers"` }
Predefined struct for user
type CreateAuditTrackResponse ¶
type CreateAuditTrackResponse struct { *tchttp.BaseResponse Response *CreateAuditTrackResponseParams `json:"Response"` }
func NewCreateAuditTrackResponse ¶
func NewCreateAuditTrackResponse() (response *CreateAuditTrackResponse)
func (*CreateAuditTrackResponse) FromJsonString ¶
func (r *CreateAuditTrackResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAuditTrackResponse) ToJsonString ¶
func (r *CreateAuditTrackResponse) ToJsonString() string
type CreateAuditTrackResponseParams ¶
type CreateAuditTrackResponseParams struct { // Tracking set ID TrackId *uint64 `json:"TrackId,omitempty" name:"TrackId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteAuditRequest ¶
type DeleteAuditRequest struct { *tchttp.BaseRequest // Tracking set name AuditName *string `json:"AuditName,omitempty" name:"AuditName"` }
func NewDeleteAuditRequest ¶
func NewDeleteAuditRequest() (request *DeleteAuditRequest)
func (*DeleteAuditRequest) FromJsonString ¶
func (r *DeleteAuditRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteAuditRequest) ToJsonString ¶
func (r *DeleteAuditRequest) ToJsonString() string
type DeleteAuditRequestParams ¶
type DeleteAuditRequestParams struct { // Tracking set name AuditName *string `json:"AuditName,omitempty" name:"AuditName"` }
Predefined struct for user
type DeleteAuditResponse ¶
type DeleteAuditResponse struct { *tchttp.BaseResponse Response *DeleteAuditResponseParams `json:"Response"` }
func NewDeleteAuditResponse ¶
func NewDeleteAuditResponse() (response *DeleteAuditResponse)
func (*DeleteAuditResponse) FromJsonString ¶
func (r *DeleteAuditResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteAuditResponse) ToJsonString ¶
func (r *DeleteAuditResponse) ToJsonString() string
type DeleteAuditResponseParams ¶
type DeleteAuditResponseParams struct { // Whether deletion succeeded IsSuccess *int64 `json:"IsSuccess,omitempty" name:"IsSuccess"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteAuditTrackRequest ¶
type DeleteAuditTrackRequest struct { *tchttp.BaseRequest // Tracking set ID TrackId *uint64 `json:"TrackId,omitempty" name:"TrackId"` }
func NewDeleteAuditTrackRequest ¶
func NewDeleteAuditTrackRequest() (request *DeleteAuditTrackRequest)
func (*DeleteAuditTrackRequest) FromJsonString ¶
func (r *DeleteAuditTrackRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteAuditTrackRequest) ToJsonString ¶
func (r *DeleteAuditTrackRequest) ToJsonString() string
type DeleteAuditTrackRequestParams ¶
type DeleteAuditTrackRequestParams struct { // Tracking set ID TrackId *uint64 `json:"TrackId,omitempty" name:"TrackId"` }
Predefined struct for user
type DeleteAuditTrackResponse ¶
type DeleteAuditTrackResponse struct { *tchttp.BaseResponse Response *DeleteAuditTrackResponseParams `json:"Response"` }
func NewDeleteAuditTrackResponse ¶
func NewDeleteAuditTrackResponse() (response *DeleteAuditTrackResponse)
func (*DeleteAuditTrackResponse) FromJsonString ¶
func (r *DeleteAuditTrackResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteAuditTrackResponse) ToJsonString ¶
func (r *DeleteAuditTrackResponse) ToJsonString() string
type DeleteAuditTrackResponseParams ¶
type DeleteAuditTrackResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeAuditRequest ¶
type DescribeAuditRequest struct { *tchttp.BaseRequest // Tracking set name AuditName *string `json:"AuditName,omitempty" name:"AuditName"` }
func NewDescribeAuditRequest ¶
func NewDescribeAuditRequest() (request *DescribeAuditRequest)
func (*DescribeAuditRequest) FromJsonString ¶
func (r *DescribeAuditRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAuditRequest) ToJsonString ¶
func (r *DescribeAuditRequest) ToJsonString() string
type DescribeAuditRequestParams ¶
type DescribeAuditRequestParams struct { // Tracking set name AuditName *string `json:"AuditName,omitempty" name:"AuditName"` }
Predefined struct for user
type DescribeAuditResponse ¶
type DescribeAuditResponse struct { *tchttp.BaseResponse Response *DescribeAuditResponseParams `json:"Response"` }
func NewDescribeAuditResponse ¶
func NewDescribeAuditResponse() (response *DescribeAuditResponse)
func (*DescribeAuditResponse) FromJsonString ¶
func (r *DescribeAuditResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAuditResponse) ToJsonString ¶
func (r *DescribeAuditResponse) ToJsonString() string
type DescribeAuditResponseParams ¶
type DescribeAuditResponseParams struct { // Whether to enable CMQ message notification. 1: Yes; 0: No. IsEnableCmqNotify *int64 `json:"IsEnableCmqNotify,omitempty" name:"IsEnableCmqNotify"` // Manages the read/write attribute of event. Valid values: 1 (read-only), 2 (write-only), 3 (read/write) ReadWriteAttribute *int64 `json:"ReadWriteAttribute,omitempty" name:"ReadWriteAttribute"` // Globally unique CMK ID. KeyId *string `json:"KeyId,omitempty" name:"KeyId"` // Tracking set status. 1: enabled, 0: disabled. AuditStatus *int64 `json:"AuditStatus,omitempty" name:"AuditStatus"` // Tracking set name. AuditName *string `json:"AuditName,omitempty" name:"AuditName"` // COS bucket region. CosRegion *string `json:"CosRegion,omitempty" name:"CosRegion"` // Queue name. CmqQueueName *string `json:"CmqQueueName,omitempty" name:"CmqQueueName"` // CMK alias. KmsAlias *string `json:"KmsAlias,omitempty" name:"KmsAlias"` // KMS region. KmsRegion *string `json:"KmsRegion,omitempty" name:"KmsRegion"` // Whether to enable KMS encryption. 1: Yes, 0: No. If KMS encryption is enabled, the data will be encrypted when it is delivered to COS. IsEnableKmsEncry *int64 `json:"IsEnableKmsEncry,omitempty" name:"IsEnableKmsEncry"` // COS bucket name. CosBucketName *string `json:"CosBucketName,omitempty" name:"CosBucketName"` // Queue region. CmqRegion *string `json:"CmqRegion,omitempty" name:"CmqRegion"` // Log prefix. LogFilePrefix *string `json:"LogFilePrefix,omitempty" name:"LogFilePrefix"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeAuditTrackRequest ¶
type DescribeAuditTrackRequest struct { *tchttp.BaseRequest // Tracking set ID TrackId *uint64 `json:"TrackId,omitempty" name:"TrackId"` }
func NewDescribeAuditTrackRequest ¶
func NewDescribeAuditTrackRequest() (request *DescribeAuditTrackRequest)
func (*DescribeAuditTrackRequest) FromJsonString ¶
func (r *DescribeAuditTrackRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAuditTrackRequest) ToJsonString ¶
func (r *DescribeAuditTrackRequest) ToJsonString() string
type DescribeAuditTrackRequestParams ¶
type DescribeAuditTrackRequestParams struct { // Tracking set ID TrackId *uint64 `json:"TrackId,omitempty" name:"TrackId"` }
Predefined struct for user
type DescribeAuditTrackResponse ¶
type DescribeAuditTrackResponse struct { *tchttp.BaseResponse Response *DescribeAuditTrackResponseParams `json:"Response"` }
func NewDescribeAuditTrackResponse ¶
func NewDescribeAuditTrackResponse() (response *DescribeAuditTrackResponse)
func (*DescribeAuditTrackResponse) FromJsonString ¶
func (r *DescribeAuditTrackResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAuditTrackResponse) ToJsonString ¶
func (r *DescribeAuditTrackResponse) ToJsonString() string
type DescribeAuditTrackResponseParams ¶
type DescribeAuditTrackResponseParams struct { // Tracking set name Name *string `json:"Name,omitempty" name:"Name"` // Tracking set event type (`Read`: Read; `Write`: Write; `*`: All) ActionType *string `json:"ActionType,omitempty" name:"ActionType"` // The product to which the tracking set event belongs, such as `cos`, or `*` that indicates all products ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` // Tracking set status (0: Not enabled; 1: Enabled) Status *uint64 `json:"Status,omitempty" name:"Status"` // The list of API names of tracking set events (`*`: All) EventNames []*string `json:"EventNames,omitempty" name:"EventNames"` // Storage type of shipped data. Valid values: `cos`, `cls`. Storage *Storage `json:"Storage,omitempty" name:"Storage"` // Creation time of the tracking set CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Whether to enable the feature of shipping organization members’ operation logs to the organization admin account or the trusted service admin account // Note: This field may return null, indicating that no valid values can be obtained. TrackForAllMembers *uint64 `json:"TrackForAllMembers,omitempty" name:"TrackForAllMembers"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeAuditTracksRequest ¶
type DescribeAuditTracksRequest struct { *tchttp.BaseRequest // Page number PageNumber *uint64 `json:"PageNumber,omitempty" name:"PageNumber"` // The number of tracking sets per page PageSize *uint64 `json:"PageSize,omitempty" name:"PageSize"` }
func NewDescribeAuditTracksRequest ¶
func NewDescribeAuditTracksRequest() (request *DescribeAuditTracksRequest)
func (*DescribeAuditTracksRequest) FromJsonString ¶
func (r *DescribeAuditTracksRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAuditTracksRequest) ToJsonString ¶
func (r *DescribeAuditTracksRequest) ToJsonString() string
type DescribeAuditTracksRequestParams ¶
type DescribeAuditTracksRequestParams struct { // Page number PageNumber *uint64 `json:"PageNumber,omitempty" name:"PageNumber"` // The number of tracking sets per page PageSize *uint64 `json:"PageSize,omitempty" name:"PageSize"` }
Predefined struct for user
type DescribeAuditTracksResponse ¶
type DescribeAuditTracksResponse struct { *tchttp.BaseResponse Response *DescribeAuditTracksResponseParams `json:"Response"` }
func NewDescribeAuditTracksResponse ¶
func NewDescribeAuditTracksResponse() (response *DescribeAuditTracksResponse)
func (*DescribeAuditTracksResponse) FromJsonString ¶
func (r *DescribeAuditTracksResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAuditTracksResponse) ToJsonString ¶
func (r *DescribeAuditTracksResponse) ToJsonString() string
type DescribeAuditTracksResponseParams ¶
type DescribeAuditTracksResponseParams struct { // Tracking set list Tracks []*Tracks `json:"Tracks,omitempty" name:"Tracks"` // Total number of tracking sets TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeEventsRequest ¶
type DescribeEventsRequest struct { *tchttp.BaseRequest // Start timestamp in seconds (cannot be 90 days after the current time). StartTime *uint64 `json:"StartTime,omitempty" name:"StartTime"` // End timestamp in seconds (the time range for query is less than 30 days). EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"` // Credential for viewing more logs. NextToken *uint64 `json:"NextToken,omitempty" name:"NextToken"` // Max number of returned logs (up to 50). MaxResults *uint64 `json:"MaxResults,omitempty" name:"MaxResults"` // Search condition. Valid values: `RequestId`, `EventName`, `ActionType` (write/read), `PrincipalId` (sub-account), `ResourceType`, `ResourceName`, `AccessKeyId`, `SensitiveAction`, `ApiErrorCode`, `CamErrorCode`, and `Tags` (Format of AttributeValue: [{"key":"*","value":"*"}]) LookupAttributes []*LookupAttribute `json:"LookupAttributes,omitempty" name:"LookupAttributes"` // Whether to return the IP location. `1`: yes, `0`: no. IsReturnLocation *uint64 `json:"IsReturnLocation,omitempty" name:"IsReturnLocation"` }
func NewDescribeEventsRequest ¶
func NewDescribeEventsRequest() (request *DescribeEventsRequest)
func (*DescribeEventsRequest) FromJsonString ¶
func (r *DescribeEventsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeEventsRequest) ToJsonString ¶
func (r *DescribeEventsRequest) ToJsonString() string
type DescribeEventsRequestParams ¶
type DescribeEventsRequestParams struct { // Start timestamp in seconds (cannot be 90 days after the current time). StartTime *uint64 `json:"StartTime,omitempty" name:"StartTime"` // End timestamp in seconds (the time range for query is less than 30 days). EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"` // Credential for viewing more logs. NextToken *uint64 `json:"NextToken,omitempty" name:"NextToken"` // Max number of returned logs (up to 50). MaxResults *uint64 `json:"MaxResults,omitempty" name:"MaxResults"` // Search condition. Valid values: `RequestId`, `EventName`, `ActionType` (write/read), `PrincipalId` (sub-account), `ResourceType`, `ResourceName`, `AccessKeyId`, `SensitiveAction`, `ApiErrorCode`, `CamErrorCode`, and `Tags` (Format of AttributeValue: [{"key":"*","value":"*"}]) LookupAttributes []*LookupAttribute `json:"LookupAttributes,omitempty" name:"LookupAttributes"` // Whether to return the IP location. `1`: yes, `0`: no. IsReturnLocation *uint64 `json:"IsReturnLocation,omitempty" name:"IsReturnLocation"` }
Predefined struct for user
type DescribeEventsResponse ¶
type DescribeEventsResponse struct { *tchttp.BaseResponse Response *DescribeEventsResponseParams `json:"Response"` }
func NewDescribeEventsResponse ¶
func NewDescribeEventsResponse() (response *DescribeEventsResponse)
func (*DescribeEventsResponse) FromJsonString ¶
func (r *DescribeEventsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeEventsResponse) ToJsonString ¶
func (r *DescribeEventsResponse) ToJsonString() string
type DescribeEventsResponseParams ¶
type DescribeEventsResponseParams struct { // Whether the log list has come to an end. `true`: Yes. Pagination is not required. ListOver *bool `json:"ListOver,omitempty" name:"ListOver"` // Credential for viewing more logs. NextToken *uint64 `json:"NextToken,omitempty" name:"NextToken"` // Logset. // Note: `null` may be returned for this field, indicating that no valid values can be obtained. Events []*Event `json:"Events,omitempty" name:"Events"` // This parameter has been deprecated. Please use `ListOver` and `NextToken` for pagination, and read data of the next page when the value of `ListOver` is `false`. // Note: This field may return null, indicating that no valid values can be obtained. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type Event ¶
type Event struct { // Log ID EventId *string `json:"EventId,omitempty" name:"EventId"` // Username Username *string `json:"Username,omitempty" name:"Username"` // Event Time EventTime *string `json:"EventTime,omitempty" name:"EventTime"` // Log details CloudAuditEvent *string `json:"CloudAuditEvent,omitempty" name:"CloudAuditEvent"` // Description of resource type in Chinese (please use this field as required; if you are using other languages, ignore this field) ResourceTypeCn *string `json:"ResourceTypeCn,omitempty" name:"ResourceTypeCn"` // Authentication error code ErrorCode *int64 `json:"ErrorCode,omitempty" name:"ErrorCode"` // Event name EventName *string `json:"EventName,omitempty" name:"EventName"` // Certificate ID // Note: `null` may be returned for this field, indicating that no valid values can be obtained. SecretId *string `json:"SecretId,omitempty" name:"SecretId"` // Request source EventSource *string `json:"EventSource,omitempty" name:"EventSource"` // Request ID RequestID *string `json:"RequestID,omitempty" name:"RequestID"` // Resource region ResourceRegion *string `json:"ResourceRegion,omitempty" name:"ResourceRegion"` // Root account ID AccountID *int64 `json:"AccountID,omitempty" name:"AccountID"` // Source IP // Note: `null` may be returned for this field, indicating that no valid values can be obtained. SourceIPAddress *string `json:"SourceIPAddress,omitempty" name:"SourceIPAddress"` // Description of event name in Chinese (please use this field as required; if you are using other languages, ignore this field) EventNameCn *string `json:"EventNameCn,omitempty" name:"EventNameCn"` // Resource pair Resources *Resource `json:"Resources,omitempty" name:"Resources"` // Event region EventRegion *string `json:"EventRegion,omitempty" name:"EventRegion"` // IP location Location *string `json:"Location,omitempty" name:"Location"` }
type GetAttributeKeyRequest ¶
type GetAttributeKeyRequest struct { *tchttp.BaseRequest // Website type. Valid values: zh, en. If this parameter is left empty, `zh` will be used by default WebsiteType *string `json:"WebsiteType,omitempty" name:"WebsiteType"` }
func NewGetAttributeKeyRequest ¶
func NewGetAttributeKeyRequest() (request *GetAttributeKeyRequest)
func (*GetAttributeKeyRequest) FromJsonString ¶
func (r *GetAttributeKeyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetAttributeKeyRequest) ToJsonString ¶
func (r *GetAttributeKeyRequest) ToJsonString() string
type GetAttributeKeyRequestParams ¶
type GetAttributeKeyRequestParams struct { // Website type. Valid values: zh, en. If this parameter is left empty, `zh` will be used by default WebsiteType *string `json:"WebsiteType,omitempty" name:"WebsiteType"` }
Predefined struct for user
type GetAttributeKeyResponse ¶
type GetAttributeKeyResponse struct { *tchttp.BaseResponse Response *GetAttributeKeyResponseParams `json:"Response"` }
func NewGetAttributeKeyResponse ¶
func NewGetAttributeKeyResponse() (response *GetAttributeKeyResponse)
func (*GetAttributeKeyResponse) FromJsonString ¶
func (r *GetAttributeKeyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetAttributeKeyResponse) ToJsonString ¶
func (r *GetAttributeKeyResponse) ToJsonString() string
type GetAttributeKeyResponseParams ¶
type GetAttributeKeyResponseParams struct { // Valid values of `AttributeKey` AttributeKeyDetails []*AttributeKeyDetail `json:"AttributeKeyDetails,omitempty" name:"AttributeKeyDetails"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type InquireAuditCreditRequest ¶
type InquireAuditCreditRequest struct {
*tchttp.BaseRequest
}
func NewInquireAuditCreditRequest ¶
func NewInquireAuditCreditRequest() (request *InquireAuditCreditRequest)
func (*InquireAuditCreditRequest) FromJsonString ¶
func (r *InquireAuditCreditRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquireAuditCreditRequest) ToJsonString ¶
func (r *InquireAuditCreditRequest) ToJsonString() string
type InquireAuditCreditRequestParams ¶
type InquireAuditCreditRequestParams struct { }
Predefined struct for user
type InquireAuditCreditResponse ¶
type InquireAuditCreditResponse struct { *tchttp.BaseResponse Response *InquireAuditCreditResponseParams `json:"Response"` }
func NewInquireAuditCreditResponse ¶
func NewInquireAuditCreditResponse() (response *InquireAuditCreditResponse)
func (*InquireAuditCreditResponse) FromJsonString ¶
func (r *InquireAuditCreditResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquireAuditCreditResponse) ToJsonString ¶
func (r *InquireAuditCreditResponse) ToJsonString() string
type InquireAuditCreditResponseParams ¶
type InquireAuditCreditResponseParams struct { // Number of tracking sets that can be created AuditAmount *int64 `json:"AuditAmount,omitempty" name:"AuditAmount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ListAuditsRequest ¶
type ListAuditsRequest struct {
*tchttp.BaseRequest
}
func NewListAuditsRequest ¶
func NewListAuditsRequest() (request *ListAuditsRequest)
func (*ListAuditsRequest) FromJsonString ¶
func (r *ListAuditsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListAuditsRequest) ToJsonString ¶
func (r *ListAuditsRequest) ToJsonString() string
type ListAuditsResponse ¶
type ListAuditsResponse struct { *tchttp.BaseResponse Response *ListAuditsResponseParams `json:"Response"` }
func NewListAuditsResponse ¶
func NewListAuditsResponse() (response *ListAuditsResponse)
func (*ListAuditsResponse) FromJsonString ¶
func (r *ListAuditsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListAuditsResponse) ToJsonString ¶
func (r *ListAuditsResponse) ToJsonString() string
type ListAuditsResponseParams ¶
type ListAuditsResponseParams struct { // Set of queried tracking set summaries // Note: This field may return null, indicating that no valid values can be obtained. AuditSummarys []*AuditSummary `json:"AuditSummarys,omitempty" name:"AuditSummarys"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ListCmqEnableRegionRequest ¶
type ListCmqEnableRegionRequest struct { *tchttp.BaseRequest // Website type. zh: Chinese mainland (default); en: outside Chinese mainland. WebsiteType *string `json:"WebsiteType,omitempty" name:"WebsiteType"` }
func NewListCmqEnableRegionRequest ¶
func NewListCmqEnableRegionRequest() (request *ListCmqEnableRegionRequest)
func (*ListCmqEnableRegionRequest) FromJsonString ¶
func (r *ListCmqEnableRegionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListCmqEnableRegionRequest) ToJsonString ¶
func (r *ListCmqEnableRegionRequest) ToJsonString() string
type ListCmqEnableRegionRequestParams ¶
type ListCmqEnableRegionRequestParams struct { // Website type. zh: Chinese mainland (default); en: outside Chinese mainland. WebsiteType *string `json:"WebsiteType,omitempty" name:"WebsiteType"` }
Predefined struct for user
type ListCmqEnableRegionResponse ¶
type ListCmqEnableRegionResponse struct { *tchttp.BaseResponse Response *ListCmqEnableRegionResponseParams `json:"Response"` }
func NewListCmqEnableRegionResponse ¶
func NewListCmqEnableRegionResponse() (response *ListCmqEnableRegionResponse)
func (*ListCmqEnableRegionResponse) FromJsonString ¶
func (r *ListCmqEnableRegionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListCmqEnableRegionResponse) ToJsonString ¶
func (r *ListCmqEnableRegionResponse) ToJsonString() string
type ListCmqEnableRegionResponseParams ¶
type ListCmqEnableRegionResponseParams struct { // CloudAudit-enabled CMQ AZs EnableRegions []*CmqRegionInfo `json:"EnableRegions,omitempty" name:"EnableRegions"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ListCosEnableRegionRequest ¶
type ListCosEnableRegionRequest struct { *tchttp.BaseRequest // Website type. zh: Chinese mainland (default); en: outside Chinese mainland. WebsiteType *string `json:"WebsiteType,omitempty" name:"WebsiteType"` }
func NewListCosEnableRegionRequest ¶
func NewListCosEnableRegionRequest() (request *ListCosEnableRegionRequest)
func (*ListCosEnableRegionRequest) FromJsonString ¶
func (r *ListCosEnableRegionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListCosEnableRegionRequest) ToJsonString ¶
func (r *ListCosEnableRegionRequest) ToJsonString() string
type ListCosEnableRegionRequestParams ¶
type ListCosEnableRegionRequestParams struct { // Website type. zh: Chinese mainland (default); en: outside Chinese mainland. WebsiteType *string `json:"WebsiteType,omitempty" name:"WebsiteType"` }
Predefined struct for user
type ListCosEnableRegionResponse ¶
type ListCosEnableRegionResponse struct { *tchttp.BaseResponse Response *ListCosEnableRegionResponseParams `json:"Response"` }
func NewListCosEnableRegionResponse ¶
func NewListCosEnableRegionResponse() (response *ListCosEnableRegionResponse)
func (*ListCosEnableRegionResponse) FromJsonString ¶
func (r *ListCosEnableRegionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListCosEnableRegionResponse) ToJsonString ¶
func (r *ListCosEnableRegionResponse) ToJsonString() string
type ListCosEnableRegionResponseParams ¶
type ListCosEnableRegionResponseParams struct { // CloudAudit-enabled COS AZs EnableRegions []*CosRegionInfo `json:"EnableRegions,omitempty" name:"EnableRegions"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type LookUpEventsRequest ¶
type LookUpEventsRequest struct { *tchttp.BaseRequest // Start time StartTime *int64 `json:"StartTime,omitempty" name:"StartTime"` // End time EndTime *int64 `json:"EndTime,omitempty" name:"EndTime"` // Search criteria LookupAttributes []*LookupAttribute `json:"LookupAttributes,omitempty" name:"LookupAttributes"` // Credential for viewing more logs NextToken *string `json:"NextToken,omitempty" name:"NextToken"` // Maximum number of logs to be returned MaxResults *int64 `json:"MaxResults,omitempty" name:"MaxResults"` // CloudAudit mode. Valid values: standard, quick. Default value: standard Mode *string `json:"Mode,omitempty" name:"Mode"` }
func NewLookUpEventsRequest ¶
func NewLookUpEventsRequest() (request *LookUpEventsRequest)
func (*LookUpEventsRequest) FromJsonString ¶
func (r *LookUpEventsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*LookUpEventsRequest) ToJsonString ¶
func (r *LookUpEventsRequest) ToJsonString() string
type LookUpEventsRequestParams ¶
type LookUpEventsRequestParams struct { // Start time StartTime *int64 `json:"StartTime,omitempty" name:"StartTime"` // End time EndTime *int64 `json:"EndTime,omitempty" name:"EndTime"` // Search criteria LookupAttributes []*LookupAttribute `json:"LookupAttributes,omitempty" name:"LookupAttributes"` // Credential for viewing more logs NextToken *string `json:"NextToken,omitempty" name:"NextToken"` // Maximum number of logs to be returned MaxResults *int64 `json:"MaxResults,omitempty" name:"MaxResults"` // CloudAudit mode. Valid values: standard, quick. Default value: standard Mode *string `json:"Mode,omitempty" name:"Mode"` }
Predefined struct for user
type LookUpEventsResponse ¶
type LookUpEventsResponse struct { *tchttp.BaseResponse Response *LookUpEventsResponseParams `json:"Response"` }
func NewLookUpEventsResponse ¶
func NewLookUpEventsResponse() (response *LookUpEventsResponse)
func (*LookUpEventsResponse) FromJsonString ¶
func (r *LookUpEventsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*LookUpEventsResponse) ToJsonString ¶
func (r *LookUpEventsResponse) ToJsonString() string
type LookUpEventsResponseParams ¶
type LookUpEventsResponseParams struct { // Credential for viewing more logs // Note: This field may return null, indicating that no valid values can be obtained. NextToken *string `json:"NextToken,omitempty" name:"NextToken"` // Logset // Note: This field may return null, indicating that no valid values can be obtained. Events []*Event `json:"Events,omitempty" name:"Events"` // Whether the logset ends // Note: This field may return null, indicating that no valid values can be obtained. ListOver *bool `json:"ListOver,omitempty" name:"ListOver"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type LookupAttribute ¶
type LookupAttribute struct { // Valid values: RequestId, EventName, ReadOnly, Username, ResourceType, ResourceName, AccessKeyId, and EventId // Note: `null` may be returned for this field, indicating that no valid values can be obtained. AttributeKey *string `json:"AttributeKey,omitempty" name:"AttributeKey"` // Value of `AttributeValue` // Note: `null` may be returned for this field, indicating that no valid values can be obtained. AttributeValue *string `json:"AttributeValue,omitempty" name:"AttributeValue"` }
type ModifyAuditTrackRequest ¶
type ModifyAuditTrackRequest struct { *tchttp.BaseRequest // Tracking set ID TrackId *uint64 `json:"TrackId,omitempty" name:"TrackId"` // Tracking set name, which can only contain 3-48 letters, digits, hyphens, and underscores. Name *string `json:"Name,omitempty" name:"Name"` // Tracking set event type (`Read`: Read; `Write`: Write; `*`: All) ActionType *string `json:"ActionType,omitempty" name:"ActionType"` // The product to which the tracking set event belongs. The value can be a single product such as `cos`, or `*` that indicates all products. ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` // Tracking set status (0: Not enabled; 1: Enabled) Status *uint64 `json:"Status,omitempty" name:"Status"` // The list of API names of tracking set events. When `ResourceType` is `*`, the value of `EventNames` must be `*`. When `ResourceType` is a specified product, the value of `EventNames` can be `*`. When `ResourceType` is `cos` or `cls`, up to 10 APIs are supported. EventNames []*string `json:"EventNames,omitempty" name:"EventNames"` // Storage type of shipped data. Valid values: `cos`, `cls`. Storage *Storage `json:"Storage,omitempty" name:"Storage"` // Whether to enable the feature of shipping organization members’ operation logs to the organization admin account or the trusted service admin account (0: Not enabled; 1: Enabled. This feature can only be enabled by the organization admin account or the trusted service admin account) TrackForAllMembers *uint64 `json:"TrackForAllMembers,omitempty" name:"TrackForAllMembers"` }
func NewModifyAuditTrackRequest ¶
func NewModifyAuditTrackRequest() (request *ModifyAuditTrackRequest)
func (*ModifyAuditTrackRequest) FromJsonString ¶
func (r *ModifyAuditTrackRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAuditTrackRequest) ToJsonString ¶
func (r *ModifyAuditTrackRequest) ToJsonString() string
type ModifyAuditTrackRequestParams ¶
type ModifyAuditTrackRequestParams struct { // Tracking set ID TrackId *uint64 `json:"TrackId,omitempty" name:"TrackId"` // Tracking set name, which can only contain 3-48 letters, digits, hyphens, and underscores. Name *string `json:"Name,omitempty" name:"Name"` // Tracking set event type (`Read`: Read; `Write`: Write; `*`: All) ActionType *string `json:"ActionType,omitempty" name:"ActionType"` // The product to which the tracking set event belongs. The value can be a single product such as `cos`, or `*` that indicates all products. ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` // Tracking set status (0: Not enabled; 1: Enabled) Status *uint64 `json:"Status,omitempty" name:"Status"` // The list of API names of tracking set events. When `ResourceType` is `*`, the value of `EventNames` must be `*`. When `ResourceType` is a specified product, the value of `EventNames` can be `*`. When `ResourceType` is `cos` or `cls`, up to 10 APIs are supported. EventNames []*string `json:"EventNames,omitempty" name:"EventNames"` // Storage type of shipped data. Valid values: `cos`, `cls`. Storage *Storage `json:"Storage,omitempty" name:"Storage"` // Whether to enable the feature of shipping organization members’ operation logs to the organization admin account or the trusted service admin account (0: Not enabled; 1: Enabled. This feature can only be enabled by the organization admin account or the trusted service admin account) TrackForAllMembers *uint64 `json:"TrackForAllMembers,omitempty" name:"TrackForAllMembers"` }
Predefined struct for user
type ModifyAuditTrackResponse ¶
type ModifyAuditTrackResponse struct { *tchttp.BaseResponse Response *ModifyAuditTrackResponseParams `json:"Response"` }
func NewModifyAuditTrackResponse ¶
func NewModifyAuditTrackResponse() (response *ModifyAuditTrackResponse)
func (*ModifyAuditTrackResponse) FromJsonString ¶
func (r *ModifyAuditTrackResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAuditTrackResponse) ToJsonString ¶
func (r *ModifyAuditTrackResponse) ToJsonString() string
type ModifyAuditTrackResponseParams ¶
type ModifyAuditTrackResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type Resource ¶
type Resource struct { // Resource type ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` // Resource name // Note: `null` may be returned for this field, indicating that no valid values can be obtained. ResourceName *string `json:"ResourceName,omitempty" name:"ResourceName"` }
type StartLoggingRequest ¶
type StartLoggingRequest struct { *tchttp.BaseRequest // Tracking set name AuditName *string `json:"AuditName,omitempty" name:"AuditName"` }
func NewStartLoggingRequest ¶
func NewStartLoggingRequest() (request *StartLoggingRequest)
func (*StartLoggingRequest) FromJsonString ¶
func (r *StartLoggingRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartLoggingRequest) ToJsonString ¶
func (r *StartLoggingRequest) ToJsonString() string
type StartLoggingRequestParams ¶
type StartLoggingRequestParams struct { // Tracking set name AuditName *string `json:"AuditName,omitempty" name:"AuditName"` }
Predefined struct for user
type StartLoggingResponse ¶
type StartLoggingResponse struct { *tchttp.BaseResponse Response *StartLoggingResponseParams `json:"Response"` }
func NewStartLoggingResponse ¶
func NewStartLoggingResponse() (response *StartLoggingResponse)
func (*StartLoggingResponse) FromJsonString ¶
func (r *StartLoggingResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartLoggingResponse) ToJsonString ¶
func (r *StartLoggingResponse) ToJsonString() string
type StartLoggingResponseParams ¶
type StartLoggingResponseParams struct { // Whether enablement succeeded IsSuccess *int64 `json:"IsSuccess,omitempty" name:"IsSuccess"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type StopLoggingRequest ¶
type StopLoggingRequest struct { *tchttp.BaseRequest // Tracking set name AuditName *string `json:"AuditName,omitempty" name:"AuditName"` }
func NewStopLoggingRequest ¶
func NewStopLoggingRequest() (request *StopLoggingRequest)
func (*StopLoggingRequest) FromJsonString ¶
func (r *StopLoggingRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopLoggingRequest) ToJsonString ¶
func (r *StopLoggingRequest) ToJsonString() string
type StopLoggingRequestParams ¶
type StopLoggingRequestParams struct { // Tracking set name AuditName *string `json:"AuditName,omitempty" name:"AuditName"` }
Predefined struct for user
type StopLoggingResponse ¶
type StopLoggingResponse struct { *tchttp.BaseResponse Response *StopLoggingResponseParams `json:"Response"` }
func NewStopLoggingResponse ¶
func NewStopLoggingResponse() (response *StopLoggingResponse)
func (*StopLoggingResponse) FromJsonString ¶
func (r *StopLoggingResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopLoggingResponse) ToJsonString ¶
func (r *StopLoggingResponse) ToJsonString() string
type StopLoggingResponseParams ¶
type StopLoggingResponseParams struct { // Whether disablement succeeded IsSuccess *int64 `json:"IsSuccess,omitempty" name:"IsSuccess"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type Storage ¶
type Storage struct { // Storage type (Valid values: cos, cls) StorageType *string `json:"StorageType,omitempty" name:"StorageType"` // Storage region StorageRegion *string `json:"StorageRegion,omitempty" name:"StorageRegion"` // Storage name. For COS, the storage name is the custom bucket name, which can contain up to 50 lowercase letters, digits, and hyphens. It cannot contain "-APPID" and cannot start or end with a hyphen. For CLS, the storage name is the log topic ID, which can contain 1-50 characters. StorageName *string `json:"StorageName,omitempty" name:"StorageName"` // Storage directory prefix. The COS log file prefix can only contain 3-40 letters and digits. StoragePrefix *string `json:"StoragePrefix,omitempty" name:"StoragePrefix"` }
type Tracks ¶
type Tracks struct { // Tracking set name Name *string `json:"Name,omitempty" name:"Name"` // Tracking set event type (`Read`: Read; `Write`: Write; `*`: All) ActionType *string `json:"ActionType,omitempty" name:"ActionType"` // The product to which the tracking set event belongs, such as `cos`, or `*` that indicates all products ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` // Tracking set status (0: Not enabled; 1: Enabled) Status *uint64 `json:"Status,omitempty" name:"Status"` // The list of API names of tracking set events (`*`: All) EventNames []*string `json:"EventNames,omitempty" name:"EventNames"` // Storage type of shipped data. Valid values: `cos`, `cls`. Storage *Storage `json:"Storage,omitempty" name:"Storage"` // Creation time of the tracking set CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Tracking set ID TrackId *uint64 `json:"TrackId,omitempty" name:"TrackId"` }
type UpdateAuditRequest ¶
type UpdateAuditRequest struct { *tchttp.BaseRequest // Tracking set name AuditName *string `json:"AuditName,omitempty" name:"AuditName"` // Whether to enable CMQ message notification. 1: Yes; 0: No. Only CMQ queue service is currently supported. If CMQ message notification is enabled, CloudAudit will deliver your log contents to the designated queue in the specified region in real time. IsEnableCmqNotify *int64 `json:"IsEnableCmqNotify,omitempty" name:"IsEnableCmqNotify"` // Manages the read/write attribute of event. Valid values: 1 (read-only), 2 (write-only), 3 (read/write). ReadWriteAttribute *int64 `json:"ReadWriteAttribute,omitempty" name:"ReadWriteAttribute"` // Globally unique ID of the CMK. This value is required if it is not a newly created KMS element. It can be obtained through `ListKeyAliasByRegion`. CloudAudit will not verify the validity of the `KeyId`. Enter it carefully to avoid data loss. KeyId *string `json:"KeyId,omitempty" name:"KeyId"` // COS region. Supported regions can be queried through the `ListCosEnableRegion` API. CosRegion *string `json:"CosRegion,omitempty" name:"CosRegion"` // Queue name, which must begin with a letter and can contain up to 64 letters, digits, and dashes (-). This field is required if the value of `IsEnableCmqNotify` is 1. If a queue is not newly created, CloudAudit will not verify whether it actually exists. Enter the name with caution to avoid log delivery failure and consequent data loss. CmqQueueName *string `json:"CmqQueueName,omitempty" name:"CmqQueueName"` // Whether to create a COS bucket. 1: Yes; 0: No. IsCreateNewBucket *int64 `json:"IsCreateNewBucket,omitempty" name:"IsCreateNewBucket"` // KMS region. Currently supported regions can be obtained through `ListKmsEnableRegion`. This must be the same as the COS region. KmsRegion *string `json:"KmsRegion,omitempty" name:"KmsRegion"` // Whether to enable KMS encryption. 1: Yes, 0: No. If KMS encryption is enabled, the data will be encrypted when delivered to COS. IsEnableKmsEncry *int64 `json:"IsEnableKmsEncry,omitempty" name:"IsEnableKmsEncry"` // User-defined COS bucket name, which can only contain 1–40 lowercase letters (a–z), digits (0–9), and dashes (-) and cannot begin or end with "-". If a bucket is not newly created, CloudAudit will not verify whether it actually exists. Enter the name with caution to avoid log delivery failure and consequent data loss. CosBucketName *string `json:"CosBucketName,omitempty" name:"CosBucketName"` // Region where the queue is located. Supported CMQ regions can be queried through the `ListCmqEnableRegion` API. This field is required if the value of `IsEnableCmqNotify` is 1. CmqRegion *string `json:"CmqRegion,omitempty" name:"CmqRegion"` // Log file prefix, which can only contain 3–40 ASCII letters (a–z; A–Z) and digits (0–9). LogFilePrefix *string `json:"LogFilePrefix,omitempty" name:"LogFilePrefix"` // Whether to create a queue. 1: Yes; 0: No. This field is required if the value of `IsEnableCmqNotify` is 1. IsCreateNewQueue *int64 `json:"IsCreateNewQueue,omitempty" name:"IsCreateNewQueue"` }
func NewUpdateAuditRequest ¶
func NewUpdateAuditRequest() (request *UpdateAuditRequest)
func (*UpdateAuditRequest) FromJsonString ¶
func (r *UpdateAuditRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateAuditRequest) ToJsonString ¶
func (r *UpdateAuditRequest) ToJsonString() string
type UpdateAuditRequestParams ¶
type UpdateAuditRequestParams struct { // Tracking set name AuditName *string `json:"AuditName,omitempty" name:"AuditName"` // Whether to enable CMQ message notification. 1: Yes; 0: No. Only CMQ queue service is currently supported. If CMQ message notification is enabled, CloudAudit will deliver your log contents to the designated queue in the specified region in real time. IsEnableCmqNotify *int64 `json:"IsEnableCmqNotify,omitempty" name:"IsEnableCmqNotify"` // Manages the read/write attribute of event. Valid values: 1 (read-only), 2 (write-only), 3 (read/write). ReadWriteAttribute *int64 `json:"ReadWriteAttribute,omitempty" name:"ReadWriteAttribute"` // Globally unique ID of the CMK. This value is required if it is not a newly created KMS element. It can be obtained through `ListKeyAliasByRegion`. CloudAudit will not verify the validity of the `KeyId`. Enter it carefully to avoid data loss. KeyId *string `json:"KeyId,omitempty" name:"KeyId"` // COS region. Supported regions can be queried through the `ListCosEnableRegion` API. CosRegion *string `json:"CosRegion,omitempty" name:"CosRegion"` // Queue name, which must begin with a letter and can contain up to 64 letters, digits, and dashes (-). This field is required if the value of `IsEnableCmqNotify` is 1. If a queue is not newly created, CloudAudit will not verify whether it actually exists. Enter the name with caution to avoid log delivery failure and consequent data loss. CmqQueueName *string `json:"CmqQueueName,omitempty" name:"CmqQueueName"` // Whether to create a COS bucket. 1: Yes; 0: No. IsCreateNewBucket *int64 `json:"IsCreateNewBucket,omitempty" name:"IsCreateNewBucket"` // KMS region. Currently supported regions can be obtained through `ListKmsEnableRegion`. This must be the same as the COS region. KmsRegion *string `json:"KmsRegion,omitempty" name:"KmsRegion"` // Whether to enable KMS encryption. 1: Yes, 0: No. If KMS encryption is enabled, the data will be encrypted when delivered to COS. IsEnableKmsEncry *int64 `json:"IsEnableKmsEncry,omitempty" name:"IsEnableKmsEncry"` // User-defined COS bucket name, which can only contain 1–40 lowercase letters (a–z), digits (0–9), and dashes (-) and cannot begin or end with "-". If a bucket is not newly created, CloudAudit will not verify whether it actually exists. Enter the name with caution to avoid log delivery failure and consequent data loss. CosBucketName *string `json:"CosBucketName,omitempty" name:"CosBucketName"` // Region where the queue is located. Supported CMQ regions can be queried through the `ListCmqEnableRegion` API. This field is required if the value of `IsEnableCmqNotify` is 1. CmqRegion *string `json:"CmqRegion,omitempty" name:"CmqRegion"` // Log file prefix, which can only contain 3–40 ASCII letters (a–z; A–Z) and digits (0–9). LogFilePrefix *string `json:"LogFilePrefix,omitempty" name:"LogFilePrefix"` // Whether to create a queue. 1: Yes; 0: No. This field is required if the value of `IsEnableCmqNotify` is 1. IsCreateNewQueue *int64 `json:"IsCreateNewQueue,omitempty" name:"IsCreateNewQueue"` }
Predefined struct for user
type UpdateAuditResponse ¶
type UpdateAuditResponse struct { *tchttp.BaseResponse Response *UpdateAuditResponseParams `json:"Response"` }
func NewUpdateAuditResponse ¶
func NewUpdateAuditResponse() (response *UpdateAuditResponse)
func (*UpdateAuditResponse) FromJsonString ¶
func (r *UpdateAuditResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateAuditResponse) ToJsonString ¶
func (r *UpdateAuditResponse) ToJsonString() string
type UpdateAuditResponseParams ¶
type UpdateAuditResponseParams struct { // Whether update succeeded IsSuccess *int64 `json:"IsSuccess,omitempty" name:"IsSuccess"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user