diff --git a/cmd/admin-bucket-handlers.go b/cmd/admin-bucket-handlers.go index c88356dc1..a8cc177e5 100644 --- a/cmd/admin-bucket-handlers.go +++ b/cmd/admin-bucket-handlers.go @@ -225,10 +225,12 @@ func (a adminAPIHandlers) SetRemoteTargetHandler(w http.ResponseWriter, r *http. for _, op := range ops { switch op { case madmin.CredentialsUpdateType: - if !globalSiteReplicationSys.isEnabled() { - tgt.Credentials = target.Credentials - tgt.TargetBucket = target.TargetBucket + if globalSiteReplicationSys.isEnabled() { + writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrRemoteTargetDenyEditError, err), r.URL) + return } + tgt.Credentials = target.Credentials + tgt.TargetBucket = target.TargetBucket tgt.Secure = target.Secure tgt.Endpoint = target.Endpoint case madmin.SyncUpdateType: diff --git a/cmd/api-errors.go b/cmd/api-errors.go index 6ed791268..485c6c0df 100644 --- a/cmd/api-errors.go +++ b/cmd/api-errors.go @@ -132,6 +132,7 @@ const ( ErrReplicationNeedsVersioningError ErrReplicationBucketNeedsVersioningError ErrReplicationDenyEditError + ErrRemoteTargetDenyEditError ErrReplicationNoExistingObjects ErrObjectRestoreAlreadyInProgress ErrNoSuchKey @@ -919,6 +920,11 @@ var errorCodes = errorCodeMap{ Description: "No matching ExistingsObjects rule enabled", HTTPStatusCode: http.StatusBadRequest, }, + ErrRemoteTargetDenyEditError: { + Code: "XMinioAdminRemoteTargetDenyEdit", + Description: "Cannot alter remote target endpoint since this server is in a cluster replication setup. use `mc admin replicate update`", + HTTPStatusCode: http.StatusBadRequest, + }, ErrReplicationDenyEditError: { Code: "XMinioReplicationDenyEdit", Description: "Cannot alter local replication config since this server is in a cluster replication setup", diff --git a/cmd/apierrorcode_string.go b/cmd/apierrorcode_string.go index 1e3fd05b7..cc8f04d58 100644 --- a/cmd/apierrorcode_string.go +++ b/cmd/apierrorcode_string.go @@ -66,258 +66,259 @@ func _() { _ = x[ErrReplicationNeedsVersioningError-55] _ = x[ErrReplicationBucketNeedsVersioningError-56] _ = x[ErrReplicationDenyEditError-57] - _ = x[ErrReplicationNoExistingObjects-58] - _ = x[ErrObjectRestoreAlreadyInProgress-59] - _ = x[ErrNoSuchKey-60] - _ = x[ErrNoSuchUpload-61] - _ = x[ErrInvalidVersionID-62] - _ = x[ErrNoSuchVersion-63] - _ = x[ErrNotImplemented-64] - _ = x[ErrPreconditionFailed-65] - _ = x[ErrRequestTimeTooSkewed-66] - _ = x[ErrSignatureDoesNotMatch-67] - _ = x[ErrMethodNotAllowed-68] - _ = x[ErrInvalidPart-69] - _ = x[ErrInvalidPartOrder-70] - _ = x[ErrAuthorizationHeaderMalformed-71] - _ = x[ErrMalformedPOSTRequest-72] - _ = x[ErrPOSTFileRequired-73] - _ = x[ErrSignatureVersionNotSupported-74] - _ = x[ErrBucketNotEmpty-75] - _ = x[ErrAllAccessDisabled-76] - _ = x[ErrPolicyInvalidVersion-77] - _ = x[ErrMissingFields-78] - _ = x[ErrMissingCredTag-79] - _ = x[ErrCredMalformed-80] - _ = x[ErrInvalidRegion-81] - _ = x[ErrInvalidServiceS3-82] - _ = x[ErrInvalidServiceSTS-83] - _ = x[ErrInvalidRequestVersion-84] - _ = x[ErrMissingSignTag-85] - _ = x[ErrMissingSignHeadersTag-86] - _ = x[ErrMalformedDate-87] - _ = x[ErrMalformedPresignedDate-88] - _ = x[ErrMalformedCredentialDate-89] - _ = x[ErrMalformedCredentialRegion-90] - _ = x[ErrMalformedExpires-91] - _ = x[ErrNegativeExpires-92] - _ = x[ErrAuthHeaderEmpty-93] - _ = x[ErrExpiredPresignRequest-94] - _ = x[ErrRequestNotReadyYet-95] - _ = x[ErrUnsignedHeaders-96] - _ = x[ErrMissingDateHeader-97] - _ = x[ErrInvalidQuerySignatureAlgo-98] - _ = x[ErrInvalidQueryParams-99] - _ = x[ErrBucketAlreadyOwnedByYou-100] - _ = x[ErrInvalidDuration-101] - _ = x[ErrBucketAlreadyExists-102] - _ = x[ErrMetadataTooLarge-103] - _ = x[ErrUnsupportedMetadata-104] - _ = x[ErrMaximumExpires-105] - _ = x[ErrSlowDown-106] - _ = x[ErrInvalidPrefixMarker-107] - _ = x[ErrBadRequest-108] - _ = x[ErrKeyTooLongError-109] - _ = x[ErrInvalidBucketObjectLockConfiguration-110] - _ = x[ErrObjectLockConfigurationNotFound-111] - _ = x[ErrObjectLockConfigurationNotAllowed-112] - _ = x[ErrNoSuchObjectLockConfiguration-113] - _ = x[ErrObjectLocked-114] - _ = x[ErrInvalidRetentionDate-115] - _ = x[ErrPastObjectLockRetainDate-116] - _ = x[ErrUnknownWORMModeDirective-117] - _ = x[ErrBucketTaggingNotFound-118] - _ = x[ErrObjectLockInvalidHeaders-119] - _ = x[ErrInvalidTagDirective-120] - _ = x[ErrPolicyAlreadyAttached-121] - _ = x[ErrPolicyNotAttached-122] - _ = x[ErrInvalidEncryptionMethod-123] - _ = x[ErrInvalidEncryptionKeyID-124] - _ = x[ErrInsecureSSECustomerRequest-125] - _ = x[ErrSSEMultipartEncrypted-126] - _ = x[ErrSSEEncryptedObject-127] - _ = x[ErrInvalidEncryptionParameters-128] - _ = x[ErrInvalidEncryptionParametersSSEC-129] - _ = x[ErrInvalidSSECustomerAlgorithm-130] - _ = x[ErrInvalidSSECustomerKey-131] - _ = x[ErrMissingSSECustomerKey-132] - _ = x[ErrMissingSSECustomerKeyMD5-133] - _ = x[ErrSSECustomerKeyMD5Mismatch-134] - _ = x[ErrInvalidSSECustomerParameters-135] - _ = x[ErrIncompatibleEncryptionMethod-136] - _ = x[ErrKMSNotConfigured-137] - _ = x[ErrKMSKeyNotFoundException-138] - _ = x[ErrNoAccessKey-139] - _ = x[ErrInvalidToken-140] - _ = x[ErrEventNotification-141] - _ = x[ErrARNNotification-142] - _ = x[ErrRegionNotification-143] - _ = x[ErrOverlappingFilterNotification-144] - _ = x[ErrFilterNameInvalid-145] - _ = x[ErrFilterNamePrefix-146] - _ = x[ErrFilterNameSuffix-147] - _ = x[ErrFilterValueInvalid-148] - _ = x[ErrOverlappingConfigs-149] - _ = x[ErrUnsupportedNotification-150] - _ = x[ErrContentSHA256Mismatch-151] - _ = x[ErrContentChecksumMismatch-152] - _ = x[ErrReadQuorum-153] - _ = x[ErrWriteQuorum-154] - _ = x[ErrStorageFull-155] - _ = x[ErrRequestBodyParse-156] - _ = x[ErrObjectExistsAsDirectory-157] - _ = x[ErrInvalidObjectName-158] - _ = x[ErrInvalidObjectNamePrefixSlash-159] - _ = x[ErrInvalidResourceName-160] - _ = x[ErrServerNotInitialized-161] - _ = x[ErrOperationTimedOut-162] - _ = x[ErrClientDisconnected-163] - _ = x[ErrOperationMaxedOut-164] - _ = x[ErrInvalidRequest-165] - _ = x[ErrTransitionStorageClassNotFoundError-166] - _ = x[ErrInvalidStorageClass-167] - _ = x[ErrBackendDown-168] - _ = x[ErrMalformedJSON-169] - _ = x[ErrAdminNoSuchUser-170] - _ = x[ErrAdminNoSuchGroup-171] - _ = x[ErrAdminGroupNotEmpty-172] - _ = x[ErrAdminNoSuchJob-173] - _ = x[ErrAdminNoSuchPolicy-174] - _ = x[ErrAdminPolicyChangeAlreadyApplied-175] - _ = x[ErrAdminInvalidArgument-176] - _ = x[ErrAdminInvalidAccessKey-177] - _ = x[ErrAdminInvalidSecretKey-178] - _ = x[ErrAdminConfigNoQuorum-179] - _ = x[ErrAdminConfigTooLarge-180] - _ = x[ErrAdminConfigBadJSON-181] - _ = x[ErrAdminNoSuchConfigTarget-182] - _ = x[ErrAdminConfigEnvOverridden-183] - _ = x[ErrAdminConfigDuplicateKeys-184] - _ = x[ErrAdminConfigInvalidIDPType-185] - _ = x[ErrAdminConfigLDAPValidation-186] - _ = x[ErrAdminConfigIDPCfgNameAlreadyExists-187] - _ = x[ErrAdminConfigIDPCfgNameDoesNotExist-188] - _ = x[ErrAdminCredentialsMismatch-189] - _ = x[ErrInsecureClientRequest-190] - _ = x[ErrObjectTampered-191] - _ = x[ErrSiteReplicationInvalidRequest-192] - _ = x[ErrSiteReplicationPeerResp-193] - _ = x[ErrSiteReplicationBackendIssue-194] - _ = x[ErrSiteReplicationServiceAccountError-195] - _ = x[ErrSiteReplicationBucketConfigError-196] - _ = x[ErrSiteReplicationBucketMetaError-197] - _ = x[ErrSiteReplicationIAMError-198] - _ = x[ErrSiteReplicationConfigMissing-199] - _ = x[ErrAdminRebalanceAlreadyStarted-200] - _ = x[ErrAdminRebalanceNotStarted-201] - _ = x[ErrAdminBucketQuotaExceeded-202] - _ = x[ErrAdminNoSuchQuotaConfiguration-203] - _ = x[ErrHealNotImplemented-204] - _ = x[ErrHealNoSuchProcess-205] - _ = x[ErrHealInvalidClientToken-206] - _ = x[ErrHealMissingBucket-207] - _ = x[ErrHealAlreadyRunning-208] - _ = x[ErrHealOverlappingPaths-209] - _ = x[ErrIncorrectContinuationToken-210] - _ = x[ErrEmptyRequestBody-211] - _ = x[ErrUnsupportedFunction-212] - _ = x[ErrInvalidExpressionType-213] - _ = x[ErrBusy-214] - _ = x[ErrUnauthorizedAccess-215] - _ = x[ErrExpressionTooLong-216] - _ = x[ErrIllegalSQLFunctionArgument-217] - _ = x[ErrInvalidKeyPath-218] - _ = x[ErrInvalidCompressionFormat-219] - _ = x[ErrInvalidFileHeaderInfo-220] - _ = x[ErrInvalidJSONType-221] - _ = x[ErrInvalidQuoteFields-222] - _ = x[ErrInvalidRequestParameter-223] - _ = x[ErrInvalidDataType-224] - _ = x[ErrInvalidTextEncoding-225] - _ = x[ErrInvalidDataSource-226] - _ = x[ErrInvalidTableAlias-227] - _ = x[ErrMissingRequiredParameter-228] - _ = x[ErrObjectSerializationConflict-229] - _ = x[ErrUnsupportedSQLOperation-230] - _ = x[ErrUnsupportedSQLStructure-231] - _ = x[ErrUnsupportedSyntax-232] - _ = x[ErrUnsupportedRangeHeader-233] - _ = x[ErrLexerInvalidChar-234] - _ = x[ErrLexerInvalidOperator-235] - _ = x[ErrLexerInvalidLiteral-236] - _ = x[ErrLexerInvalidIONLiteral-237] - _ = x[ErrParseExpectedDatePart-238] - _ = x[ErrParseExpectedKeyword-239] - _ = x[ErrParseExpectedTokenType-240] - _ = x[ErrParseExpected2TokenTypes-241] - _ = x[ErrParseExpectedNumber-242] - _ = x[ErrParseExpectedRightParenBuiltinFunctionCall-243] - _ = x[ErrParseExpectedTypeName-244] - _ = x[ErrParseExpectedWhenClause-245] - _ = x[ErrParseUnsupportedToken-246] - _ = x[ErrParseUnsupportedLiteralsGroupBy-247] - _ = x[ErrParseExpectedMember-248] - _ = x[ErrParseUnsupportedSelect-249] - _ = x[ErrParseUnsupportedCase-250] - _ = x[ErrParseUnsupportedCaseClause-251] - _ = x[ErrParseUnsupportedAlias-252] - _ = x[ErrParseUnsupportedSyntax-253] - _ = x[ErrParseUnknownOperator-254] - _ = x[ErrParseMissingIdentAfterAt-255] - _ = x[ErrParseUnexpectedOperator-256] - _ = x[ErrParseUnexpectedTerm-257] - _ = x[ErrParseUnexpectedToken-258] - _ = x[ErrParseUnexpectedKeyword-259] - _ = x[ErrParseExpectedExpression-260] - _ = x[ErrParseExpectedLeftParenAfterCast-261] - _ = x[ErrParseExpectedLeftParenValueConstructor-262] - _ = x[ErrParseExpectedLeftParenBuiltinFunctionCall-263] - _ = x[ErrParseExpectedArgumentDelimiter-264] - _ = x[ErrParseCastArity-265] - _ = x[ErrParseInvalidTypeParam-266] - _ = x[ErrParseEmptySelect-267] - _ = x[ErrParseSelectMissingFrom-268] - _ = x[ErrParseExpectedIdentForGroupName-269] - _ = x[ErrParseExpectedIdentForAlias-270] - _ = x[ErrParseUnsupportedCallWithStar-271] - _ = x[ErrParseNonUnaryAgregateFunctionCall-272] - _ = x[ErrParseMalformedJoin-273] - _ = x[ErrParseExpectedIdentForAt-274] - _ = x[ErrParseAsteriskIsNotAloneInSelectList-275] - _ = x[ErrParseCannotMixSqbAndWildcardInSelectList-276] - _ = x[ErrParseInvalidContextForWildcardInSelectList-277] - _ = x[ErrIncorrectSQLFunctionArgumentType-278] - _ = x[ErrValueParseFailure-279] - _ = x[ErrEvaluatorInvalidArguments-280] - _ = x[ErrIntegerOverflow-281] - _ = x[ErrLikeInvalidInputs-282] - _ = x[ErrCastFailed-283] - _ = x[ErrInvalidCast-284] - _ = x[ErrEvaluatorInvalidTimestampFormatPattern-285] - _ = x[ErrEvaluatorInvalidTimestampFormatPatternSymbolForParsing-286] - _ = x[ErrEvaluatorTimestampFormatPatternDuplicateFields-287] - _ = x[ErrEvaluatorTimestampFormatPatternHourClockAmPmMismatch-288] - _ = x[ErrEvaluatorUnterminatedTimestampFormatPatternToken-289] - _ = x[ErrEvaluatorInvalidTimestampFormatPatternToken-290] - _ = x[ErrEvaluatorInvalidTimestampFormatPatternSymbol-291] - _ = x[ErrEvaluatorBindingDoesNotExist-292] - _ = x[ErrMissingHeaders-293] - _ = x[ErrInvalidColumnIndex-294] - _ = x[ErrAdminConfigNotificationTargetsFailed-295] - _ = x[ErrAdminProfilerNotEnabled-296] - _ = x[ErrInvalidDecompressedSize-297] - _ = x[ErrAddUserInvalidArgument-298] - _ = x[ErrAdminResourceInvalidArgument-299] - _ = x[ErrAdminAccountNotEligible-300] - _ = x[ErrAccountNotEligible-301] - _ = x[ErrAdminServiceAccountNotFound-302] - _ = x[ErrPostPolicyConditionInvalidFormat-303] - _ = x[ErrInvalidChecksum-304] + _ = x[ErrRemoteTargetDenyEditError-58] + _ = x[ErrReplicationNoExistingObjects-59] + _ = x[ErrObjectRestoreAlreadyInProgress-60] + _ = x[ErrNoSuchKey-61] + _ = x[ErrNoSuchUpload-62] + _ = x[ErrInvalidVersionID-63] + _ = x[ErrNoSuchVersion-64] + _ = x[ErrNotImplemented-65] + _ = x[ErrPreconditionFailed-66] + _ = x[ErrRequestTimeTooSkewed-67] + _ = x[ErrSignatureDoesNotMatch-68] + _ = x[ErrMethodNotAllowed-69] + _ = x[ErrInvalidPart-70] + _ = x[ErrInvalidPartOrder-71] + _ = x[ErrAuthorizationHeaderMalformed-72] + _ = x[ErrMalformedPOSTRequest-73] + _ = x[ErrPOSTFileRequired-74] + _ = x[ErrSignatureVersionNotSupported-75] + _ = x[ErrBucketNotEmpty-76] + _ = x[ErrAllAccessDisabled-77] + _ = x[ErrPolicyInvalidVersion-78] + _ = x[ErrMissingFields-79] + _ = x[ErrMissingCredTag-80] + _ = x[ErrCredMalformed-81] + _ = x[ErrInvalidRegion-82] + _ = x[ErrInvalidServiceS3-83] + _ = x[ErrInvalidServiceSTS-84] + _ = x[ErrInvalidRequestVersion-85] + _ = x[ErrMissingSignTag-86] + _ = x[ErrMissingSignHeadersTag-87] + _ = x[ErrMalformedDate-88] + _ = x[ErrMalformedPresignedDate-89] + _ = x[ErrMalformedCredentialDate-90] + _ = x[ErrMalformedCredentialRegion-91] + _ = x[ErrMalformedExpires-92] + _ = x[ErrNegativeExpires-93] + _ = x[ErrAuthHeaderEmpty-94] + _ = x[ErrExpiredPresignRequest-95] + _ = x[ErrRequestNotReadyYet-96] + _ = x[ErrUnsignedHeaders-97] + _ = x[ErrMissingDateHeader-98] + _ = x[ErrInvalidQuerySignatureAlgo-99] + _ = x[ErrInvalidQueryParams-100] + _ = x[ErrBucketAlreadyOwnedByYou-101] + _ = x[ErrInvalidDuration-102] + _ = x[ErrBucketAlreadyExists-103] + _ = x[ErrMetadataTooLarge-104] + _ = x[ErrUnsupportedMetadata-105] + _ = x[ErrMaximumExpires-106] + _ = x[ErrSlowDown-107] + _ = x[ErrInvalidPrefixMarker-108] + _ = x[ErrBadRequest-109] + _ = x[ErrKeyTooLongError-110] + _ = x[ErrInvalidBucketObjectLockConfiguration-111] + _ = x[ErrObjectLockConfigurationNotFound-112] + _ = x[ErrObjectLockConfigurationNotAllowed-113] + _ = x[ErrNoSuchObjectLockConfiguration-114] + _ = x[ErrObjectLocked-115] + _ = x[ErrInvalidRetentionDate-116] + _ = x[ErrPastObjectLockRetainDate-117] + _ = x[ErrUnknownWORMModeDirective-118] + _ = x[ErrBucketTaggingNotFound-119] + _ = x[ErrObjectLockInvalidHeaders-120] + _ = x[ErrInvalidTagDirective-121] + _ = x[ErrPolicyAlreadyAttached-122] + _ = x[ErrPolicyNotAttached-123] + _ = x[ErrInvalidEncryptionMethod-124] + _ = x[ErrInvalidEncryptionKeyID-125] + _ = x[ErrInsecureSSECustomerRequest-126] + _ = x[ErrSSEMultipartEncrypted-127] + _ = x[ErrSSEEncryptedObject-128] + _ = x[ErrInvalidEncryptionParameters-129] + _ = x[ErrInvalidEncryptionParametersSSEC-130] + _ = x[ErrInvalidSSECustomerAlgorithm-131] + _ = x[ErrInvalidSSECustomerKey-132] + _ = x[ErrMissingSSECustomerKey-133] + _ = x[ErrMissingSSECustomerKeyMD5-134] + _ = x[ErrSSECustomerKeyMD5Mismatch-135] + _ = x[ErrInvalidSSECustomerParameters-136] + _ = x[ErrIncompatibleEncryptionMethod-137] + _ = x[ErrKMSNotConfigured-138] + _ = x[ErrKMSKeyNotFoundException-139] + _ = x[ErrNoAccessKey-140] + _ = x[ErrInvalidToken-141] + _ = x[ErrEventNotification-142] + _ = x[ErrARNNotification-143] + _ = x[ErrRegionNotification-144] + _ = x[ErrOverlappingFilterNotification-145] + _ = x[ErrFilterNameInvalid-146] + _ = x[ErrFilterNamePrefix-147] + _ = x[ErrFilterNameSuffix-148] + _ = x[ErrFilterValueInvalid-149] + _ = x[ErrOverlappingConfigs-150] + _ = x[ErrUnsupportedNotification-151] + _ = x[ErrContentSHA256Mismatch-152] + _ = x[ErrContentChecksumMismatch-153] + _ = x[ErrReadQuorum-154] + _ = x[ErrWriteQuorum-155] + _ = x[ErrStorageFull-156] + _ = x[ErrRequestBodyParse-157] + _ = x[ErrObjectExistsAsDirectory-158] + _ = x[ErrInvalidObjectName-159] + _ = x[ErrInvalidObjectNamePrefixSlash-160] + _ = x[ErrInvalidResourceName-161] + _ = x[ErrServerNotInitialized-162] + _ = x[ErrOperationTimedOut-163] + _ = x[ErrClientDisconnected-164] + _ = x[ErrOperationMaxedOut-165] + _ = x[ErrInvalidRequest-166] + _ = x[ErrTransitionStorageClassNotFoundError-167] + _ = x[ErrInvalidStorageClass-168] + _ = x[ErrBackendDown-169] + _ = x[ErrMalformedJSON-170] + _ = x[ErrAdminNoSuchUser-171] + _ = x[ErrAdminNoSuchGroup-172] + _ = x[ErrAdminGroupNotEmpty-173] + _ = x[ErrAdminNoSuchJob-174] + _ = x[ErrAdminNoSuchPolicy-175] + _ = x[ErrAdminPolicyChangeAlreadyApplied-176] + _ = x[ErrAdminInvalidArgument-177] + _ = x[ErrAdminInvalidAccessKey-178] + _ = x[ErrAdminInvalidSecretKey-179] + _ = x[ErrAdminConfigNoQuorum-180] + _ = x[ErrAdminConfigTooLarge-181] + _ = x[ErrAdminConfigBadJSON-182] + _ = x[ErrAdminNoSuchConfigTarget-183] + _ = x[ErrAdminConfigEnvOverridden-184] + _ = x[ErrAdminConfigDuplicateKeys-185] + _ = x[ErrAdminConfigInvalidIDPType-186] + _ = x[ErrAdminConfigLDAPValidation-187] + _ = x[ErrAdminConfigIDPCfgNameAlreadyExists-188] + _ = x[ErrAdminConfigIDPCfgNameDoesNotExist-189] + _ = x[ErrAdminCredentialsMismatch-190] + _ = x[ErrInsecureClientRequest-191] + _ = x[ErrObjectTampered-192] + _ = x[ErrSiteReplicationInvalidRequest-193] + _ = x[ErrSiteReplicationPeerResp-194] + _ = x[ErrSiteReplicationBackendIssue-195] + _ = x[ErrSiteReplicationServiceAccountError-196] + _ = x[ErrSiteReplicationBucketConfigError-197] + _ = x[ErrSiteReplicationBucketMetaError-198] + _ = x[ErrSiteReplicationIAMError-199] + _ = x[ErrSiteReplicationConfigMissing-200] + _ = x[ErrAdminRebalanceAlreadyStarted-201] + _ = x[ErrAdminRebalanceNotStarted-202] + _ = x[ErrAdminBucketQuotaExceeded-203] + _ = x[ErrAdminNoSuchQuotaConfiguration-204] + _ = x[ErrHealNotImplemented-205] + _ = x[ErrHealNoSuchProcess-206] + _ = x[ErrHealInvalidClientToken-207] + _ = x[ErrHealMissingBucket-208] + _ = x[ErrHealAlreadyRunning-209] + _ = x[ErrHealOverlappingPaths-210] + _ = x[ErrIncorrectContinuationToken-211] + _ = x[ErrEmptyRequestBody-212] + _ = x[ErrUnsupportedFunction-213] + _ = x[ErrInvalidExpressionType-214] + _ = x[ErrBusy-215] + _ = x[ErrUnauthorizedAccess-216] + _ = x[ErrExpressionTooLong-217] + _ = x[ErrIllegalSQLFunctionArgument-218] + _ = x[ErrInvalidKeyPath-219] + _ = x[ErrInvalidCompressionFormat-220] + _ = x[ErrInvalidFileHeaderInfo-221] + _ = x[ErrInvalidJSONType-222] + _ = x[ErrInvalidQuoteFields-223] + _ = x[ErrInvalidRequestParameter-224] + _ = x[ErrInvalidDataType-225] + _ = x[ErrInvalidTextEncoding-226] + _ = x[ErrInvalidDataSource-227] + _ = x[ErrInvalidTableAlias-228] + _ = x[ErrMissingRequiredParameter-229] + _ = x[ErrObjectSerializationConflict-230] + _ = x[ErrUnsupportedSQLOperation-231] + _ = x[ErrUnsupportedSQLStructure-232] + _ = x[ErrUnsupportedSyntax-233] + _ = x[ErrUnsupportedRangeHeader-234] + _ = x[ErrLexerInvalidChar-235] + _ = x[ErrLexerInvalidOperator-236] + _ = x[ErrLexerInvalidLiteral-237] + _ = x[ErrLexerInvalidIONLiteral-238] + _ = x[ErrParseExpectedDatePart-239] + _ = x[ErrParseExpectedKeyword-240] + _ = x[ErrParseExpectedTokenType-241] + _ = x[ErrParseExpected2TokenTypes-242] + _ = x[ErrParseExpectedNumber-243] + _ = x[ErrParseExpectedRightParenBuiltinFunctionCall-244] + _ = x[ErrParseExpectedTypeName-245] + _ = x[ErrParseExpectedWhenClause-246] + _ = x[ErrParseUnsupportedToken-247] + _ = x[ErrParseUnsupportedLiteralsGroupBy-248] + _ = x[ErrParseExpectedMember-249] + _ = x[ErrParseUnsupportedSelect-250] + _ = x[ErrParseUnsupportedCase-251] + _ = x[ErrParseUnsupportedCaseClause-252] + _ = x[ErrParseUnsupportedAlias-253] + _ = x[ErrParseUnsupportedSyntax-254] + _ = x[ErrParseUnknownOperator-255] + _ = x[ErrParseMissingIdentAfterAt-256] + _ = x[ErrParseUnexpectedOperator-257] + _ = x[ErrParseUnexpectedTerm-258] + _ = x[ErrParseUnexpectedToken-259] + _ = x[ErrParseUnexpectedKeyword-260] + _ = x[ErrParseExpectedExpression-261] + _ = x[ErrParseExpectedLeftParenAfterCast-262] + _ = x[ErrParseExpectedLeftParenValueConstructor-263] + _ = x[ErrParseExpectedLeftParenBuiltinFunctionCall-264] + _ = x[ErrParseExpectedArgumentDelimiter-265] + _ = x[ErrParseCastArity-266] + _ = x[ErrParseInvalidTypeParam-267] + _ = x[ErrParseEmptySelect-268] + _ = x[ErrParseSelectMissingFrom-269] + _ = x[ErrParseExpectedIdentForGroupName-270] + _ = x[ErrParseExpectedIdentForAlias-271] + _ = x[ErrParseUnsupportedCallWithStar-272] + _ = x[ErrParseNonUnaryAgregateFunctionCall-273] + _ = x[ErrParseMalformedJoin-274] + _ = x[ErrParseExpectedIdentForAt-275] + _ = x[ErrParseAsteriskIsNotAloneInSelectList-276] + _ = x[ErrParseCannotMixSqbAndWildcardInSelectList-277] + _ = x[ErrParseInvalidContextForWildcardInSelectList-278] + _ = x[ErrIncorrectSQLFunctionArgumentType-279] + _ = x[ErrValueParseFailure-280] + _ = x[ErrEvaluatorInvalidArguments-281] + _ = x[ErrIntegerOverflow-282] + _ = x[ErrLikeInvalidInputs-283] + _ = x[ErrCastFailed-284] + _ = x[ErrInvalidCast-285] + _ = x[ErrEvaluatorInvalidTimestampFormatPattern-286] + _ = x[ErrEvaluatorInvalidTimestampFormatPatternSymbolForParsing-287] + _ = x[ErrEvaluatorTimestampFormatPatternDuplicateFields-288] + _ = x[ErrEvaluatorTimestampFormatPatternHourClockAmPmMismatch-289] + _ = x[ErrEvaluatorUnterminatedTimestampFormatPatternToken-290] + _ = x[ErrEvaluatorInvalidTimestampFormatPatternToken-291] + _ = x[ErrEvaluatorInvalidTimestampFormatPatternSymbol-292] + _ = x[ErrEvaluatorBindingDoesNotExist-293] + _ = x[ErrMissingHeaders-294] + _ = x[ErrInvalidColumnIndex-295] + _ = x[ErrAdminConfigNotificationTargetsFailed-296] + _ = x[ErrAdminProfilerNotEnabled-297] + _ = x[ErrInvalidDecompressedSize-298] + _ = x[ErrAddUserInvalidArgument-299] + _ = x[ErrAdminResourceInvalidArgument-300] + _ = x[ErrAdminAccountNotEligible-301] + _ = x[ErrAccountNotEligible-302] + _ = x[ErrAdminServiceAccountNotFound-303] + _ = x[ErrPostPolicyConditionInvalidFormat-304] + _ = x[ErrInvalidChecksum-305] } -const _APIErrorCode_name = "NoneAccessDeniedBadDigestEntityTooSmallEntityTooLargePolicyTooLargeIncompleteBodyInternalErrorInvalidAccessKeyIDAccessKeyDisabledInvalidBucketNameInvalidDigestInvalidRangeInvalidRangePartNumberInvalidCopyPartRangeInvalidCopyPartRangeSourceInvalidMaxKeysInvalidEncodingMethodInvalidMaxUploadsInvalidMaxPartsInvalidPartNumberMarkerInvalidPartNumberInvalidRequestBodyInvalidCopySourceInvalidMetadataDirectiveInvalidCopyDestInvalidPolicyDocumentInvalidObjectStateMalformedXMLMissingContentLengthMissingContentMD5MissingRequestBodyErrorMissingSecurityHeaderNoSuchBucketNoSuchBucketPolicyNoSuchBucketLifecycleNoSuchLifecycleConfigurationInvalidLifecycleWithObjectLockNoSuchBucketSSEConfigNoSuchCORSConfigurationNoSuchWebsiteConfigurationReplicationConfigurationNotFoundErrorRemoteDestinationNotFoundErrorReplicationDestinationMissingLockRemoteTargetNotFoundErrorReplicationRemoteConnectionErrorReplicationBandwidthLimitErrorBucketRemoteIdenticalToSourceBucketRemoteAlreadyExistsBucketRemoteLabelInUseBucketRemoteArnTypeInvalidBucketRemoteArnInvalidBucketRemoteRemoveDisallowedRemoteTargetNotVersionedErrorReplicationSourceNotVersionedErrorReplicationNeedsVersioningErrorReplicationBucketNeedsVersioningErrorReplicationDenyEditErrorReplicationNoExistingObjectsObjectRestoreAlreadyInProgressNoSuchKeyNoSuchUploadInvalidVersionIDNoSuchVersionNotImplementedPreconditionFailedRequestTimeTooSkewedSignatureDoesNotMatchMethodNotAllowedInvalidPartInvalidPartOrderAuthorizationHeaderMalformedMalformedPOSTRequestPOSTFileRequiredSignatureVersionNotSupportedBucketNotEmptyAllAccessDisabledPolicyInvalidVersionMissingFieldsMissingCredTagCredMalformedInvalidRegionInvalidServiceS3InvalidServiceSTSInvalidRequestVersionMissingSignTagMissingSignHeadersTagMalformedDateMalformedPresignedDateMalformedCredentialDateMalformedCredentialRegionMalformedExpiresNegativeExpiresAuthHeaderEmptyExpiredPresignRequestRequestNotReadyYetUnsignedHeadersMissingDateHeaderInvalidQuerySignatureAlgoInvalidQueryParamsBucketAlreadyOwnedByYouInvalidDurationBucketAlreadyExistsMetadataTooLargeUnsupportedMetadataMaximumExpiresSlowDownInvalidPrefixMarkerBadRequestKeyTooLongErrorInvalidBucketObjectLockConfigurationObjectLockConfigurationNotFoundObjectLockConfigurationNotAllowedNoSuchObjectLockConfigurationObjectLockedInvalidRetentionDatePastObjectLockRetainDateUnknownWORMModeDirectiveBucketTaggingNotFoundObjectLockInvalidHeadersInvalidTagDirectivePolicyAlreadyAttachedPolicyNotAttachedInvalidEncryptionMethodInvalidEncryptionKeyIDInsecureSSECustomerRequestSSEMultipartEncryptedSSEEncryptedObjectInvalidEncryptionParametersInvalidEncryptionParametersSSECInvalidSSECustomerAlgorithmInvalidSSECustomerKeyMissingSSECustomerKeyMissingSSECustomerKeyMD5SSECustomerKeyMD5MismatchInvalidSSECustomerParametersIncompatibleEncryptionMethodKMSNotConfiguredKMSKeyNotFoundExceptionNoAccessKeyInvalidTokenEventNotificationARNNotificationRegionNotificationOverlappingFilterNotificationFilterNameInvalidFilterNamePrefixFilterNameSuffixFilterValueInvalidOverlappingConfigsUnsupportedNotificationContentSHA256MismatchContentChecksumMismatchReadQuorumWriteQuorumStorageFullRequestBodyParseObjectExistsAsDirectoryInvalidObjectNameInvalidObjectNamePrefixSlashInvalidResourceNameServerNotInitializedOperationTimedOutClientDisconnectedOperationMaxedOutInvalidRequestTransitionStorageClassNotFoundErrorInvalidStorageClassBackendDownMalformedJSONAdminNoSuchUserAdminNoSuchGroupAdminGroupNotEmptyAdminNoSuchJobAdminNoSuchPolicyAdminPolicyChangeAlreadyAppliedAdminInvalidArgumentAdminInvalidAccessKeyAdminInvalidSecretKeyAdminConfigNoQuorumAdminConfigTooLargeAdminConfigBadJSONAdminNoSuchConfigTargetAdminConfigEnvOverriddenAdminConfigDuplicateKeysAdminConfigInvalidIDPTypeAdminConfigLDAPValidationAdminConfigIDPCfgNameAlreadyExistsAdminConfigIDPCfgNameDoesNotExistAdminCredentialsMismatchInsecureClientRequestObjectTamperedSiteReplicationInvalidRequestSiteReplicationPeerRespSiteReplicationBackendIssueSiteReplicationServiceAccountErrorSiteReplicationBucketConfigErrorSiteReplicationBucketMetaErrorSiteReplicationIAMErrorSiteReplicationConfigMissingAdminRebalanceAlreadyStartedAdminRebalanceNotStartedAdminBucketQuotaExceededAdminNoSuchQuotaConfigurationHealNotImplementedHealNoSuchProcessHealInvalidClientTokenHealMissingBucketHealAlreadyRunningHealOverlappingPathsIncorrectContinuationTokenEmptyRequestBodyUnsupportedFunctionInvalidExpressionTypeBusyUnauthorizedAccessExpressionTooLongIllegalSQLFunctionArgumentInvalidKeyPathInvalidCompressionFormatInvalidFileHeaderInfoInvalidJSONTypeInvalidQuoteFieldsInvalidRequestParameterInvalidDataTypeInvalidTextEncodingInvalidDataSourceInvalidTableAliasMissingRequiredParameterObjectSerializationConflictUnsupportedSQLOperationUnsupportedSQLStructureUnsupportedSyntaxUnsupportedRangeHeaderLexerInvalidCharLexerInvalidOperatorLexerInvalidLiteralLexerInvalidIONLiteralParseExpectedDatePartParseExpectedKeywordParseExpectedTokenTypeParseExpected2TokenTypesParseExpectedNumberParseExpectedRightParenBuiltinFunctionCallParseExpectedTypeNameParseExpectedWhenClauseParseUnsupportedTokenParseUnsupportedLiteralsGroupByParseExpectedMemberParseUnsupportedSelectParseUnsupportedCaseParseUnsupportedCaseClauseParseUnsupportedAliasParseUnsupportedSyntaxParseUnknownOperatorParseMissingIdentAfterAtParseUnexpectedOperatorParseUnexpectedTermParseUnexpectedTokenParseUnexpectedKeywordParseExpectedExpressionParseExpectedLeftParenAfterCastParseExpectedLeftParenValueConstructorParseExpectedLeftParenBuiltinFunctionCallParseExpectedArgumentDelimiterParseCastArityParseInvalidTypeParamParseEmptySelectParseSelectMissingFromParseExpectedIdentForGroupNameParseExpectedIdentForAliasParseUnsupportedCallWithStarParseNonUnaryAgregateFunctionCallParseMalformedJoinParseExpectedIdentForAtParseAsteriskIsNotAloneInSelectListParseCannotMixSqbAndWildcardInSelectListParseInvalidContextForWildcardInSelectListIncorrectSQLFunctionArgumentTypeValueParseFailureEvaluatorInvalidArgumentsIntegerOverflowLikeInvalidInputsCastFailedInvalidCastEvaluatorInvalidTimestampFormatPatternEvaluatorInvalidTimestampFormatPatternSymbolForParsingEvaluatorTimestampFormatPatternDuplicateFieldsEvaluatorTimestampFormatPatternHourClockAmPmMismatchEvaluatorUnterminatedTimestampFormatPatternTokenEvaluatorInvalidTimestampFormatPatternTokenEvaluatorInvalidTimestampFormatPatternSymbolEvaluatorBindingDoesNotExistMissingHeadersInvalidColumnIndexAdminConfigNotificationTargetsFailedAdminProfilerNotEnabledInvalidDecompressedSizeAddUserInvalidArgumentAdminResourceInvalidArgumentAdminAccountNotEligibleAccountNotEligibleAdminServiceAccountNotFoundPostPolicyConditionInvalidFormatInvalidChecksum" +const _APIErrorCode_name = "NoneAccessDeniedBadDigestEntityTooSmallEntityTooLargePolicyTooLargeIncompleteBodyInternalErrorInvalidAccessKeyIDAccessKeyDisabledInvalidBucketNameInvalidDigestInvalidRangeInvalidRangePartNumberInvalidCopyPartRangeInvalidCopyPartRangeSourceInvalidMaxKeysInvalidEncodingMethodInvalidMaxUploadsInvalidMaxPartsInvalidPartNumberMarkerInvalidPartNumberInvalidRequestBodyInvalidCopySourceInvalidMetadataDirectiveInvalidCopyDestInvalidPolicyDocumentInvalidObjectStateMalformedXMLMissingContentLengthMissingContentMD5MissingRequestBodyErrorMissingSecurityHeaderNoSuchBucketNoSuchBucketPolicyNoSuchBucketLifecycleNoSuchLifecycleConfigurationInvalidLifecycleWithObjectLockNoSuchBucketSSEConfigNoSuchCORSConfigurationNoSuchWebsiteConfigurationReplicationConfigurationNotFoundErrorRemoteDestinationNotFoundErrorReplicationDestinationMissingLockRemoteTargetNotFoundErrorReplicationRemoteConnectionErrorReplicationBandwidthLimitErrorBucketRemoteIdenticalToSourceBucketRemoteAlreadyExistsBucketRemoteLabelInUseBucketRemoteArnTypeInvalidBucketRemoteArnInvalidBucketRemoteRemoveDisallowedRemoteTargetNotVersionedErrorReplicationSourceNotVersionedErrorReplicationNeedsVersioningErrorReplicationBucketNeedsVersioningErrorReplicationDenyEditErrorRemoteTargetDenyEditErrorReplicationNoExistingObjectsObjectRestoreAlreadyInProgressNoSuchKeyNoSuchUploadInvalidVersionIDNoSuchVersionNotImplementedPreconditionFailedRequestTimeTooSkewedSignatureDoesNotMatchMethodNotAllowedInvalidPartInvalidPartOrderAuthorizationHeaderMalformedMalformedPOSTRequestPOSTFileRequiredSignatureVersionNotSupportedBucketNotEmptyAllAccessDisabledPolicyInvalidVersionMissingFieldsMissingCredTagCredMalformedInvalidRegionInvalidServiceS3InvalidServiceSTSInvalidRequestVersionMissingSignTagMissingSignHeadersTagMalformedDateMalformedPresignedDateMalformedCredentialDateMalformedCredentialRegionMalformedExpiresNegativeExpiresAuthHeaderEmptyExpiredPresignRequestRequestNotReadyYetUnsignedHeadersMissingDateHeaderInvalidQuerySignatureAlgoInvalidQueryParamsBucketAlreadyOwnedByYouInvalidDurationBucketAlreadyExistsMetadataTooLargeUnsupportedMetadataMaximumExpiresSlowDownInvalidPrefixMarkerBadRequestKeyTooLongErrorInvalidBucketObjectLockConfigurationObjectLockConfigurationNotFoundObjectLockConfigurationNotAllowedNoSuchObjectLockConfigurationObjectLockedInvalidRetentionDatePastObjectLockRetainDateUnknownWORMModeDirectiveBucketTaggingNotFoundObjectLockInvalidHeadersInvalidTagDirectivePolicyAlreadyAttachedPolicyNotAttachedInvalidEncryptionMethodInvalidEncryptionKeyIDInsecureSSECustomerRequestSSEMultipartEncryptedSSEEncryptedObjectInvalidEncryptionParametersInvalidEncryptionParametersSSECInvalidSSECustomerAlgorithmInvalidSSECustomerKeyMissingSSECustomerKeyMissingSSECustomerKeyMD5SSECustomerKeyMD5MismatchInvalidSSECustomerParametersIncompatibleEncryptionMethodKMSNotConfiguredKMSKeyNotFoundExceptionNoAccessKeyInvalidTokenEventNotificationARNNotificationRegionNotificationOverlappingFilterNotificationFilterNameInvalidFilterNamePrefixFilterNameSuffixFilterValueInvalidOverlappingConfigsUnsupportedNotificationContentSHA256MismatchContentChecksumMismatchReadQuorumWriteQuorumStorageFullRequestBodyParseObjectExistsAsDirectoryInvalidObjectNameInvalidObjectNamePrefixSlashInvalidResourceNameServerNotInitializedOperationTimedOutClientDisconnectedOperationMaxedOutInvalidRequestTransitionStorageClassNotFoundErrorInvalidStorageClassBackendDownMalformedJSONAdminNoSuchUserAdminNoSuchGroupAdminGroupNotEmptyAdminNoSuchJobAdminNoSuchPolicyAdminPolicyChangeAlreadyAppliedAdminInvalidArgumentAdminInvalidAccessKeyAdminInvalidSecretKeyAdminConfigNoQuorumAdminConfigTooLargeAdminConfigBadJSONAdminNoSuchConfigTargetAdminConfigEnvOverriddenAdminConfigDuplicateKeysAdminConfigInvalidIDPTypeAdminConfigLDAPValidationAdminConfigIDPCfgNameAlreadyExistsAdminConfigIDPCfgNameDoesNotExistAdminCredentialsMismatchInsecureClientRequestObjectTamperedSiteReplicationInvalidRequestSiteReplicationPeerRespSiteReplicationBackendIssueSiteReplicationServiceAccountErrorSiteReplicationBucketConfigErrorSiteReplicationBucketMetaErrorSiteReplicationIAMErrorSiteReplicationConfigMissingAdminRebalanceAlreadyStartedAdminRebalanceNotStartedAdminBucketQuotaExceededAdminNoSuchQuotaConfigurationHealNotImplementedHealNoSuchProcessHealInvalidClientTokenHealMissingBucketHealAlreadyRunningHealOverlappingPathsIncorrectContinuationTokenEmptyRequestBodyUnsupportedFunctionInvalidExpressionTypeBusyUnauthorizedAccessExpressionTooLongIllegalSQLFunctionArgumentInvalidKeyPathInvalidCompressionFormatInvalidFileHeaderInfoInvalidJSONTypeInvalidQuoteFieldsInvalidRequestParameterInvalidDataTypeInvalidTextEncodingInvalidDataSourceInvalidTableAliasMissingRequiredParameterObjectSerializationConflictUnsupportedSQLOperationUnsupportedSQLStructureUnsupportedSyntaxUnsupportedRangeHeaderLexerInvalidCharLexerInvalidOperatorLexerInvalidLiteralLexerInvalidIONLiteralParseExpectedDatePartParseExpectedKeywordParseExpectedTokenTypeParseExpected2TokenTypesParseExpectedNumberParseExpectedRightParenBuiltinFunctionCallParseExpectedTypeNameParseExpectedWhenClauseParseUnsupportedTokenParseUnsupportedLiteralsGroupByParseExpectedMemberParseUnsupportedSelectParseUnsupportedCaseParseUnsupportedCaseClauseParseUnsupportedAliasParseUnsupportedSyntaxParseUnknownOperatorParseMissingIdentAfterAtParseUnexpectedOperatorParseUnexpectedTermParseUnexpectedTokenParseUnexpectedKeywordParseExpectedExpressionParseExpectedLeftParenAfterCastParseExpectedLeftParenValueConstructorParseExpectedLeftParenBuiltinFunctionCallParseExpectedArgumentDelimiterParseCastArityParseInvalidTypeParamParseEmptySelectParseSelectMissingFromParseExpectedIdentForGroupNameParseExpectedIdentForAliasParseUnsupportedCallWithStarParseNonUnaryAgregateFunctionCallParseMalformedJoinParseExpectedIdentForAtParseAsteriskIsNotAloneInSelectListParseCannotMixSqbAndWildcardInSelectListParseInvalidContextForWildcardInSelectListIncorrectSQLFunctionArgumentTypeValueParseFailureEvaluatorInvalidArgumentsIntegerOverflowLikeInvalidInputsCastFailedInvalidCastEvaluatorInvalidTimestampFormatPatternEvaluatorInvalidTimestampFormatPatternSymbolForParsingEvaluatorTimestampFormatPatternDuplicateFieldsEvaluatorTimestampFormatPatternHourClockAmPmMismatchEvaluatorUnterminatedTimestampFormatPatternTokenEvaluatorInvalidTimestampFormatPatternTokenEvaluatorInvalidTimestampFormatPatternSymbolEvaluatorBindingDoesNotExistMissingHeadersInvalidColumnIndexAdminConfigNotificationTargetsFailedAdminProfilerNotEnabledInvalidDecompressedSizeAddUserInvalidArgumentAdminResourceInvalidArgumentAdminAccountNotEligibleAccountNotEligibleAdminServiceAccountNotFoundPostPolicyConditionInvalidFormatInvalidChecksum" -var _APIErrorCode_index = [...]uint16{0, 4, 16, 25, 39, 53, 67, 81, 94, 112, 129, 146, 159, 171, 193, 213, 239, 253, 274, 291, 306, 329, 346, 364, 381, 405, 420, 441, 459, 471, 491, 508, 531, 552, 564, 582, 603, 631, 661, 682, 705, 731, 768, 798, 831, 856, 888, 918, 947, 972, 994, 1020, 1042, 1070, 1099, 1133, 1164, 1201, 1225, 1253, 1283, 1292, 1304, 1320, 1333, 1347, 1365, 1385, 1406, 1422, 1433, 1449, 1477, 1497, 1513, 1541, 1555, 1572, 1592, 1605, 1619, 1632, 1645, 1661, 1678, 1699, 1713, 1734, 1747, 1769, 1792, 1817, 1833, 1848, 1863, 1884, 1902, 1917, 1934, 1959, 1977, 2000, 2015, 2034, 2050, 2069, 2083, 2091, 2110, 2120, 2135, 2171, 2202, 2235, 2264, 2276, 2296, 2320, 2344, 2365, 2389, 2408, 2429, 2446, 2469, 2491, 2517, 2538, 2556, 2583, 2614, 2641, 2662, 2683, 2707, 2732, 2760, 2788, 2804, 2827, 2838, 2850, 2867, 2882, 2900, 2929, 2946, 2962, 2978, 2996, 3014, 3037, 3058, 3081, 3091, 3102, 3113, 3129, 3152, 3169, 3197, 3216, 3236, 3253, 3271, 3288, 3302, 3337, 3356, 3367, 3380, 3395, 3411, 3429, 3443, 3460, 3491, 3511, 3532, 3553, 3572, 3591, 3609, 3632, 3656, 3680, 3705, 3730, 3764, 3797, 3821, 3842, 3856, 3885, 3908, 3935, 3969, 4001, 4031, 4054, 4082, 4110, 4134, 4158, 4187, 4205, 4222, 4244, 4261, 4279, 4299, 4325, 4341, 4360, 4381, 4385, 4403, 4420, 4446, 4460, 4484, 4505, 4520, 4538, 4561, 4576, 4595, 4612, 4629, 4653, 4680, 4703, 4726, 4743, 4765, 4781, 4801, 4820, 4842, 4863, 4883, 4905, 4929, 4948, 4990, 5011, 5034, 5055, 5086, 5105, 5127, 5147, 5173, 5194, 5216, 5236, 5260, 5283, 5302, 5322, 5344, 5367, 5398, 5436, 5477, 5507, 5521, 5542, 5558, 5580, 5610, 5636, 5664, 5697, 5715, 5738, 5773, 5813, 5855, 5887, 5904, 5929, 5944, 5961, 5971, 5982, 6020, 6074, 6120, 6172, 6220, 6263, 6307, 6335, 6349, 6367, 6403, 6426, 6449, 6471, 6499, 6522, 6540, 6567, 6599, 6614} +var _APIErrorCode_index = [...]uint16{0, 4, 16, 25, 39, 53, 67, 81, 94, 112, 129, 146, 159, 171, 193, 213, 239, 253, 274, 291, 306, 329, 346, 364, 381, 405, 420, 441, 459, 471, 491, 508, 531, 552, 564, 582, 603, 631, 661, 682, 705, 731, 768, 798, 831, 856, 888, 918, 947, 972, 994, 1020, 1042, 1070, 1099, 1133, 1164, 1201, 1225, 1250, 1278, 1308, 1317, 1329, 1345, 1358, 1372, 1390, 1410, 1431, 1447, 1458, 1474, 1502, 1522, 1538, 1566, 1580, 1597, 1617, 1630, 1644, 1657, 1670, 1686, 1703, 1724, 1738, 1759, 1772, 1794, 1817, 1842, 1858, 1873, 1888, 1909, 1927, 1942, 1959, 1984, 2002, 2025, 2040, 2059, 2075, 2094, 2108, 2116, 2135, 2145, 2160, 2196, 2227, 2260, 2289, 2301, 2321, 2345, 2369, 2390, 2414, 2433, 2454, 2471, 2494, 2516, 2542, 2563, 2581, 2608, 2639, 2666, 2687, 2708, 2732, 2757, 2785, 2813, 2829, 2852, 2863, 2875, 2892, 2907, 2925, 2954, 2971, 2987, 3003, 3021, 3039, 3062, 3083, 3106, 3116, 3127, 3138, 3154, 3177, 3194, 3222, 3241, 3261, 3278, 3296, 3313, 3327, 3362, 3381, 3392, 3405, 3420, 3436, 3454, 3468, 3485, 3516, 3536, 3557, 3578, 3597, 3616, 3634, 3657, 3681, 3705, 3730, 3755, 3789, 3822, 3846, 3867, 3881, 3910, 3933, 3960, 3994, 4026, 4056, 4079, 4107, 4135, 4159, 4183, 4212, 4230, 4247, 4269, 4286, 4304, 4324, 4350, 4366, 4385, 4406, 4410, 4428, 4445, 4471, 4485, 4509, 4530, 4545, 4563, 4586, 4601, 4620, 4637, 4654, 4678, 4705, 4728, 4751, 4768, 4790, 4806, 4826, 4845, 4867, 4888, 4908, 4930, 4954, 4973, 5015, 5036, 5059, 5080, 5111, 5130, 5152, 5172, 5198, 5219, 5241, 5261, 5285, 5308, 5327, 5347, 5369, 5392, 5423, 5461, 5502, 5532, 5546, 5567, 5583, 5605, 5635, 5661, 5689, 5722, 5740, 5763, 5798, 5838, 5880, 5912, 5929, 5954, 5969, 5986, 5996, 6007, 6045, 6099, 6145, 6197, 6245, 6288, 6332, 6360, 6374, 6392, 6428, 6451, 6474, 6496, 6524, 6547, 6565, 6592, 6624, 6639} func (i APIErrorCode) String() string { if i < 0 || i >= APIErrorCode(len(_APIErrorCode_index)-1) { diff --git a/cmd/bucket-replication.go b/cmd/bucket-replication.go index 57841b116..331c2f430 100644 --- a/cmd/bucket-replication.go +++ b/cmd/bucket-replication.go @@ -415,7 +415,7 @@ func replicateDelete(ctx context.Context, dobj DeletedObjectReplicationInfo, obj lkctx, err := lk.GetLock(ctx, globalOperationTimeout) if err != nil { globalReplicationPool.queueMRFSave(dobj.ToMRFEntry()) - logger.LogIf(ctx, fmt.Errorf("failed to get lock for object: %s bucket:%s arn:%s", dobj.ObjectName, bucket, rcfg.RoleArn)) + logger.LogIf(ctx, fmt.Errorf("failed to get lock for object: %s bucket:%s arn:%s", dobj.ObjectName, bucket, dobj.TargetArn)) sendEvent(eventArgs{ BucketName: bucket, Object: ObjectInfo{ @@ -938,7 +938,7 @@ func replicateObject(ctx context.Context, ri ReplicateObjectInfo, objectAPI Obje Host: "Internal: [Replication]", }) globalReplicationPool.queueMRFSave(ri.ToMRFEntry()) - logger.LogIf(ctx, fmt.Errorf("failed to get lock for object: %s bucket:%s arn:%s", object, bucket, cfg.RoleArn)) + logger.LogIf(ctx, fmt.Errorf("failed to get lock for object: %s bucket:%s arn:%s", object, bucket, ri.TargetArn)) return } ctx = lkctx.Context()