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) 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 CreateAuditResponse
- type CreateAuditTrackRequest
- type CreateAuditTrackResponse
- type DeleteAuditRequest
- type DeleteAuditResponse
- type DeleteAuditTrackRequest
- type DeleteAuditTrackResponse
- type DescribeAuditRequest
- type DescribeAuditResponse
- type DescribeAuditTracksRequest
- type DescribeAuditTracksResponse
- type DescribeEventsRequest
- type DescribeEventsResponse
- type Event
- type GetAttributeKeyRequest
- type GetAttributeKeyResponse
- type InquireAuditCreditRequest
- type InquireAuditCreditResponse
- type ListAuditsRequest
- type ListAuditsResponse
- type ListCmqEnableRegionRequest
- type ListCmqEnableRegionResponse
- type ListCosEnableRegionRequest
- type ListCosEnableRegionResponse
- type LookUpEventsRequest
- type LookUpEventsResponse
- type LookupAttribute
- type ModifyAuditTrackRequest
- type ModifyAuditTrackResponse
- type Resource
- type StartLoggingRequest
- type StartLoggingResponse
- type StopLoggingRequest
- type StopLoggingResponse
- type UpdateAuditRequest
- type UpdateAuditResponse
Constants ¶
const ( // Failed to create the COS bucket. FAILEDOPERATION_CREATEBUCKETFAIL = "FailedOperation.CreateBucketFail" // 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" // 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 tracking set does not exist. RESOURCENOTFOUND_AUDITNOTEXIST = "ResourceNotFound.AuditNotExist" )
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"
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:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ALIASALREADYEXISTS = "InvalidParameterValue.AliasAlreadyExists" LIMITEXCEEDED_OVERAMOUNT = "LimitExceeded.OverAmount"
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:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ALIASALREADYEXISTS = "InvalidParameterValue.AliasAlreadyExists" LIMITEXCEEDED_OVERAMOUNT = "LimitExceeded.OverAmount"
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"
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"
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"
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) 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:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter"
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:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter"
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:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ALIASALREADYEXISTS = "InvalidParameterValue.AliasAlreadyExists" LIMITEXCEEDED_OVERAMOUNT = "LimitExceeded.OverAmount"
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:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ALIASALREADYEXISTS = "InvalidParameterValue.AliasAlreadyExists" LIMITEXCEEDED_OVERAMOUNT = "LimitExceeded.OverAmount"
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 CreateAuditResponse ¶
type CreateAuditResponse struct { *tchttp.BaseResponse Response *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"` } `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 CreateAuditTrackRequest ¶
type CreateAuditTrackRequest struct {
*tchttp.BaseRequest
}
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 CreateAuditTrackResponse ¶
type CreateAuditTrackResponse struct { *tchttp.BaseResponse Response *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"` } `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 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 DeleteAuditResponse ¶
type DeleteAuditResponse struct { *tchttp.BaseResponse Response *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"` } `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 DeleteAuditTrackRequest ¶
type DeleteAuditTrackRequest struct {
*tchttp.BaseRequest
}
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 DeleteAuditTrackResponse ¶
type DeleteAuditTrackResponse struct { *tchttp.BaseResponse Response *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"` } `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 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 DescribeAuditResponse ¶
type DescribeAuditResponse struct { *tchttp.BaseResponse Response *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"` } `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 DescribeAuditTracksRequest ¶
type DescribeAuditTracksRequest struct {
*tchttp.BaseRequest
}
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 DescribeAuditTracksResponse ¶
type DescribeAuditTracksResponse struct { *tchttp.BaseResponse Response *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"` } `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 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 criterion. Valid values: RequestId, EventName, ActionType (write/read), PrincipalId (sub-account), ResourceType, ResourceName, AccessKeyId, SensitiveAction, ApiErrorCode, and CamErrorCode. 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 DescribeEventsResponse ¶
type DescribeEventsResponse struct { *tchttp.BaseResponse Response *struct { // Whether the logset ends. 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"` // Total number of events. // 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"` } `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 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 GetAttributeKeyResponse ¶
type GetAttributeKeyResponse struct { *tchttp.BaseResponse Response *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"` } `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 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 InquireAuditCreditResponse ¶
type InquireAuditCreditResponse struct { *tchttp.BaseResponse Response *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"` } `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 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 *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"` } `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 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 ListCmqEnableRegionResponse ¶
type ListCmqEnableRegionResponse struct { *tchttp.BaseResponse Response *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"` } `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 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 ListCosEnableRegionResponse ¶
type ListCosEnableRegionResponse struct { *tchttp.BaseResponse Response *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"` } `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 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 LookUpEventsResponse ¶
type LookUpEventsResponse struct { *tchttp.BaseResponse Response *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"` } `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 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
}
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 ModifyAuditTrackResponse ¶
type ModifyAuditTrackResponse struct { *tchttp.BaseResponse Response *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"` } `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 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 StartLoggingResponse ¶
type StartLoggingResponse struct { *tchttp.BaseResponse Response *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"` } `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 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 StopLoggingResponse ¶
type StopLoggingResponse struct { *tchttp.BaseResponse Response *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"` } `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 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 UpdateAuditResponse ¶
type UpdateAuditResponse struct { *tchttp.BaseResponse Response *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"` } `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