// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package cloudtraildata import ( "github.com/aws/aws-sdk-go/private/protocol" ) const ( // ErrCodeChannelInsufficientPermission for service response error code // "ChannelInsufficientPermission". // // The caller's account ID must be the same as the channel owner's account ID. ErrCodeChannelInsufficientPermission = "ChannelInsufficientPermission" // ErrCodeChannelNotFound for service response error code // "ChannelNotFound". // // The channel could not be found. ErrCodeChannelNotFound = "ChannelNotFound" // ErrCodeChannelUnsupportedSchema for service response error code // "ChannelUnsupportedSchema". // // The schema type of the event is not supported. ErrCodeChannelUnsupportedSchema = "ChannelUnsupportedSchema" // ErrCodeDuplicatedAuditEventId for service response error code // "DuplicatedAuditEventId". // // Two or more entries in the request have the same event ID. ErrCodeDuplicatedAuditEventId = "DuplicatedAuditEventId" // ErrCodeInvalidChannelARN for service response error code // "InvalidChannelARN". // // The specified channel ARN is not a valid channel ARN. ErrCodeInvalidChannelARN = "InvalidChannelARN" // ErrCodeUnsupportedOperationException for service response error code // "UnsupportedOperationException". // // The operation requested is not supported in this region or account. ErrCodeUnsupportedOperationException = "UnsupportedOperationException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "ChannelInsufficientPermission": newErrorChannelInsufficientPermission, "ChannelNotFound": newErrorChannelNotFound, "ChannelUnsupportedSchema": newErrorChannelUnsupportedSchema, "DuplicatedAuditEventId": newErrorDuplicatedAuditEventId, "InvalidChannelARN": newErrorInvalidChannelARN, "UnsupportedOperationException": newErrorUnsupportedOperationException, }