diff --git a/internal/protocoltest/awsrestjson/deserializers.go b/internal/protocoltest/awsrestjson/deserializers.go index 8451870ea9a..260307d2269 100644 --- a/internal/protocoltest/awsrestjson/deserializers.go +++ b/internal/protocoltest/awsrestjson/deserializers.go @@ -12792,7 +12792,13 @@ func awsRestjson1_deserializeDocumentComplexError(v **types.ComplexError, value sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Header": if value != nil { @@ -12822,6 +12828,9 @@ func awsRestjson1_deserializeDocumentComplexError(v **types.ComplexError, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13272,13 +13281,22 @@ func awsRestjson1_deserializeDocumentFooError(v **types.FooError, value interfac sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13303,7 +13321,13 @@ func awsRestjson1_deserializeDocumentInvalidGreeting(v **types.InvalidGreeting, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13319,6 +13343,9 @@ func awsRestjson1_deserializeDocumentInvalidGreeting(v **types.InvalidGreeting, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/internal/protocoltest/jsonrpc/deserializers.go b/internal/protocoltest/jsonrpc/deserializers.go index 43ed4444b87..b240f607a81 100644 --- a/internal/protocoltest/jsonrpc/deserializers.go +++ b/internal/protocoltest/jsonrpc/deserializers.go @@ -2078,7 +2078,13 @@ func awsAwsjson11_deserializeDocumentComplexError(v **types.ComplexError, value sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Nested": if err := awsAwsjson11_deserializeDocumentComplexNestedErrorData(&sv.Nested, value); err != nil { @@ -2099,6 +2105,9 @@ func awsAwsjson11_deserializeDocumentComplexError(v **types.ComplexError, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2202,7 +2211,13 @@ func awsAwsjson11_deserializeDocumentErrorWithMembers(v **types.ErrorWithMembers sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -2264,6 +2279,9 @@ func awsAwsjson11_deserializeDocumentErrorWithMembers(v **types.ErrorWithMembers } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2288,13 +2306,22 @@ func awsAwsjson11_deserializeDocumentErrorWithoutMembers(v **types.ErrorWithoutM sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2319,13 +2346,22 @@ func awsAwsjson11_deserializeDocumentFooError(v **types.FooError, value interfac sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2350,7 +2386,13 @@ func awsAwsjson11_deserializeDocumentInvalidGreeting(v **types.InvalidGreeting, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2366,6 +2408,9 @@ func awsAwsjson11_deserializeDocumentInvalidGreeting(v **types.InvalidGreeting, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/internal/protocoltest/jsonrpc10/deserializers.go b/internal/protocoltest/jsonrpc10/deserializers.go index 1d8db7cdf66..b8e437046d5 100644 --- a/internal/protocoltest/jsonrpc10/deserializers.go +++ b/internal/protocoltest/jsonrpc10/deserializers.go @@ -1678,7 +1678,13 @@ func awsAwsjson10_deserializeDocumentComplexError(v **types.ComplexError, value sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Nested": if err := awsAwsjson10_deserializeDocumentComplexNestedErrorData(&sv.Nested, value); err != nil { @@ -1699,6 +1705,9 @@ func awsAwsjson10_deserializeDocumentComplexError(v **types.ComplexError, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1926,13 +1935,22 @@ func awsAwsjson10_deserializeDocumentFooError(v **types.FooError, value interfac sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1957,7 +1975,13 @@ func awsAwsjson10_deserializeDocumentInvalidGreeting(v **types.InvalidGreeting, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1973,6 +1997,9 @@ func awsAwsjson10_deserializeDocumentInvalidGreeting(v **types.InvalidGreeting, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/accessanalyzer/deserializers.go b/service/accessanalyzer/deserializers.go index 6aec947f9bc..95eab892082 100644 --- a/service/accessanalyzer/deserializers.go +++ b/service/accessanalyzer/deserializers.go @@ -5838,7 +5838,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5854,6 +5860,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7211,7 +7220,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7245,6 +7260,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8657,7 +8675,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8686,6 +8710,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8741,7 +8768,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8757,6 +8790,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10222,7 +10258,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10256,6 +10298,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10637,7 +10682,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10671,6 +10722,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10985,7 +11039,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11014,6 +11074,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11126,7 +11189,13 @@ func awsRestjson1_deserializeDocumentUnprocessableEntityException(v **types.Unpr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11142,6 +11211,9 @@ func awsRestjson1_deserializeDocumentUnprocessableEntityException(v **types.Unpr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11673,7 +11745,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -11703,6 +11781,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/account/deserializers.go b/service/account/deserializers.go index f6a849f50ba..d28bdc14d50 100644 --- a/service/account/deserializers.go +++ b/service/account/deserializers.go @@ -1972,7 +1972,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1988,6 +1994,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2088,7 +2097,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2104,6 +2119,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2267,7 +2285,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2283,6 +2307,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2390,7 +2417,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2406,6 +2439,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2430,7 +2466,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2446,6 +2488,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2470,7 +2515,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -2500,6 +2551,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/acm/deserializers.go b/service/acm/deserializers.go index ae6412b2545..b2a592cf50c 100644 --- a/service/acm/deserializers.go +++ b/service/acm/deserializers.go @@ -2259,7 +2259,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2275,6 +2281,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2875,7 +2884,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2891,6 +2906,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3261,7 +3279,13 @@ func awsAwsjson11_deserializeDocumentInvalidArgsException(v **types.InvalidArgsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3277,6 +3301,9 @@ func awsAwsjson11_deserializeDocumentInvalidArgsException(v **types.InvalidArgsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3301,7 +3328,13 @@ func awsAwsjson11_deserializeDocumentInvalidArnException(v **types.InvalidArnExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3317,6 +3350,9 @@ func awsAwsjson11_deserializeDocumentInvalidArnException(v **types.InvalidArnExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3341,7 +3377,13 @@ func awsAwsjson11_deserializeDocumentInvalidDomainValidationOptionsException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3357,6 +3399,9 @@ func awsAwsjson11_deserializeDocumentInvalidDomainValidationOptionsException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3381,7 +3426,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3397,6 +3448,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3421,7 +3475,13 @@ func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3437,6 +3497,9 @@ func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3461,7 +3524,13 @@ func awsAwsjson11_deserializeDocumentInvalidTagException(v **types.InvalidTagExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3477,6 +3546,9 @@ func awsAwsjson11_deserializeDocumentInvalidTagException(v **types.InvalidTagExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3611,7 +3683,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3627,6 +3705,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3721,7 +3802,13 @@ func awsAwsjson11_deserializeDocumentRequestInProgressException(v **types.Reques sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3737,6 +3824,9 @@ func awsAwsjson11_deserializeDocumentRequestInProgressException(v **types.Reques } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3761,7 +3851,13 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3777,6 +3873,9 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3801,7 +3900,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3817,6 +3922,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3982,7 +4090,13 @@ func awsAwsjson11_deserializeDocumentTagPolicyException(v **types.TagPolicyExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3998,6 +4112,9 @@ func awsAwsjson11_deserializeDocumentTagPolicyException(v **types.TagPolicyExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4022,7 +4139,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4038,6 +4161,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4062,7 +4188,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4078,6 +4210,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4138,7 +4273,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4154,6 +4295,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/acmpca/deserializers.go b/service/acmpca/deserializers.go index 6775f2c70df..5cbeb667ac7 100644 --- a/service/acmpca/deserializers.go +++ b/service/acmpca/deserializers.go @@ -3895,7 +3895,13 @@ func awsAwsjson11_deserializeDocumentCertificateMismatchException(v **types.Cert sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3911,6 +3917,9 @@ func awsAwsjson11_deserializeDocumentCertificateMismatchException(v **types.Cert } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3935,7 +3944,13 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3951,6 +3966,9 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4364,7 +4382,13 @@ func awsAwsjson11_deserializeDocumentInvalidArgsException(v **types.InvalidArgsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4380,6 +4404,9 @@ func awsAwsjson11_deserializeDocumentInvalidArgsException(v **types.InvalidArgsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4404,7 +4431,13 @@ func awsAwsjson11_deserializeDocumentInvalidArnException(v **types.InvalidArnExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4420,6 +4453,9 @@ func awsAwsjson11_deserializeDocumentInvalidArnException(v **types.InvalidArnExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4444,7 +4480,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4460,6 +4502,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4484,7 +4529,13 @@ func awsAwsjson11_deserializeDocumentInvalidPolicyException(v **types.InvalidPol sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4500,6 +4551,9 @@ func awsAwsjson11_deserializeDocumentInvalidPolicyException(v **types.InvalidPol } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4524,7 +4578,13 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4540,6 +4600,9 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4564,7 +4627,13 @@ func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4580,6 +4649,9 @@ func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4604,7 +4676,13 @@ func awsAwsjson11_deserializeDocumentInvalidTagException(v **types.InvalidTagExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4620,6 +4698,9 @@ func awsAwsjson11_deserializeDocumentInvalidTagException(v **types.InvalidTagExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4756,7 +4837,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4772,6 +4859,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4796,7 +4886,13 @@ func awsAwsjson11_deserializeDocumentLockoutPreventedException(v **types.Lockout sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4812,6 +4908,9 @@ func awsAwsjson11_deserializeDocumentLockoutPreventedException(v **types.Lockout } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4836,7 +4935,13 @@ func awsAwsjson11_deserializeDocumentMalformedCertificateException(v **types.Mal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4852,6 +4957,9 @@ func awsAwsjson11_deserializeDocumentMalformedCertificateException(v **types.Mal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4876,7 +4984,13 @@ func awsAwsjson11_deserializeDocumentMalformedCSRException(v **types.MalformedCS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4892,6 +5006,9 @@ func awsAwsjson11_deserializeDocumentMalformedCSRException(v **types.MalformedCS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5102,7 +5219,13 @@ func awsAwsjson11_deserializeDocumentPermissionAlreadyExistsException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5118,6 +5241,9 @@ func awsAwsjson11_deserializeDocumentPermissionAlreadyExistsException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5176,7 +5302,13 @@ func awsAwsjson11_deserializeDocumentRequestAlreadyProcessedException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5192,6 +5324,9 @@ func awsAwsjson11_deserializeDocumentRequestAlreadyProcessedException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5216,7 +5351,13 @@ func awsAwsjson11_deserializeDocumentRequestFailedException(v **types.RequestFai sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5232,6 +5373,9 @@ func awsAwsjson11_deserializeDocumentRequestFailedException(v **types.RequestFai } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5256,7 +5400,13 @@ func awsAwsjson11_deserializeDocumentRequestInProgressException(v **types.Reques sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5272,6 +5422,9 @@ func awsAwsjson11_deserializeDocumentRequestInProgressException(v **types.Reques } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5296,7 +5449,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5312,6 +5471,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5460,7 +5622,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5476,6 +5644,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/amp/deserializers.go b/service/amp/deserializers.go index d44fdd27e72..aae8b8b470e 100644 --- a/service/amp/deserializers.go +++ b/service/amp/deserializers.go @@ -4561,7 +4561,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4577,6 +4583,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4771,7 +4780,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4805,6 +4820,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4919,7 +4937,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4948,6 +4972,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5107,7 +5134,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5141,6 +5174,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5860,7 +5896,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5912,6 +5954,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6048,7 +6093,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6095,6 +6146,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6119,7 +6173,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -6149,6 +6209,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/amplify/deserializers.go b/service/amplify/deserializers.go index 4bd3ffc58fa..6f5f575786c 100644 --- a/service/amplify/deserializers.go +++ b/service/amplify/deserializers.go @@ -7033,7 +7033,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7049,6 +7055,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7619,7 +7628,13 @@ func awsRestjson1_deserializeDocumentDependentServiceFailureException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7635,6 +7650,9 @@ func awsRestjson1_deserializeDocumentDependentServiceFailureException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7883,7 +7901,13 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7899,6 +7923,9 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8149,7 +8176,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8165,6 +8198,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8189,7 +8225,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8205,6 +8247,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8303,7 +8348,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -8328,6 +8379,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8735,7 +8789,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8751,6 +8811,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/amplifybackend/deserializers.go b/service/amplifybackend/deserializers.go index dba595054aa..df9fce305dd 100644 --- a/service/amplifybackend/deserializers.go +++ b/service/amplifybackend/deserializers.go @@ -6889,7 +6889,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6905,6 +6911,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7449,7 +7458,13 @@ func awsRestjson1_deserializeDocumentGatewayTimeoutException(v **types.GatewayTi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7465,6 +7480,9 @@ func awsRestjson1_deserializeDocumentGatewayTimeoutException(v **types.GatewayTi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7973,7 +7991,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7998,6 +8022,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8207,7 +8234,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "limitType": if value != nil { @@ -8232,6 +8265,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/amplifyuibuilder/deserializers.go b/service/amplifyuibuilder/deserializers.go index 42a9711cb70..557b02d2f1d 100644 --- a/service/amplifyuibuilder/deserializers.go +++ b/service/amplifyuibuilder/deserializers.go @@ -8652,7 +8652,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8668,6 +8674,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8692,7 +8701,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8708,6 +8723,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9126,7 +9144,13 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9142,6 +9166,9 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9166,7 +9193,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9182,6 +9215,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9326,7 +9362,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9342,6 +9384,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9888,7 +9933,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9904,6 +9955,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9928,7 +9982,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9944,6 +10004,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/apigateway/deserializers.go b/service/apigateway/deserializers.go index f78b1d2ac72..c6910c61f95 100644 --- a/service/apigateway/deserializers.go +++ b/service/apigateway/deserializers.go @@ -23268,7 +23268,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23284,6 +23290,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23549,7 +23558,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23565,6 +23580,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24360,7 +24378,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24385,6 +24409,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26112,7 +26139,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26128,6 +26161,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26682,7 +26718,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26707,6 +26749,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27027,7 +27072,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -27052,6 +27103,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27076,7 +27130,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -27092,6 +27152,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/apigatewaymanagementapi/deserializers.go b/service/apigatewaymanagementapi/deserializers.go index c9c94d411b6..9e8b40a4c4f 100644 --- a/service/apigatewaymanagementapi/deserializers.go +++ b/service/apigatewaymanagementapi/deserializers.go @@ -488,13 +488,22 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -519,13 +528,22 @@ func awsRestjson1_deserializeDocumentGoneException(v **types.GoneException, valu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -599,13 +617,22 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -630,7 +657,13 @@ func awsRestjson1_deserializeDocumentPayloadTooLargeException(v **types.PayloadT sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -646,6 +679,9 @@ func awsRestjson1_deserializeDocumentPayloadTooLargeException(v **types.PayloadT } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/apigatewayv2/deserializers.go b/service/apigatewayv2/deserializers.go index 2ee0ebe2b1d..d409ab0ea32 100644 --- a/service/apigatewayv2/deserializers.go +++ b/service/apigatewayv2/deserializers.go @@ -13906,7 +13906,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13922,6 +13928,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14387,7 +14396,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14403,6 +14418,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14427,7 +14445,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14443,6 +14467,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15483,7 +15510,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15508,6 +15541,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16386,7 +16422,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "limitType": if value != nil { @@ -16411,6 +16453,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/appconfig/deserializers.go b/service/appconfig/deserializers.go index a0515a5bbc7..fb37cb1d4ae 100644 --- a/service/appconfig/deserializers.go +++ b/service/appconfig/deserializers.go @@ -9210,7 +9210,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Details": if err := awsRestjson1_deserializeDocumentBadRequestDetails(&sv.Details, value); err != nil { @@ -9240,6 +9246,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9379,7 +9388,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9395,6 +9410,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10448,7 +10466,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10464,6 +10488,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10810,7 +10837,13 @@ func awsRestjson1_deserializeDocumentPayloadTooLargeException(v **types.PayloadT sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Limit": if value != nil { @@ -10903,6 +10936,9 @@ func awsRestjson1_deserializeDocumentPayloadTooLargeException(v **types.PayloadT } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10927,7 +10963,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10952,6 +10994,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10976,7 +11021,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10992,6 +11043,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/appconfigdata/deserializers.go b/service/appconfigdata/deserializers.go index 7ba4a570625..5d1859cae2a 100644 --- a/service/appconfigdata/deserializers.go +++ b/service/appconfigdata/deserializers.go @@ -557,7 +557,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Details": if err := awsRestjson1_deserializeDocumentBadRequestDetails(&sv.Details, value); err != nil { @@ -587,6 +593,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -611,7 +620,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -627,6 +642,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -726,7 +744,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -756,6 +780,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -816,7 +843,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -832,6 +865,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/appfabric/deserializers.go b/service/appfabric/deserializers.go index b5b171653ac..9c086f09bf6 100644 --- a/service/appfabric/deserializers.go +++ b/service/appfabric/deserializers.go @@ -4154,7 +4154,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4170,6 +4176,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4646,7 +4655,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4680,6 +4695,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5223,7 +5241,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5252,6 +5276,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5316,7 +5343,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5350,6 +5383,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5423,7 +5459,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5475,6 +5517,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5680,7 +5725,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5727,6 +5778,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6017,7 +6071,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -6047,6 +6107,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/appflow/deserializers.go b/service/appflow/deserializers.go index 673e6afa4e0..02a1c721ab3 100644 --- a/service/appflow/deserializers.go +++ b/service/appflow/deserializers.go @@ -4345,7 +4345,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4361,6 +4367,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4768,7 +4777,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4784,6 +4799,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4808,7 +4826,13 @@ func awsRestjson1_deserializeDocumentConnectorAuthenticationException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4824,6 +4848,9 @@ func awsRestjson1_deserializeDocumentConnectorAuthenticationException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6375,7 +6402,13 @@ func awsRestjson1_deserializeDocumentConnectorServerException(v **types.Connecto sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6391,6 +6424,9 @@ func awsRestjson1_deserializeDocumentConnectorServerException(v **types.Connecto } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8748,7 +8784,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8764,6 +8806,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10216,7 +10261,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10232,6 +10283,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11384,7 +11438,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11400,6 +11460,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12582,7 +12645,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12598,6 +12667,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12913,7 +12985,13 @@ func awsRestjson1_deserializeDocumentUnsupportedOperationException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12929,6 +13007,9 @@ func awsRestjson1_deserializeDocumentUnsupportedOperationException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13088,7 +13169,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13104,6 +13191,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/appintegrations/deserializers.go b/service/appintegrations/deserializers.go index bbda280e5c4..14bb3ced787 100644 --- a/service/appintegrations/deserializers.go +++ b/service/appintegrations/deserializers.go @@ -3902,7 +3902,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3918,6 +3924,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4478,7 +4487,13 @@ func awsRestjson1_deserializeDocumentDuplicateResourceException(v **types.Duplic sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4494,6 +4509,9 @@ func awsRestjson1_deserializeDocumentDuplicateResourceException(v **types.Duplic } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5026,7 +5044,13 @@ func awsRestjson1_deserializeDocumentInternalServiceError(v **types.InternalServ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5042,6 +5066,9 @@ func awsRestjson1_deserializeDocumentInternalServiceError(v **types.InternalServ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5066,7 +5093,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5082,6 +5115,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5366,7 +5402,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5382,6 +5424,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5406,7 +5451,13 @@ func awsRestjson1_deserializeDocumentResourceQuotaExceededException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5422,6 +5473,9 @@ func awsRestjson1_deserializeDocumentResourceQuotaExceededException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5623,7 +5677,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5639,6 +5699,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5663,7 +5726,13 @@ func awsRestjson1_deserializeDocumentUnsupportedOperationException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5679,6 +5748,9 @@ func awsRestjson1_deserializeDocumentUnsupportedOperationException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/applicationautoscaling/deserializers.go b/service/applicationautoscaling/deserializers.go index 1de6fd049ce..503a767cae9 100644 --- a/service/applicationautoscaling/deserializers.go +++ b/service/applicationautoscaling/deserializers.go @@ -2002,7 +2002,13 @@ func awsAwsjson11_deserializeDocumentConcurrentUpdateException(v **types.Concurr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2018,6 +2024,9 @@ func awsAwsjson11_deserializeDocumentConcurrentUpdateException(v **types.Concurr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2119,7 +2128,13 @@ func awsAwsjson11_deserializeDocumentFailedResourceAccessException(v **types.Fai sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2135,6 +2150,9 @@ func awsAwsjson11_deserializeDocumentFailedResourceAccessException(v **types.Fai } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2159,7 +2177,13 @@ func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2175,6 +2199,9 @@ func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2199,7 +2226,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2215,6 +2248,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2239,7 +2275,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2255,6 +2297,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2475,7 +2520,13 @@ func awsAwsjson11_deserializeDocumentObjectNotFoundException(v **types.ObjectNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2491,6 +2542,9 @@ func awsAwsjson11_deserializeDocumentObjectNotFoundException(v **types.ObjectNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2564,7 +2618,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2589,6 +2649,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4068,7 +4131,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4093,6 +4162,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4117,7 +4189,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4133,6 +4211,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/applicationcostprofiler/deserializers.go b/service/applicationcostprofiler/deserializers.go index 592ce44c2df..d8bdac8f498 100644 --- a/service/applicationcostprofiler/deserializers.go +++ b/service/applicationcostprofiler/deserializers.go @@ -1291,7 +1291,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1307,6 +1313,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1331,7 +1340,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1347,6 +1362,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1558,7 +1576,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1574,6 +1598,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1598,7 +1625,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1614,6 +1647,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1638,7 +1674,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1654,6 +1696,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/applicationdiscoveryservice/deserializers.go b/service/applicationdiscoveryservice/deserializers.go index 4c8c68a7a58..c99c79253b7 100644 --- a/service/applicationdiscoveryservice/deserializers.go +++ b/service/applicationdiscoveryservice/deserializers.go @@ -4214,7 +4214,13 @@ func awsAwsjson11_deserializeDocumentAuthorizationErrorException(v **types.Autho sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4230,6 +4236,9 @@ func awsAwsjson11_deserializeDocumentAuthorizationErrorException(v **types.Autho } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4769,7 +4778,13 @@ func awsAwsjson11_deserializeDocumentConflictErrorException(v **types.ConflictEr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4785,6 +4800,9 @@ func awsAwsjson11_deserializeDocumentConflictErrorException(v **types.ConflictEr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5862,7 +5880,13 @@ func awsAwsjson11_deserializeDocumentHomeRegionNotSetException(v **types.HomeReg sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5878,6 +5902,9 @@ func awsAwsjson11_deserializeDocumentHomeRegionNotSetException(v **types.HomeReg } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6121,7 +6148,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6137,6 +6170,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6161,7 +6197,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterValueException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6177,6 +6219,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterValueException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6201,7 +6246,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6217,6 +6268,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6359,7 +6413,13 @@ func awsAwsjson11_deserializeDocumentOperationNotPermittedException(v **types.Op sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6375,6 +6435,9 @@ func awsAwsjson11_deserializeDocumentOperationNotPermittedException(v **types.Op } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6399,7 +6462,13 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6415,6 +6484,9 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6439,7 +6511,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6455,6 +6533,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6515,7 +6596,13 @@ func awsAwsjson11_deserializeDocumentServerInternalErrorException(v **types.Serv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6531,6 +6618,9 @@ func awsAwsjson11_deserializeDocumentServerInternalErrorException(v **types.Serv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/applicationinsights/deserializers.go b/service/applicationinsights/deserializers.go index d5a6ee03792..61e68bec5f4 100644 --- a/service/applicationinsights/deserializers.go +++ b/service/applicationinsights/deserializers.go @@ -4215,7 +4215,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4231,6 +4237,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4543,7 +4552,13 @@ func awsAwsjson11_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4559,6 +4574,9 @@ func awsAwsjson11_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4797,7 +4815,13 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4813,6 +4837,9 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5780,7 +5807,13 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5796,6 +5829,9 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5856,7 +5892,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5872,6 +5914,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5979,7 +6024,13 @@ func awsAwsjson11_deserializeDocumentTagsAlreadyExistException(v **types.TagsAlr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5995,6 +6046,9 @@ func awsAwsjson11_deserializeDocumentTagsAlreadyExistException(v **types.TagsAlr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6019,7 +6073,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6044,6 +6104,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6068,7 +6131,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6084,6 +6153,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/applicationsignals/deserializers.go b/service/applicationsignals/deserializers.go index 86dcfb6aa72..f7af3efa337 100644 --- a/service/applicationsignals/deserializers.go +++ b/service/applicationsignals/deserializers.go @@ -2590,7 +2590,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2606,6 +2612,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2803,7 +2812,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2819,6 +2834,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3647,7 +3665,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3681,6 +3705,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4742,7 +4769,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4758,6 +4791,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4945,7 +4981,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4961,6 +5003,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4985,7 +5030,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5001,6 +5052,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/appmesh/deserializers.go b/service/appmesh/deserializers.go index 0c07d3a9d44..9792bbb2498 100644 --- a/service/appmesh/deserializers.go +++ b/service/appmesh/deserializers.go @@ -7098,7 +7098,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7114,6 +7120,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7315,7 +7324,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7331,6 +7346,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7551,7 +7569,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7567,6 +7591,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10047,7 +10074,13 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10063,6 +10096,9 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10170,7 +10206,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10186,6 +10228,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11170,7 +11215,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11186,6 +11237,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11410,7 +11464,13 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11426,6 +11486,9 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11953,7 +12016,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11969,6 +12038,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12599,7 +12671,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12615,6 +12693,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12639,7 +12720,13 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12655,6 +12742,9 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/apprunner/deserializers.go b/service/apprunner/deserializers.go index 07ed3cb9c2c..86bc7afd226 100644 --- a/service/apprunner/deserializers.go +++ b/service/apprunner/deserializers.go @@ -5954,7 +5954,13 @@ func awsAwsjson10_deserializeDocumentInternalServiceErrorException(v **types.Int sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5970,6 +5976,9 @@ func awsAwsjson10_deserializeDocumentInternalServiceErrorException(v **types.Int } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5994,7 +6003,13 @@ func awsAwsjson10_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6010,6 +6025,9 @@ func awsAwsjson10_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6034,7 +6052,13 @@ func awsAwsjson10_deserializeDocumentInvalidStateException(v **types.InvalidStat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6050,6 +6074,9 @@ func awsAwsjson10_deserializeDocumentInvalidStateException(v **types.InvalidStat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6486,7 +6513,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6502,6 +6535,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6842,7 +6878,13 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6858,6 +6900,9 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/appstream/deserializers.go b/service/appstream/deserializers.go index 97ca38ac4f0..370ecf5f7a4 100644 --- a/service/appstream/deserializers.go +++ b/service/appstream/deserializers.go @@ -11012,7 +11012,13 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11028,6 +11034,9 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11456,7 +11465,13 @@ func awsAwsjson11_deserializeDocumentEntitlementAlreadyExistsException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11472,6 +11487,9 @@ func awsAwsjson11_deserializeDocumentEntitlementAlreadyExistsException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11613,7 +11631,13 @@ func awsAwsjson11_deserializeDocumentEntitlementNotFoundException(v **types.Enti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11629,6 +11653,9 @@ func awsAwsjson11_deserializeDocumentEntitlementNotFoundException(v **types.Enti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12726,7 +12753,13 @@ func awsAwsjson11_deserializeDocumentIncompatibleImageException(v **types.Incomp sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12742,6 +12775,9 @@ func awsAwsjson11_deserializeDocumentIncompatibleImageException(v **types.Incomp } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12766,7 +12802,13 @@ func awsAwsjson11_deserializeDocumentInvalidAccountStatusException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12782,6 +12824,9 @@ func awsAwsjson11_deserializeDocumentInvalidAccountStatusException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12806,7 +12851,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterCombinationException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12822,6 +12873,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterCombinationException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12846,7 +12900,13 @@ func awsAwsjson11_deserializeDocumentInvalidRoleException(v **types.InvalidRoleE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12862,6 +12922,9 @@ func awsAwsjson11_deserializeDocumentInvalidRoleException(v **types.InvalidRoleE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12969,7 +13032,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12985,6 +13054,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13094,7 +13166,13 @@ func awsAwsjson11_deserializeDocumentOperationNotPermittedException(v **types.Op sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13110,6 +13188,9 @@ func awsAwsjson11_deserializeDocumentOperationNotPermittedException(v **types.Op } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13206,7 +13287,13 @@ func awsAwsjson11_deserializeDocumentRequestLimitExceededException(v **types.Req sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13222,6 +13309,9 @@ func awsAwsjson11_deserializeDocumentRequestLimitExceededException(v **types.Req } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13246,7 +13336,13 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13262,6 +13358,9 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13385,7 +13484,13 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13401,6 +13506,9 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13425,7 +13533,13 @@ func awsAwsjson11_deserializeDocumentResourceNotAvailableException(v **types.Res sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13441,6 +13555,9 @@ func awsAwsjson11_deserializeDocumentResourceNotAvailableException(v **types.Res } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13465,7 +13582,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13481,6 +13604,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/appsync/deserializers.go b/service/appsync/deserializers.go index f82894cef2a..dfdcaa33f32 100644 --- a/service/appsync/deserializers.go +++ b/service/appsync/deserializers.go @@ -11889,7 +11889,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11905,6 +11911,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12374,7 +12383,13 @@ func awsRestjson1_deserializeDocumentApiKeyLimitExceededException(v **types.ApiK sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12390,6 +12405,9 @@ func awsRestjson1_deserializeDocumentApiKeyLimitExceededException(v **types.ApiK } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12448,7 +12466,13 @@ func awsRestjson1_deserializeDocumentApiKeyValidityOutOfBoundsException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12464,6 +12488,9 @@ func awsRestjson1_deserializeDocumentApiKeyValidityOutOfBoundsException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12488,7 +12515,13 @@ func awsRestjson1_deserializeDocumentApiLimitExceededException(v **types.ApiLimi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12504,6 +12537,9 @@ func awsRestjson1_deserializeDocumentApiLimitExceededException(v **types.ApiLimi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12904,7 +12940,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "detail": if err := awsRestjson1_deserializeDocumentBadRequestDetail(&sv.Detail, value); err != nil { @@ -12934,6 +12976,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13465,7 +13510,13 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13481,6 +13532,9 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13505,7 +13559,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13521,6 +13581,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15214,7 +15277,13 @@ func awsRestjson1_deserializeDocumentGraphQLSchemaException(v **types.GraphQLSch sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15230,6 +15299,9 @@ func awsRestjson1_deserializeDocumentGraphQLSchemaException(v **types.GraphQLSch } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15299,7 +15371,13 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15315,6 +15393,9 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15481,7 +15562,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15497,6 +15584,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15651,7 +15741,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15667,6 +15763,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16151,7 +16250,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16167,6 +16272,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16692,7 +16800,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16708,6 +16822,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/apptest/deserializers.go b/service/apptest/deserializers.go index 6010b355229..160d9feaf4c 100644 --- a/service/apptest/deserializers.go +++ b/service/apptest/deserializers.go @@ -4576,7 +4576,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4592,6 +4598,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5435,7 +5444,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5469,6 +5484,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6107,7 +6125,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6136,6 +6160,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7446,7 +7473,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7480,6 +7513,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7662,7 +7698,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7714,6 +7756,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9357,7 +9402,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9404,6 +9455,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9624,7 +9678,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -9654,6 +9714,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/arczonalshift/deserializers.go b/service/arczonalshift/deserializers.go index b3d30eca921..fbb1c92f24b 100644 --- a/service/arczonalshift/deserializers.go +++ b/service/arczonalshift/deserializers.go @@ -2783,7 +2783,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2799,6 +2805,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3206,7 +3215,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3240,6 +3255,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3347,7 +3365,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3363,6 +3387,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3559,7 +3586,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3575,6 +3608,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3599,7 +3635,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3615,6 +3657,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3639,7 +3684,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3664,6 +3715,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/artifact/deserializers.go b/service/artifact/deserializers.go index ca123154bb0..02f120c3931 100644 --- a/service/artifact/deserializers.go +++ b/service/artifact/deserializers.go @@ -1382,7 +1382,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1398,6 +1404,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1462,7 +1471,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1496,6 +1511,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1520,7 +1538,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1549,6 +1573,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2024,7 +2051,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2058,6 +2091,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2082,7 +2118,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2134,6 +2176,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2158,7 +2203,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2205,6 +2256,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2229,7 +2283,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -2259,6 +2319,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/athena/deserializers.go b/service/athena/deserializers.go index a4964865846..055e46f4b85 100644 --- a/service/athena/deserializers.go +++ b/service/athena/deserializers.go @@ -9978,7 +9978,13 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9994,6 +10000,9 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10018,7 +10027,13 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "AthenaErrorCode": if value != nil { @@ -10043,6 +10058,9 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10067,7 +10085,13 @@ func awsAwsjson11_deserializeDocumentMetadataException(v **types.MetadataExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10083,6 +10107,9 @@ func awsAwsjson11_deserializeDocumentMetadataException(v **types.MetadataExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11736,7 +11763,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11761,6 +11794,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12120,7 +12156,13 @@ func awsAwsjson11_deserializeDocumentSessionAlreadyExistsException(v **types.Ses sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12136,6 +12178,9 @@ func awsAwsjson11_deserializeDocumentSessionAlreadyExistsException(v **types.Ses } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12775,7 +12820,13 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12800,6 +12851,9 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/auditmanager/deserializers.go b/service/auditmanager/deserializers.go index 270d402782a..d7b9754b6c0 100644 --- a/service/auditmanager/deserializers.go +++ b/service/auditmanager/deserializers.go @@ -9825,7 +9825,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9841,6 +9847,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14535,7 +14544,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14551,6 +14566,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14905,7 +14923,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14939,6 +14963,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15222,7 +15249,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15238,6 +15271,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15430,7 +15466,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15446,6 +15488,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15555,7 +15600,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fields": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.Fields, value); err != nil { @@ -15585,6 +15636,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/autoscalingplans/deserializers.go b/service/autoscalingplans/deserializers.go index 8bad5885e15..60ed7c7922b 100644 --- a/service/autoscalingplans/deserializers.go +++ b/service/autoscalingplans/deserializers.go @@ -1019,7 +1019,13 @@ func awsAwsjson11_deserializeDocumentConcurrentUpdateException(v **types.Concurr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1035,6 +1041,9 @@ func awsAwsjson11_deserializeDocumentConcurrentUpdateException(v **types.Concurr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1318,7 +1327,13 @@ func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1334,6 +1349,9 @@ func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1358,7 +1376,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1374,6 +1398,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1398,7 +1425,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1414,6 +1447,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1521,7 +1557,13 @@ func awsAwsjson11_deserializeDocumentObjectNotFoundException(v **types.ObjectNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1537,6 +1579,9 @@ func awsAwsjson11_deserializeDocumentObjectNotFoundException(v **types.ObjectNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2498,7 +2543,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2514,6 +2565,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/b2bi/deserializers.go b/service/b2bi/deserializers.go index 74fee532002..49deb5e0293 100644 --- a/service/b2bi/deserializers.go +++ b/service/b2bi/deserializers.go @@ -3766,7 +3766,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3782,6 +3788,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4000,7 +4009,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4016,6 +4031,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4263,7 +4281,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4292,6 +4316,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4793,7 +4820,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4809,6 +4842,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5010,7 +5046,13 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5062,6 +5104,9 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5169,7 +5214,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5198,6 +5249,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5392,7 +5446,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5408,6 +5468,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/backup/deserializers.go b/service/backup/deserializers.go index 1a491328d60..19617102be5 100644 --- a/service/backup/deserializers.go +++ b/service/backup/deserializers.go @@ -16075,7 +16075,13 @@ func awsRestjson1_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Arn": if value != nil { @@ -16136,6 +16142,9 @@ func awsRestjson1_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17927,7 +17936,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -17970,6 +17985,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18737,7 +18755,13 @@ func awsRestjson1_deserializeDocumentDependencyFailureException(v **types.Depend sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -18780,6 +18804,9 @@ func awsRestjson1_deserializeDocumentDependencyFailureException(v **types.Depend } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19090,7 +19117,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -19133,6 +19166,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19157,7 +19193,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -19200,6 +19242,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19224,7 +19269,13 @@ func awsRestjson1_deserializeDocumentInvalidResourceStateException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -19267,6 +19318,9 @@ func awsRestjson1_deserializeDocumentInvalidResourceStateException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19582,7 +19636,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -19625,6 +19685,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19719,7 +19782,13 @@ func awsRestjson1_deserializeDocumentMissingParameterValueException(v **types.Mi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -19762,6 +19831,9 @@ func awsRestjson1_deserializeDocumentMissingParameterValueException(v **types.Mi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21177,7 +21249,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -21220,6 +21298,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22529,7 +22610,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -22572,6 +22659,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/backupgateway/deserializers.go b/service/backupgateway/deserializers.go index 686cb2d069c..344eb54010e 100644 --- a/service/backupgateway/deserializers.go +++ b/service/backupgateway/deserializers.go @@ -3283,7 +3283,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -3308,6 +3314,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3467,7 +3476,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -3492,6 +3507,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4015,7 +4033,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -4040,6 +4064,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4147,7 +4174,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -4172,6 +4205,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4279,7 +4315,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -4304,6 +4346,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4328,7 +4373,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -4353,6 +4404,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/batch/deserializers.go b/service/batch/deserializers.go index 4a6e97cfe94..c787b703c5b 100644 --- a/service/batch/deserializers.go +++ b/service/batch/deserializers.go @@ -4063,7 +4063,13 @@ func awsRestjson1_deserializeDocumentClientException(v **types.ClientException, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4079,6 +4085,9 @@ func awsRestjson1_deserializeDocumentClientException(v **types.ClientException, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10290,7 +10299,13 @@ func awsRestjson1_deserializeDocumentServerException(v **types.ServerException, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10306,6 +10321,9 @@ func awsRestjson1_deserializeDocumentServerException(v **types.ServerException, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/bcmdataexports/deserializers.go b/service/bcmdataexports/deserializers.go index 241d77d3620..e617e819dad 100644 --- a/service/bcmdataexports/deserializers.go +++ b/service/bcmdataexports/deserializers.go @@ -2280,7 +2280,13 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2296,6 +2302,9 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2360,7 +2369,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2394,6 +2409,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2631,7 +2649,13 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2683,6 +2707,9 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2962,7 +2989,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2996,6 +3029,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3020,7 +3056,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Fields": if err := awsAwsjson11_deserializeDocumentValidationExceptionFieldList(&sv.Fields, value); err != nil { @@ -3050,6 +3092,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/bedrock/deserializers.go b/service/bedrock/deserializers.go index 68388449ade..537d48a28b4 100644 --- a/service/bedrock/deserializers.go +++ b/service/bedrock/deserializers.go @@ -8790,7 +8790,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8806,6 +8812,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9095,7 +9104,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9111,6 +9126,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11864,7 +11882,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11880,6 +11904,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13237,7 +13264,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13253,6 +13286,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13402,7 +13438,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13418,6 +13460,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13561,7 +13606,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13577,6 +13628,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13601,7 +13655,13 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13626,6 +13686,9 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13791,7 +13854,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13807,6 +13876,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/bedrockagent/deserializers.go b/service/bedrockagent/deserializers.go index 85b19dbfe17..a849a5e7f37 100644 --- a/service/bedrockagent/deserializers.go +++ b/service/bedrockagent/deserializers.go @@ -11689,7 +11689,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11705,6 +11711,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13649,7 +13658,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13665,6 +13680,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16671,7 +16689,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16687,6 +16711,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19163,7 +19190,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19179,6 +19212,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19817,7 +19853,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19833,6 +19875,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20349,7 +20394,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20365,6 +20416,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20580,7 +20634,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -20601,6 +20661,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/bedrockagentruntime/deserializers.go b/service/bedrockagentruntime/deserializers.go index 01264bf46ac..c586ed71ab4 100644 --- a/service/bedrockagentruntime/deserializers.go +++ b/service/bedrockagentruntime/deserializers.go @@ -1574,7 +1574,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1590,6 +1596,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2025,7 +2034,13 @@ func awsRestjson1_deserializeDocumentBadGatewayException(v **types.BadGatewayExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2050,6 +2065,9 @@ func awsRestjson1_deserializeDocumentBadGatewayException(v **types.BadGatewayExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2257,7 +2275,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2273,6 +2297,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2331,7 +2358,13 @@ func awsRestjson1_deserializeDocumentDependencyFailedException(v **types.Depende sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2356,6 +2389,9 @@ func awsRestjson1_deserializeDocumentDependencyFailedException(v **types.Depende } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3712,7 +3748,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3728,6 +3770,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5093,7 +5138,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5109,6 +5160,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5605,7 +5659,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5621,6 +5681,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5783,7 +5846,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5799,6 +5868,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6026,7 +6098,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6042,6 +6120,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/bedrockruntime/deserializers.go b/service/bedrockruntime/deserializers.go index 8bd68281fe1..67a0a44fc92 100644 --- a/service/bedrockruntime/deserializers.go +++ b/service/bedrockruntime/deserializers.go @@ -1191,7 +1191,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1207,6 +1213,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1231,7 +1240,13 @@ func awsRestjson1_deserializeDocumentModelStreamErrorException(v **types.ModelSt sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1269,6 +1284,9 @@ func awsRestjson1_deserializeDocumentModelStreamErrorException(v **types.ModelSt } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1293,7 +1311,13 @@ func awsRestjson1_deserializeDocumentModelTimeoutException(v **types.ModelTimeou sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1309,6 +1333,9 @@ func awsRestjson1_deserializeDocumentModelTimeoutException(v **types.ModelTimeou } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1377,7 +1404,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1393,6 +1426,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1417,7 +1453,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1433,6 +1475,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1457,7 +1502,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1473,6 +1524,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4260,7 +4314,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4276,6 +4336,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4973,7 +5036,13 @@ func awsRestjson1_deserializeDocumentModelErrorException(v **types.ModelErrorExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5011,6 +5080,9 @@ func awsRestjson1_deserializeDocumentModelErrorException(v **types.ModelErrorExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5035,7 +5107,13 @@ func awsRestjson1_deserializeDocumentModelNotReadyException(v **types.ModelNotRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5051,6 +5129,9 @@ func awsRestjson1_deserializeDocumentModelNotReadyException(v **types.ModelNotRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5075,7 +5156,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5091,6 +5178,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5115,7 +5205,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5131,6 +5227,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/billingconductor/deserializers.go b/service/billingconductor/deserializers.go index 4673f51bf4f..99a3d3e8e67 100644 --- a/service/billingconductor/deserializers.go +++ b/service/billingconductor/deserializers.go @@ -6062,7 +6062,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6078,6 +6084,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6865,7 +6874,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6908,6 +6923,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7426,7 +7444,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7455,6 +7479,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8347,7 +8374,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8381,6 +8414,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8405,7 +8441,13 @@ func awsRestjson1_deserializeDocumentServiceLimitExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "LimitCode": if value != nil { @@ -8457,6 +8499,9 @@ func awsRestjson1_deserializeDocumentServiceLimitExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8517,7 +8562,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8546,6 +8597,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8722,7 +8776,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Fields": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.Fields, value); err != nil { @@ -8752,6 +8812,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/braket/deserializers.go b/service/braket/deserializers.go index bf28f153245..60ec752a69a 100644 --- a/service/braket/deserializers.go +++ b/service/braket/deserializers.go @@ -2759,7 +2759,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2775,6 +2781,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2923,7 +2932,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2939,6 +2954,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3079,7 +3097,13 @@ func awsRestjson1_deserializeDocumentDeviceOfflineException(v **types.DeviceOffl sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3095,6 +3119,9 @@ func awsRestjson1_deserializeDocumentDeviceOfflineException(v **types.DeviceOffl } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3211,7 +3238,13 @@ func awsRestjson1_deserializeDocumentDeviceRetiredException(v **types.DeviceReti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3227,6 +3260,9 @@ func awsRestjson1_deserializeDocumentDeviceRetiredException(v **types.DeviceReti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3609,7 +3645,13 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3625,6 +3667,9 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4253,7 +4298,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4269,6 +4320,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4391,7 +4445,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4407,6 +4467,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4467,7 +4530,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4483,6 +4552,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4507,7 +4579,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4523,6 +4601,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/budgets/deserializers.go b/service/budgets/deserializers.go index 4cd9fcbc2cb..8e79f7719c6 100644 --- a/service/budgets/deserializers.go +++ b/service/budgets/deserializers.go @@ -3714,7 +3714,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3730,6 +3736,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4761,7 +4770,13 @@ func awsAwsjson11_deserializeDocumentCreationLimitExceededException(v **types.Cr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4777,6 +4792,9 @@ func awsAwsjson11_deserializeDocumentCreationLimitExceededException(v **types.Cr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4883,7 +4901,13 @@ func awsAwsjson11_deserializeDocumentDuplicateRecordException(v **types.Duplicat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4899,6 +4923,9 @@ func awsAwsjson11_deserializeDocumentDuplicateRecordException(v **types.Duplicat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4923,7 +4950,13 @@ func awsAwsjson11_deserializeDocumentExpiredNextTokenException(v **types.Expired sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4939,6 +4972,9 @@ func awsAwsjson11_deserializeDocumentExpiredNextTokenException(v **types.Expired } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5147,7 +5183,13 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5163,6 +5205,9 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5187,7 +5232,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5203,6 +5254,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5227,7 +5281,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5243,6 +5303,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5267,7 +5330,13 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5283,6 +5352,9 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5477,7 +5549,13 @@ func awsAwsjson11_deserializeDocumentResourceLockedException(v **types.ResourceL sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5493,6 +5571,9 @@ func awsAwsjson11_deserializeDocumentResourceLockedException(v **types.ResourceL } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5681,7 +5762,13 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5697,6 +5784,9 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5943,7 +6033,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5959,6 +6055,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/chatbot/deserializers.go b/service/chatbot/deserializers.go index c3be23b26ae..1f07237ab23 100644 --- a/service/chatbot/deserializers.go +++ b/service/chatbot/deserializers.go @@ -5087,7 +5087,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5103,6 +5109,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5127,7 +5136,13 @@ func awsRestjson1_deserializeDocumentCreateChimeWebhookConfigurationException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5143,6 +5158,9 @@ func awsRestjson1_deserializeDocumentCreateChimeWebhookConfigurationException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5167,7 +5185,13 @@ func awsRestjson1_deserializeDocumentCreateSlackChannelConfigurationException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5183,6 +5207,9 @@ func awsRestjson1_deserializeDocumentCreateSlackChannelConfigurationException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5207,7 +5234,13 @@ func awsRestjson1_deserializeDocumentCreateTeamsChannelConfigurationException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5223,6 +5256,9 @@ func awsRestjson1_deserializeDocumentCreateTeamsChannelConfigurationException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5247,7 +5283,13 @@ func awsRestjson1_deserializeDocumentDeleteChimeWebhookConfigurationException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5263,6 +5305,9 @@ func awsRestjson1_deserializeDocumentDeleteChimeWebhookConfigurationException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5287,7 +5332,13 @@ func awsRestjson1_deserializeDocumentDeleteMicrosoftTeamsUserIdentityException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5303,6 +5354,9 @@ func awsRestjson1_deserializeDocumentDeleteMicrosoftTeamsUserIdentityException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5327,7 +5381,13 @@ func awsRestjson1_deserializeDocumentDeleteSlackChannelConfigurationException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5343,6 +5403,9 @@ func awsRestjson1_deserializeDocumentDeleteSlackChannelConfigurationException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5367,7 +5430,13 @@ func awsRestjson1_deserializeDocumentDeleteSlackUserIdentityException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5383,6 +5452,9 @@ func awsRestjson1_deserializeDocumentDeleteSlackUserIdentityException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5407,7 +5479,13 @@ func awsRestjson1_deserializeDocumentDeleteSlackWorkspaceAuthorizationFault(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5423,6 +5501,9 @@ func awsRestjson1_deserializeDocumentDeleteSlackWorkspaceAuthorizationFault(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5447,7 +5528,13 @@ func awsRestjson1_deserializeDocumentDeleteTeamsChannelConfigurationException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5463,6 +5550,9 @@ func awsRestjson1_deserializeDocumentDeleteTeamsChannelConfigurationException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5487,7 +5577,13 @@ func awsRestjson1_deserializeDocumentDeleteTeamsConfiguredTeamException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5503,6 +5599,9 @@ func awsRestjson1_deserializeDocumentDeleteTeamsConfiguredTeamException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5527,7 +5626,13 @@ func awsRestjson1_deserializeDocumentDescribeChimeWebhookConfigurationsException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5543,6 +5648,9 @@ func awsRestjson1_deserializeDocumentDescribeChimeWebhookConfigurationsException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5567,7 +5675,13 @@ func awsRestjson1_deserializeDocumentDescribeSlackChannelConfigurationsException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5583,6 +5697,9 @@ func awsRestjson1_deserializeDocumentDescribeSlackChannelConfigurationsException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5607,7 +5724,13 @@ func awsRestjson1_deserializeDocumentDescribeSlackUserIdentitiesException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5623,6 +5746,9 @@ func awsRestjson1_deserializeDocumentDescribeSlackUserIdentitiesException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5647,7 +5773,13 @@ func awsRestjson1_deserializeDocumentDescribeSlackWorkspacesException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5663,6 +5795,9 @@ func awsRestjson1_deserializeDocumentDescribeSlackWorkspacesException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5687,7 +5822,13 @@ func awsRestjson1_deserializeDocumentGetAccountPreferencesException(v **types.Ge sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5703,6 +5844,9 @@ func awsRestjson1_deserializeDocumentGetAccountPreferencesException(v **types.Ge } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5727,7 +5871,13 @@ func awsRestjson1_deserializeDocumentGetTeamsChannelConfigurationException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5743,6 +5893,9 @@ func awsRestjson1_deserializeDocumentGetTeamsChannelConfigurationException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5803,7 +5956,13 @@ func awsRestjson1_deserializeDocumentInternalServiceError(v **types.InternalServ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5819,6 +5978,9 @@ func awsRestjson1_deserializeDocumentInternalServiceError(v **types.InternalServ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5843,7 +6005,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5859,6 +6027,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5883,7 +6054,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5899,6 +6076,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5923,7 +6103,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5939,6 +6125,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5963,7 +6152,13 @@ func awsRestjson1_deserializeDocumentListMicrosoftTeamsConfiguredTeamsException( sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5979,6 +6174,9 @@ func awsRestjson1_deserializeDocumentListMicrosoftTeamsConfiguredTeamsException( } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6003,7 +6201,13 @@ func awsRestjson1_deserializeDocumentListMicrosoftTeamsUserIdentitiesException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6019,6 +6223,9 @@ func awsRestjson1_deserializeDocumentListMicrosoftTeamsUserIdentitiesException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6043,7 +6250,13 @@ func awsRestjson1_deserializeDocumentListTeamsChannelConfigurationsException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6059,6 +6272,9 @@ func awsRestjson1_deserializeDocumentListTeamsChannelConfigurationsException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6083,7 +6299,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6099,6 +6321,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6123,7 +6348,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6139,6 +6370,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7022,7 +7256,13 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7038,6 +7278,9 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7062,7 +7305,13 @@ func awsRestjson1_deserializeDocumentUpdateAccountPreferencesException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7078,6 +7327,9 @@ func awsRestjson1_deserializeDocumentUpdateAccountPreferencesException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7102,7 +7354,13 @@ func awsRestjson1_deserializeDocumentUpdateChimeWebhookConfigurationException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7118,6 +7376,9 @@ func awsRestjson1_deserializeDocumentUpdateChimeWebhookConfigurationException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7142,7 +7403,13 @@ func awsRestjson1_deserializeDocumentUpdateSlackChannelConfigurationException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7158,6 +7425,9 @@ func awsRestjson1_deserializeDocumentUpdateSlackChannelConfigurationException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7182,7 +7452,13 @@ func awsRestjson1_deserializeDocumentUpdateTeamsChannelConfigurationException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7198,6 +7474,9 @@ func awsRestjson1_deserializeDocumentUpdateTeamsChannelConfigurationException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/chime/deserializers.go b/service/chime/deserializers.go index 2f9900147bf..bbde7caa609 100644 --- a/service/chime/deserializers.go +++ b/service/chime/deserializers.go @@ -30609,7 +30609,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -30634,6 +30640,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -31903,7 +31912,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -31928,6 +31943,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -33759,7 +33777,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -33784,6 +33808,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -34217,7 +34244,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -34242,6 +34275,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -35142,7 +35178,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -35167,6 +35209,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -36474,7 +36519,13 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -36499,6 +36550,9 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -36922,7 +36976,13 @@ func awsRestjson1_deserializeDocumentServiceFailureException(v **types.ServiceFa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -36947,6 +37007,9 @@ func awsRestjson1_deserializeDocumentServiceFailureException(v **types.ServiceFa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -36971,7 +37034,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -36996,6 +37065,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -38078,7 +38150,13 @@ func awsRestjson1_deserializeDocumentThrottledClientException(v **types.Throttle sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -38103,6 +38181,9 @@ func awsRestjson1_deserializeDocumentThrottledClientException(v **types.Throttle } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -38127,7 +38208,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedClientException(v **types.Unaut sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -38152,6 +38239,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedClientException(v **types.Unaut } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -38176,7 +38266,13 @@ func awsRestjson1_deserializeDocumentUnprocessableEntityException(v **types.Unpr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -38201,6 +38297,9 @@ func awsRestjson1_deserializeDocumentUnprocessableEntityException(v **types.Unpr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/chimesdkidentity/deserializers.go b/service/chimesdkidentity/deserializers.go index ca18643f612..792c3aa2fef 100644 --- a/service/chimesdkidentity/deserializers.go +++ b/service/chimesdkidentity/deserializers.go @@ -6199,7 +6199,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6224,6 +6230,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6328,7 +6337,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6353,6 +6368,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6528,7 +6546,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6553,6 +6577,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6747,7 +6774,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6772,6 +6805,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6796,7 +6832,13 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6821,6 +6863,9 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6845,7 +6890,13 @@ func awsRestjson1_deserializeDocumentServiceFailureException(v **types.ServiceFa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6870,6 +6921,9 @@ func awsRestjson1_deserializeDocumentServiceFailureException(v **types.ServiceFa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6894,7 +6948,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6919,6 +6979,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7026,7 +7089,13 @@ func awsRestjson1_deserializeDocumentThrottledClientException(v **types.Throttle sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -7051,6 +7120,9 @@ func awsRestjson1_deserializeDocumentThrottledClientException(v **types.Throttle } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7075,7 +7147,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedClientException(v **types.Unaut sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -7100,6 +7178,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedClientException(v **types.Unaut } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/chimesdkmediapipelines/deserializers.go b/service/chimesdkmediapipelines/deserializers.go index a4c071642fe..93eda972a20 100644 --- a/service/chimesdkmediapipelines/deserializers.go +++ b/service/chimesdkmediapipelines/deserializers.go @@ -5794,7 +5794,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -5828,6 +5834,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6363,7 +6372,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6397,6 +6412,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6586,7 +6604,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6620,6 +6644,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9055,7 +9082,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -9089,6 +9122,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9428,7 +9464,13 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -9462,6 +9504,9 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9727,7 +9772,13 @@ func awsRestjson1_deserializeDocumentServiceFailureException(v **types.ServiceFa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -9761,6 +9812,9 @@ func awsRestjson1_deserializeDocumentServiceFailureException(v **types.ServiceFa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9785,7 +9839,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -9819,6 +9879,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10254,7 +10317,13 @@ func awsRestjson1_deserializeDocumentThrottledClientException(v **types.Throttle sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -10288,6 +10357,9 @@ func awsRestjson1_deserializeDocumentThrottledClientException(v **types.Throttle } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10415,7 +10487,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedClientException(v **types.Unaut sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -10449,6 +10527,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedClientException(v **types.Unaut } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/chimesdkmeetings/deserializers.go b/service/chimesdkmeetings/deserializers.go index ab381113f98..01da6760039 100644 --- a/service/chimesdkmeetings/deserializers.go +++ b/service/chimesdkmeetings/deserializers.go @@ -3108,7 +3108,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -3142,6 +3148,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3200,7 +3209,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -3234,6 +3249,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3356,7 +3374,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -3390,6 +3414,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3414,7 +3441,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -3448,6 +3481,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3726,7 +3762,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -3760,6 +3802,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3784,7 +3829,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -3827,6 +3878,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3851,7 +3905,13 @@ func awsRestjson1_deserializeDocumentServiceFailureException(v **types.ServiceFa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -3885,6 +3945,9 @@ func awsRestjson1_deserializeDocumentServiceFailureException(v **types.ServiceFa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3909,7 +3972,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -3952,6 +4021,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4095,7 +4167,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -4129,6 +4207,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4153,7 +4234,13 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -4196,6 +4283,9 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4220,7 +4310,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -4254,6 +4350,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4278,7 +4377,13 @@ func awsRestjson1_deserializeDocumentUnprocessableEntityException(v **types.Unpr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -4312,6 +4417,9 @@ func awsRestjson1_deserializeDocumentUnprocessableEntityException(v **types.Unpr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/chimesdkmessaging/deserializers.go b/service/chimesdkmessaging/deserializers.go index 15ea9862fa6..e843cde66d6 100644 --- a/service/chimesdkmessaging/deserializers.go +++ b/service/chimesdkmessaging/deserializers.go @@ -8766,7 +8766,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -8791,6 +8797,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10572,7 +10581,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -10597,6 +10612,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10744,7 +10762,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -10769,6 +10793,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11072,7 +11099,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -11097,6 +11130,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11307,7 +11343,13 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -11332,6 +11374,9 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11356,7 +11401,13 @@ func awsRestjson1_deserializeDocumentServiceFailureException(v **types.ServiceFa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -11381,6 +11432,9 @@ func awsRestjson1_deserializeDocumentServiceFailureException(v **types.ServiceFa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11405,7 +11459,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -11430,6 +11490,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11781,7 +11844,13 @@ func awsRestjson1_deserializeDocumentThrottledClientException(v **types.Throttle sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -11806,6 +11875,9 @@ func awsRestjson1_deserializeDocumentThrottledClientException(v **types.Throttle } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11830,7 +11902,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedClientException(v **types.Unaut sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -11855,6 +11933,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedClientException(v **types.Unaut } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/chimesdkvoice/deserializers.go b/service/chimesdkvoice/deserializers.go index c864e48a836..ea7e91dda0c 100644 --- a/service/chimesdkvoice/deserializers.go +++ b/service/chimesdkvoice/deserializers.go @@ -15350,7 +15350,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -15375,6 +15381,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15556,7 +15565,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -15581,6 +15596,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15863,7 +15881,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -15888,6 +15912,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16076,7 +16103,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -16101,6 +16134,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16174,7 +16210,13 @@ func awsRestjson1_deserializeDocumentGoneException(v **types.GoneException, valu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -16199,6 +16241,9 @@ func awsRestjson1_deserializeDocumentGoneException(v **types.GoneException, valu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16321,7 +16366,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -16346,6 +16397,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17680,7 +17734,13 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -17705,6 +17765,9 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17805,7 +17868,13 @@ func awsRestjson1_deserializeDocumentServiceFailureException(v **types.ServiceFa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -17830,6 +17899,9 @@ func awsRestjson1_deserializeDocumentServiceFailureException(v **types.ServiceFa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17854,7 +17926,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -17879,6 +17957,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19112,7 +19193,13 @@ func awsRestjson1_deserializeDocumentThrottledClientException(v **types.Throttle sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -19137,6 +19224,9 @@ func awsRestjson1_deserializeDocumentThrottledClientException(v **types.Throttle } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19161,7 +19251,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedClientException(v **types.Unaut sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -19186,6 +19282,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedClientException(v **types.Unaut } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19210,7 +19309,13 @@ func awsRestjson1_deserializeDocumentUnprocessableEntityException(v **types.Unpr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -19235,6 +19340,9 @@ func awsRestjson1_deserializeDocumentUnprocessableEntityException(v **types.Unpr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/cleanrooms/deserializers.go b/service/cleanrooms/deserializers.go index d85f920bb7d..c1d23d41c52 100644 --- a/service/cleanrooms/deserializers.go +++ b/service/cleanrooms/deserializers.go @@ -12763,7 +12763,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12788,6 +12794,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18125,7 +18134,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18168,6 +18183,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20050,7 +20068,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20066,6 +20090,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22561,7 +22588,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22595,6 +22628,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23291,7 +23327,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23350,6 +23392,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23450,7 +23495,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23466,6 +23517,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23490,7 +23544,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -23520,6 +23580,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/cleanroomsml/deserializers.go b/service/cleanroomsml/deserializers.go index beb48d05fe1..6adfe99f83c 100644 --- a/service/cleanroomsml/deserializers.go +++ b/service/cleanroomsml/deserializers.go @@ -4246,7 +4246,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4262,6 +4268,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5283,7 +5292,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5299,6 +5314,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5801,7 +5819,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5817,6 +5841,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5881,7 +5908,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5897,6 +5930,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6133,7 +6169,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6149,6 +6191,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/cloud9/deserializers.go b/service/cloud9/deserializers.go index 7ab40f37450..46178df9080 100644 --- a/service/cloud9/deserializers.go +++ b/service/cloud9/deserializers.go @@ -1976,7 +1976,13 @@ func awsAwsjson11_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "className": if value != nil { @@ -2014,6 +2020,9 @@ func awsAwsjson11_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2038,7 +2047,13 @@ func awsAwsjson11_deserializeDocumentConcurrentAccessException(v **types.Concurr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "className": if value != nil { @@ -2076,6 +2091,9 @@ func awsAwsjson11_deserializeDocumentConcurrentAccessException(v **types.Concurr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2100,7 +2118,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "className": if value != nil { @@ -2138,6 +2162,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2515,7 +2542,13 @@ func awsAwsjson11_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "className": if value != nil { @@ -2553,6 +2586,9 @@ func awsAwsjson11_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2577,7 +2613,13 @@ func awsAwsjson11_deserializeDocumentInternalServerErrorException(v **types.Inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "className": if value != nil { @@ -2615,6 +2657,9 @@ func awsAwsjson11_deserializeDocumentInternalServerErrorException(v **types.Inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2639,7 +2684,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "className": if value != nil { @@ -2677,6 +2728,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2701,7 +2755,13 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "className": if value != nil { @@ -2739,6 +2799,9 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2846,7 +2909,13 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "className": if value != nil { @@ -2884,6 +2953,9 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/cloudcontrol/deserializers.go b/service/cloudcontrol/deserializers.go index a6522b5f8fe..76a01f37dbb 100644 --- a/service/cloudcontrol/deserializers.go +++ b/service/cloudcontrol/deserializers.go @@ -1930,7 +1930,13 @@ func awsAwsjson10_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1946,6 +1952,9 @@ func awsAwsjson10_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1970,7 +1979,13 @@ func awsAwsjson10_deserializeDocumentClientTokenConflictException(v **types.Clie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1986,6 +2001,9 @@ func awsAwsjson10_deserializeDocumentClientTokenConflictException(v **types.Clie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2010,7 +2028,13 @@ func awsAwsjson10_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2026,6 +2050,9 @@ func awsAwsjson10_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2050,7 +2077,13 @@ func awsAwsjson10_deserializeDocumentConcurrentOperationException(v **types.Conc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2066,6 +2099,9 @@ func awsAwsjson10_deserializeDocumentConcurrentOperationException(v **types.Conc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2090,7 +2126,13 @@ func awsAwsjson10_deserializeDocumentGeneralServiceException(v **types.GeneralSe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2106,6 +2148,9 @@ func awsAwsjson10_deserializeDocumentGeneralServiceException(v **types.GeneralSe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2130,7 +2175,13 @@ func awsAwsjson10_deserializeDocumentHandlerFailureException(v **types.HandlerFa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2146,6 +2197,9 @@ func awsAwsjson10_deserializeDocumentHandlerFailureException(v **types.HandlerFa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2170,7 +2224,13 @@ func awsAwsjson10_deserializeDocumentHandlerInternalFailureException(v **types.H sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2186,6 +2246,9 @@ func awsAwsjson10_deserializeDocumentHandlerInternalFailureException(v **types.H } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2210,7 +2273,13 @@ func awsAwsjson10_deserializeDocumentInvalidCredentialsException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2226,6 +2295,9 @@ func awsAwsjson10_deserializeDocumentInvalidCredentialsException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2250,7 +2322,13 @@ func awsAwsjson10_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2266,6 +2344,9 @@ func awsAwsjson10_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2290,7 +2371,13 @@ func awsAwsjson10_deserializeDocumentNetworkFailureException(v **types.NetworkFa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2306,6 +2393,9 @@ func awsAwsjson10_deserializeDocumentNetworkFailureException(v **types.NetworkFa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2330,7 +2420,13 @@ func awsAwsjson10_deserializeDocumentNotStabilizedException(v **types.NotStabili sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2346,6 +2442,9 @@ func awsAwsjson10_deserializeDocumentNotStabilizedException(v **types.NotStabili } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2370,7 +2469,13 @@ func awsAwsjson10_deserializeDocumentNotUpdatableException(v **types.NotUpdatabl sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2386,6 +2491,9 @@ func awsAwsjson10_deserializeDocumentNotUpdatableException(v **types.NotUpdatabl } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2410,7 +2518,13 @@ func awsAwsjson10_deserializeDocumentPrivateTypeException(v **types.PrivateTypeE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2426,6 +2540,9 @@ func awsAwsjson10_deserializeDocumentPrivateTypeException(v **types.PrivateTypeE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2585,7 +2702,13 @@ func awsAwsjson10_deserializeDocumentRequestTokenNotFoundException(v **types.Req sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2601,6 +2724,9 @@ func awsAwsjson10_deserializeDocumentRequestTokenNotFoundException(v **types.Req } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2625,7 +2751,13 @@ func awsAwsjson10_deserializeDocumentResourceConflictException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2641,6 +2773,9 @@ func awsAwsjson10_deserializeDocumentResourceConflictException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2748,7 +2883,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2764,6 +2905,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2822,7 +2966,13 @@ func awsAwsjson10_deserializeDocumentServiceInternalErrorException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2838,6 +2988,9 @@ func awsAwsjson10_deserializeDocumentServiceInternalErrorException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2862,7 +3015,13 @@ func awsAwsjson10_deserializeDocumentServiceLimitExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2878,6 +3037,9 @@ func awsAwsjson10_deserializeDocumentServiceLimitExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2902,7 +3064,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2918,6 +3086,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2942,7 +3113,13 @@ func awsAwsjson10_deserializeDocumentTypeNotFoundException(v **types.TypeNotFoun sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2958,6 +3135,9 @@ func awsAwsjson10_deserializeDocumentTypeNotFoundException(v **types.TypeNotFoun } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2982,7 +3162,13 @@ func awsAwsjson10_deserializeDocumentUnsupportedActionException(v **types.Unsupp sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2998,6 +3184,9 @@ func awsAwsjson10_deserializeDocumentUnsupportedActionException(v **types.Unsupp } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/clouddirectory/deserializers.go b/service/clouddirectory/deserializers.go index f9a20002a83..ab482b0ad73 100644 --- a/service/clouddirectory/deserializers.go +++ b/service/clouddirectory/deserializers.go @@ -12281,7 +12281,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12297,6 +12303,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13975,7 +13984,13 @@ func awsRestjson1_deserializeDocumentBatchWriteException(v **types.BatchWriteExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Index": if value != nil { @@ -14013,6 +14028,9 @@ func awsRestjson1_deserializeDocumentBatchWriteException(v **types.BatchWriteExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14177,7 +14195,13 @@ func awsRestjson1_deserializeDocumentCannotListParentOfRootException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14193,6 +14217,9 @@ func awsRestjson1_deserializeDocumentCannotListParentOfRootException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14291,7 +14318,13 @@ func awsRestjson1_deserializeDocumentDirectoryAlreadyExistsException(v **types.D sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14307,6 +14340,9 @@ func awsRestjson1_deserializeDocumentDirectoryAlreadyExistsException(v **types.D } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14331,7 +14367,13 @@ func awsRestjson1_deserializeDocumentDirectoryDeletedException(v **types.Directo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14347,6 +14389,9 @@ func awsRestjson1_deserializeDocumentDirectoryDeletedException(v **types.Directo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14405,7 +14450,13 @@ func awsRestjson1_deserializeDocumentDirectoryNotDisabledException(v **types.Dir sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14421,6 +14472,9 @@ func awsRestjson1_deserializeDocumentDirectoryNotDisabledException(v **types.Dir } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14445,7 +14499,13 @@ func awsRestjson1_deserializeDocumentDirectoryNotEnabledException(v **types.Dire sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14461,6 +14521,9 @@ func awsRestjson1_deserializeDocumentDirectoryNotEnabledException(v **types.Dire } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14543,7 +14606,13 @@ func awsRestjson1_deserializeDocumentFacetAlreadyExistsException(v **types.Facet sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14559,6 +14628,9 @@ func awsRestjson1_deserializeDocumentFacetAlreadyExistsException(v **types.Facet } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14784,7 +14856,13 @@ func awsRestjson1_deserializeDocumentFacetInUseException(v **types.FacetInUseExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14800,6 +14878,9 @@ func awsRestjson1_deserializeDocumentFacetInUseException(v **types.FacetInUseExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14860,7 +14941,13 @@ func awsRestjson1_deserializeDocumentFacetNotFoundException(v **types.FacetNotFo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14876,6 +14963,9 @@ func awsRestjson1_deserializeDocumentFacetNotFoundException(v **types.FacetNotFo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14900,7 +14990,13 @@ func awsRestjson1_deserializeDocumentFacetValidationException(v **types.FacetVal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14916,6 +15012,9 @@ func awsRestjson1_deserializeDocumentFacetValidationException(v **types.FacetVal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14940,7 +15039,13 @@ func awsRestjson1_deserializeDocumentIncompatibleSchemaException(v **types.Incom sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14956,6 +15061,9 @@ func awsRestjson1_deserializeDocumentIncompatibleSchemaException(v **types.Incom } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15059,7 +15167,13 @@ func awsRestjson1_deserializeDocumentIndexedAttributeMissingException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15075,6 +15189,9 @@ func awsRestjson1_deserializeDocumentIndexedAttributeMissingException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15099,7 +15216,13 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15115,6 +15238,9 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15139,7 +15265,13 @@ func awsRestjson1_deserializeDocumentInvalidArnException(v **types.InvalidArnExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15155,6 +15287,9 @@ func awsRestjson1_deserializeDocumentInvalidArnException(v **types.InvalidArnExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15179,7 +15314,13 @@ func awsRestjson1_deserializeDocumentInvalidAttachmentException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15195,6 +15336,9 @@ func awsRestjson1_deserializeDocumentInvalidAttachmentException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15219,7 +15363,13 @@ func awsRestjson1_deserializeDocumentInvalidFacetUpdateException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15235,6 +15385,9 @@ func awsRestjson1_deserializeDocumentInvalidFacetUpdateException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15259,7 +15412,13 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15275,6 +15434,9 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15299,7 +15461,13 @@ func awsRestjson1_deserializeDocumentInvalidRuleException(v **types.InvalidRuleE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15315,6 +15483,9 @@ func awsRestjson1_deserializeDocumentInvalidRuleException(v **types.InvalidRuleE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15339,7 +15510,13 @@ func awsRestjson1_deserializeDocumentInvalidSchemaDocException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15355,6 +15532,9 @@ func awsRestjson1_deserializeDocumentInvalidSchemaDocException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15379,7 +15559,13 @@ func awsRestjson1_deserializeDocumentInvalidTaggingRequestException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15395,6 +15581,9 @@ func awsRestjson1_deserializeDocumentInvalidTaggingRequestException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15419,7 +15608,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15435,6 +15630,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15459,7 +15657,13 @@ func awsRestjson1_deserializeDocumentLinkNameAlreadyInUseException(v **types.Lin sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15475,6 +15679,9 @@ func awsRestjson1_deserializeDocumentLinkNameAlreadyInUseException(v **types.Lin } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15535,7 +15742,13 @@ func awsRestjson1_deserializeDocumentNotIndexException(v **types.NotIndexExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15551,6 +15764,9 @@ func awsRestjson1_deserializeDocumentNotIndexException(v **types.NotIndexExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15575,7 +15791,13 @@ func awsRestjson1_deserializeDocumentNotNodeException(v **types.NotNodeException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15591,6 +15813,9 @@ func awsRestjson1_deserializeDocumentNotNodeException(v **types.NotNodeException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15615,7 +15840,13 @@ func awsRestjson1_deserializeDocumentNotPolicyException(v **types.NotPolicyExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15631,6 +15862,9 @@ func awsRestjson1_deserializeDocumentNotPolicyException(v **types.NotPolicyExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15655,7 +15889,13 @@ func awsRestjson1_deserializeDocumentObjectAlreadyDetachedException(v **types.Ob sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15671,6 +15911,9 @@ func awsRestjson1_deserializeDocumentObjectAlreadyDetachedException(v **types.Ob } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15850,7 +16093,13 @@ func awsRestjson1_deserializeDocumentObjectNotDetachedException(v **types.Object sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15866,6 +16115,9 @@ func awsRestjson1_deserializeDocumentObjectNotDetachedException(v **types.Object } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16180,7 +16432,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16196,6 +16454,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16220,7 +16481,13 @@ func awsRestjson1_deserializeDocumentRetryableConflictException(v **types.Retrya sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16236,6 +16503,9 @@ func awsRestjson1_deserializeDocumentRetryableConflictException(v **types.Retrya } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16376,7 +16646,13 @@ func awsRestjson1_deserializeDocumentSchemaAlreadyExistsException(v **types.Sche sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16392,6 +16668,9 @@ func awsRestjson1_deserializeDocumentSchemaAlreadyExistsException(v **types.Sche } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16416,7 +16695,13 @@ func awsRestjson1_deserializeDocumentSchemaAlreadyPublishedException(v **types.S sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16432,6 +16717,9 @@ func awsRestjson1_deserializeDocumentSchemaAlreadyPublishedException(v **types.S } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16539,7 +16827,13 @@ func awsRestjson1_deserializeDocumentStillContainsLinksException(v **types.Still sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16555,6 +16849,9 @@ func awsRestjson1_deserializeDocumentStillContainsLinksException(v **types.Still } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17044,7 +17341,13 @@ func awsRestjson1_deserializeDocumentUnsupportedIndexTypeException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -17060,6 +17363,9 @@ func awsRestjson1_deserializeDocumentUnsupportedIndexTypeException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17084,7 +17390,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -17100,6 +17412,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/cloudfrontkeyvaluestore/deserializers.go b/service/cloudfrontkeyvaluestore/deserializers.go index fd5f060561d..3684351b67e 100644 --- a/service/cloudfrontkeyvaluestore/deserializers.go +++ b/service/cloudfrontkeyvaluestore/deserializers.go @@ -1511,7 +1511,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1527,6 +1533,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1551,7 +1560,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1567,6 +1582,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1591,7 +1609,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1607,6 +1631,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1714,7 +1741,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1730,6 +1763,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1754,7 +1790,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1770,6 +1812,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1794,7 +1839,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1810,6 +1861,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/cloudhsm/deserializers.go b/service/cloudhsm/deserializers.go index dc5d1ab7410..421b3b60b02 100644 --- a/service/cloudhsm/deserializers.go +++ b/service/cloudhsm/deserializers.go @@ -2560,7 +2560,13 @@ func awsAwsjson11_deserializeDocumentCloudHsmInternalException(v **types.CloudHs sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2585,6 +2591,9 @@ func awsAwsjson11_deserializeDocumentCloudHsmInternalException(v **types.CloudHs } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2609,7 +2618,13 @@ func awsAwsjson11_deserializeDocumentCloudHsmServiceException(v **types.CloudHsm sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2634,6 +2649,9 @@ func awsAwsjson11_deserializeDocumentCloudHsmServiceException(v **types.CloudHsm } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2730,7 +2748,13 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2755,6 +2779,9 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/cloudhsmv2/deserializers.go b/service/cloudhsmv2/deserializers.go index 515f311db80..853f865105e 100644 --- a/service/cloudhsmv2/deserializers.go +++ b/service/cloudhsmv2/deserializers.go @@ -2827,7 +2827,13 @@ func awsAwsjson11_deserializeDocumentCloudHsmAccessDeniedException(v **types.Clo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2843,6 +2849,9 @@ func awsAwsjson11_deserializeDocumentCloudHsmAccessDeniedException(v **types.Clo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2867,7 +2876,13 @@ func awsAwsjson11_deserializeDocumentCloudHsmInternalFailureException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2883,6 +2898,9 @@ func awsAwsjson11_deserializeDocumentCloudHsmInternalFailureException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2907,7 +2925,13 @@ func awsAwsjson11_deserializeDocumentCloudHsmInvalidRequestException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2923,6 +2947,9 @@ func awsAwsjson11_deserializeDocumentCloudHsmInvalidRequestException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2947,7 +2974,13 @@ func awsAwsjson11_deserializeDocumentCloudHsmResourceNotFoundException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2963,6 +2996,9 @@ func awsAwsjson11_deserializeDocumentCloudHsmResourceNotFoundException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2987,7 +3023,13 @@ func awsAwsjson11_deserializeDocumentCloudHsmServiceException(v **types.CloudHsm sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3003,6 +3045,9 @@ func awsAwsjson11_deserializeDocumentCloudHsmServiceException(v **types.CloudHsm } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3027,7 +3072,13 @@ func awsAwsjson11_deserializeDocumentCloudHsmTagException(v **types.CloudHsmTagE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3043,6 +3094,9 @@ func awsAwsjson11_deserializeDocumentCloudHsmTagException(v **types.CloudHsmTagE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/cloudsearchdomain/deserializers.go b/service/cloudsearchdomain/deserializers.go index 10b43afea13..7cf190485e6 100644 --- a/service/cloudsearchdomain/deserializers.go +++ b/service/cloudsearchdomain/deserializers.go @@ -756,7 +756,13 @@ func awsRestjson1_deserializeDocumentDocumentServiceException(v **types.Document sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -781,6 +787,9 @@ func awsRestjson1_deserializeDocumentDocumentServiceException(v **types.Document } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1402,7 +1411,13 @@ func awsRestjson1_deserializeDocumentSearchException(v **types.SearchException, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1418,6 +1433,9 @@ func awsRestjson1_deserializeDocumentSearchException(v **types.SearchException, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/cloudtrail/deserializers.go b/service/cloudtrail/deserializers.go index 543c2c5e28f..0a646f93244 100644 --- a/service/cloudtrail/deserializers.go +++ b/service/cloudtrail/deserializers.go @@ -9745,7 +9745,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9761,6 +9767,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9785,7 +9794,13 @@ func awsAwsjson11_deserializeDocumentAccountHasOngoingImportException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9801,6 +9816,9 @@ func awsAwsjson11_deserializeDocumentAccountHasOngoingImportException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9825,7 +9843,13 @@ func awsAwsjson11_deserializeDocumentAccountNotFoundException(v **types.AccountN sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9841,6 +9865,9 @@ func awsAwsjson11_deserializeDocumentAccountNotFoundException(v **types.AccountN } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9865,7 +9892,13 @@ func awsAwsjson11_deserializeDocumentAccountNotRegisteredException(v **types.Acc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9881,6 +9914,9 @@ func awsAwsjson11_deserializeDocumentAccountNotRegisteredException(v **types.Acc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9905,7 +9941,13 @@ func awsAwsjson11_deserializeDocumentAccountRegisteredException(v **types.Accoun sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9921,6 +9963,9 @@ func awsAwsjson11_deserializeDocumentAccountRegisteredException(v **types.Accoun } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10128,7 +10173,13 @@ func awsAwsjson11_deserializeDocumentCannotDelegateManagementAccountException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10144,6 +10195,9 @@ func awsAwsjson11_deserializeDocumentCannotDelegateManagementAccountException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10217,7 +10271,13 @@ func awsAwsjson11_deserializeDocumentChannelAlreadyExistsException(v **types.Cha sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10233,6 +10293,9 @@ func awsAwsjson11_deserializeDocumentChannelAlreadyExistsException(v **types.Cha } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10257,7 +10320,13 @@ func awsAwsjson11_deserializeDocumentChannelARNInvalidException(v **types.Channe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10273,6 +10342,9 @@ func awsAwsjson11_deserializeDocumentChannelARNInvalidException(v **types.Channe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10297,7 +10369,13 @@ func awsAwsjson11_deserializeDocumentChannelExistsForEDSException(v **types.Chan sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10313,6 +10391,9 @@ func awsAwsjson11_deserializeDocumentChannelExistsForEDSException(v **types.Chan } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10337,7 +10418,13 @@ func awsAwsjson11_deserializeDocumentChannelMaxLimitExceededException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10353,6 +10440,9 @@ func awsAwsjson11_deserializeDocumentChannelMaxLimitExceededException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10377,7 +10467,13 @@ func awsAwsjson11_deserializeDocumentChannelNotFoundException(v **types.ChannelN sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10393,6 +10489,9 @@ func awsAwsjson11_deserializeDocumentChannelNotFoundException(v **types.ChannelN } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10451,7 +10550,13 @@ func awsAwsjson11_deserializeDocumentCloudTrailAccessNotEnabledException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10467,6 +10572,9 @@ func awsAwsjson11_deserializeDocumentCloudTrailAccessNotEnabledException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10491,7 +10599,13 @@ func awsAwsjson11_deserializeDocumentCloudTrailARNInvalidException(v **types.Clo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10507,6 +10621,9 @@ func awsAwsjson11_deserializeDocumentCloudTrailARNInvalidException(v **types.Clo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10531,7 +10648,13 @@ func awsAwsjson11_deserializeDocumentCloudTrailInvalidClientTokenIdException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10547,6 +10670,9 @@ func awsAwsjson11_deserializeDocumentCloudTrailInvalidClientTokenIdException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10571,7 +10697,13 @@ func awsAwsjson11_deserializeDocumentCloudWatchLogsDeliveryUnavailableException( sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10587,6 +10719,9 @@ func awsAwsjson11_deserializeDocumentCloudWatchLogsDeliveryUnavailableException( } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10611,7 +10746,13 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10627,6 +10768,9 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10651,7 +10795,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10667,6 +10817,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10806,7 +10959,13 @@ func awsAwsjson11_deserializeDocumentDelegatedAdminAccountLimitExceededException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10822,6 +10981,9 @@ func awsAwsjson11_deserializeDocumentDelegatedAdminAccountLimitExceededException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11179,7 +11341,13 @@ func awsAwsjson11_deserializeDocumentEventDataStoreAlreadyExistsException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11195,6 +11363,9 @@ func awsAwsjson11_deserializeDocumentEventDataStoreAlreadyExistsException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11219,7 +11390,13 @@ func awsAwsjson11_deserializeDocumentEventDataStoreARNInvalidException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11235,6 +11412,9 @@ func awsAwsjson11_deserializeDocumentEventDataStoreARNInvalidException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11259,7 +11439,13 @@ func awsAwsjson11_deserializeDocumentEventDataStoreFederationEnabledException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11275,6 +11461,9 @@ func awsAwsjson11_deserializeDocumentEventDataStoreFederationEnabledException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11299,7 +11488,13 @@ func awsAwsjson11_deserializeDocumentEventDataStoreHasOngoingImportException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11315,6 +11510,9 @@ func awsAwsjson11_deserializeDocumentEventDataStoreHasOngoingImportException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11339,7 +11537,13 @@ func awsAwsjson11_deserializeDocumentEventDataStoreMaxLimitExceededException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11355,6 +11559,9 @@ func awsAwsjson11_deserializeDocumentEventDataStoreMaxLimitExceededException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11379,7 +11586,13 @@ func awsAwsjson11_deserializeDocumentEventDataStoreNotFoundException(v **types.E sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11395,6 +11608,9 @@ func awsAwsjson11_deserializeDocumentEventDataStoreNotFoundException(v **types.E } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11453,7 +11669,13 @@ func awsAwsjson11_deserializeDocumentEventDataStoreTerminationProtectedException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11469,6 +11691,9 @@ func awsAwsjson11_deserializeDocumentEventDataStoreTerminationProtectedException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11809,7 +12034,13 @@ func awsAwsjson11_deserializeDocumentImportNotFoundException(v **types.ImportNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11825,6 +12056,9 @@ func awsAwsjson11_deserializeDocumentImportNotFoundException(v **types.ImportNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12101,7 +12335,13 @@ func awsAwsjson11_deserializeDocumentInactiveEventDataStoreException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12117,6 +12357,9 @@ func awsAwsjson11_deserializeDocumentInactiveEventDataStoreException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12141,7 +12384,13 @@ func awsAwsjson11_deserializeDocumentInactiveQueryException(v **types.InactiveQu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12157,6 +12406,9 @@ func awsAwsjson11_deserializeDocumentInactiveQueryException(v **types.InactiveQu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12271,7 +12523,13 @@ func awsAwsjson11_deserializeDocumentInsightNotEnabledException(v **types.Insigh sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12287,6 +12545,9 @@ func awsAwsjson11_deserializeDocumentInsightNotEnabledException(v **types.Insigh } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12446,7 +12707,13 @@ func awsAwsjson11_deserializeDocumentInsufficientDependencyServiceAccessPermissi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12462,6 +12729,9 @@ func awsAwsjson11_deserializeDocumentInsufficientDependencyServiceAccessPermissi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12486,7 +12756,13 @@ func awsAwsjson11_deserializeDocumentInsufficientEncryptionPolicyException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12502,6 +12778,9 @@ func awsAwsjson11_deserializeDocumentInsufficientEncryptionPolicyException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12526,7 +12805,13 @@ func awsAwsjson11_deserializeDocumentInsufficientS3BucketPolicyException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12542,6 +12827,9 @@ func awsAwsjson11_deserializeDocumentInsufficientS3BucketPolicyException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12566,7 +12854,13 @@ func awsAwsjson11_deserializeDocumentInsufficientSnsTopicPolicyException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12582,6 +12876,9 @@ func awsAwsjson11_deserializeDocumentInsufficientSnsTopicPolicyException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12606,7 +12903,13 @@ func awsAwsjson11_deserializeDocumentInvalidCloudWatchLogsLogGroupArnException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12622,6 +12925,9 @@ func awsAwsjson11_deserializeDocumentInvalidCloudWatchLogsLogGroupArnException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12646,7 +12952,13 @@ func awsAwsjson11_deserializeDocumentInvalidCloudWatchLogsRoleArnException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12662,6 +12974,9 @@ func awsAwsjson11_deserializeDocumentInvalidCloudWatchLogsRoleArnException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12686,7 +13001,13 @@ func awsAwsjson11_deserializeDocumentInvalidDateRangeException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12702,6 +13023,9 @@ func awsAwsjson11_deserializeDocumentInvalidDateRangeException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12726,7 +13050,13 @@ func awsAwsjson11_deserializeDocumentInvalidEventCategoryException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12742,6 +13072,9 @@ func awsAwsjson11_deserializeDocumentInvalidEventCategoryException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12766,7 +13099,13 @@ func awsAwsjson11_deserializeDocumentInvalidEventDataStoreCategoryException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12782,6 +13121,9 @@ func awsAwsjson11_deserializeDocumentInvalidEventDataStoreCategoryException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12806,7 +13148,13 @@ func awsAwsjson11_deserializeDocumentInvalidEventDataStoreStatusException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12822,6 +13170,9 @@ func awsAwsjson11_deserializeDocumentInvalidEventDataStoreStatusException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12846,7 +13197,13 @@ func awsAwsjson11_deserializeDocumentInvalidEventSelectorsException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12862,6 +13219,9 @@ func awsAwsjson11_deserializeDocumentInvalidEventSelectorsException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12886,7 +13246,13 @@ func awsAwsjson11_deserializeDocumentInvalidHomeRegionException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12902,6 +13268,9 @@ func awsAwsjson11_deserializeDocumentInvalidHomeRegionException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12926,7 +13295,13 @@ func awsAwsjson11_deserializeDocumentInvalidImportSourceException(v **types.Inva sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12942,6 +13317,9 @@ func awsAwsjson11_deserializeDocumentInvalidImportSourceException(v **types.Inva } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12966,7 +13344,13 @@ func awsAwsjson11_deserializeDocumentInvalidInsightSelectorsException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12982,6 +13366,9 @@ func awsAwsjson11_deserializeDocumentInvalidInsightSelectorsException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13006,7 +13393,13 @@ func awsAwsjson11_deserializeDocumentInvalidKmsKeyIdException(v **types.InvalidK sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13022,6 +13415,9 @@ func awsAwsjson11_deserializeDocumentInvalidKmsKeyIdException(v **types.InvalidK } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13046,7 +13442,13 @@ func awsAwsjson11_deserializeDocumentInvalidLookupAttributesException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13062,6 +13464,9 @@ func awsAwsjson11_deserializeDocumentInvalidLookupAttributesException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13086,7 +13491,13 @@ func awsAwsjson11_deserializeDocumentInvalidMaxResultsException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13102,6 +13513,9 @@ func awsAwsjson11_deserializeDocumentInvalidMaxResultsException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13126,7 +13540,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13142,6 +13562,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13166,7 +13589,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterCombinationException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13182,6 +13611,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterCombinationException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13206,7 +13638,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13222,6 +13660,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13246,7 +13687,13 @@ func awsAwsjson11_deserializeDocumentInvalidQueryStatementException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13262,6 +13709,9 @@ func awsAwsjson11_deserializeDocumentInvalidQueryStatementException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13286,7 +13736,13 @@ func awsAwsjson11_deserializeDocumentInvalidQueryStatusException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13302,6 +13758,9 @@ func awsAwsjson11_deserializeDocumentInvalidQueryStatusException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13326,7 +13785,13 @@ func awsAwsjson11_deserializeDocumentInvalidS3BucketNameException(v **types.Inva sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13342,6 +13807,9 @@ func awsAwsjson11_deserializeDocumentInvalidS3BucketNameException(v **types.Inva } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13366,7 +13834,13 @@ func awsAwsjson11_deserializeDocumentInvalidS3PrefixException(v **types.InvalidS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13382,6 +13856,9 @@ func awsAwsjson11_deserializeDocumentInvalidS3PrefixException(v **types.InvalidS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13406,7 +13883,13 @@ func awsAwsjson11_deserializeDocumentInvalidSnsTopicNameException(v **types.Inva sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13422,6 +13905,9 @@ func awsAwsjson11_deserializeDocumentInvalidSnsTopicNameException(v **types.Inva } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13446,7 +13932,13 @@ func awsAwsjson11_deserializeDocumentInvalidSourceException(v **types.InvalidSou sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13462,6 +13954,9 @@ func awsAwsjson11_deserializeDocumentInvalidSourceException(v **types.InvalidSou } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13486,7 +13981,13 @@ func awsAwsjson11_deserializeDocumentInvalidTagParameterException(v **types.Inva sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13502,6 +14003,9 @@ func awsAwsjson11_deserializeDocumentInvalidTagParameterException(v **types.Inva } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13526,7 +14030,13 @@ func awsAwsjson11_deserializeDocumentInvalidTimeRangeException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13542,6 +14052,9 @@ func awsAwsjson11_deserializeDocumentInvalidTimeRangeException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13566,7 +14079,13 @@ func awsAwsjson11_deserializeDocumentInvalidTokenException(v **types.InvalidToke sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13582,6 +14101,9 @@ func awsAwsjson11_deserializeDocumentInvalidTokenException(v **types.InvalidToke } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13606,7 +14128,13 @@ func awsAwsjson11_deserializeDocumentInvalidTrailNameException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13622,6 +14150,9 @@ func awsAwsjson11_deserializeDocumentInvalidTrailNameException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13646,7 +14177,13 @@ func awsAwsjson11_deserializeDocumentKmsException(v **types.KmsException, value sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13662,6 +14199,9 @@ func awsAwsjson11_deserializeDocumentKmsException(v **types.KmsException, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13686,7 +14226,13 @@ func awsAwsjson11_deserializeDocumentKmsKeyDisabledException(v **types.KmsKeyDis sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13702,6 +14248,9 @@ func awsAwsjson11_deserializeDocumentKmsKeyDisabledException(v **types.KmsKeyDis } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13726,7 +14275,13 @@ func awsAwsjson11_deserializeDocumentKmsKeyNotFoundException(v **types.KmsKeyNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13742,6 +14297,9 @@ func awsAwsjson11_deserializeDocumentKmsKeyNotFoundException(v **types.KmsKeyNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13766,7 +14324,13 @@ func awsAwsjson11_deserializeDocumentMaxConcurrentQueriesException(v **types.Max sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13782,6 +14346,9 @@ func awsAwsjson11_deserializeDocumentMaxConcurrentQueriesException(v **types.Max } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13806,7 +14373,13 @@ func awsAwsjson11_deserializeDocumentMaximumNumberOfTrailsExceededException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13822,6 +14395,9 @@ func awsAwsjson11_deserializeDocumentMaximumNumberOfTrailsExceededException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13846,7 +14422,13 @@ func awsAwsjson11_deserializeDocumentNoManagementAccountSLRExistsException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13862,6 +14444,9 @@ func awsAwsjson11_deserializeDocumentNoManagementAccountSLRExistsException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13886,7 +14471,13 @@ func awsAwsjson11_deserializeDocumentNotOrganizationManagementAccountException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13902,6 +14493,9 @@ func awsAwsjson11_deserializeDocumentNotOrganizationManagementAccountException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13926,7 +14520,13 @@ func awsAwsjson11_deserializeDocumentNotOrganizationMasterAccountException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13942,6 +14542,9 @@ func awsAwsjson11_deserializeDocumentNotOrganizationMasterAccountException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13966,7 +14569,13 @@ func awsAwsjson11_deserializeDocumentOperationNotPermittedException(v **types.Op sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13982,6 +14591,9 @@ func awsAwsjson11_deserializeDocumentOperationNotPermittedException(v **types.Op } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14042,7 +14654,13 @@ func awsAwsjson11_deserializeDocumentOrganizationNotInAllFeaturesModeException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14058,6 +14676,9 @@ func awsAwsjson11_deserializeDocumentOrganizationNotInAllFeaturesModeException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14082,7 +14703,13 @@ func awsAwsjson11_deserializeDocumentOrganizationsNotInUseException(v **types.Or sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14098,6 +14725,9 @@ func awsAwsjson11_deserializeDocumentOrganizationsNotInUseException(v **types.Or } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14423,7 +15053,13 @@ func awsAwsjson11_deserializeDocumentQueryIdNotFoundException(v **types.QueryIdN sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14439,6 +15075,9 @@ func awsAwsjson11_deserializeDocumentQueryIdNotFoundException(v **types.QueryIdN } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14781,7 +15420,13 @@ func awsAwsjson11_deserializeDocumentResourceARNNotValidException(v **types.Reso sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14797,6 +15442,9 @@ func awsAwsjson11_deserializeDocumentResourceARNNotValidException(v **types.Reso } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14855,7 +15503,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14871,6 +15525,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14895,7 +15552,13 @@ func awsAwsjson11_deserializeDocumentResourcePolicyNotFoundException(v **types.R sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14911,6 +15574,9 @@ func awsAwsjson11_deserializeDocumentResourcePolicyNotFoundException(v **types.R } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14935,7 +15601,13 @@ func awsAwsjson11_deserializeDocumentResourcePolicyNotValidException(v **types.R sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14951,6 +15623,9 @@ func awsAwsjson11_deserializeDocumentResourcePolicyNotValidException(v **types.R } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15054,7 +15729,13 @@ func awsAwsjson11_deserializeDocumentResourceTypeNotSupportedException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15070,6 +15751,9 @@ func awsAwsjson11_deserializeDocumentResourceTypeNotSupportedException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15094,7 +15778,13 @@ func awsAwsjson11_deserializeDocumentS3BucketDoesNotExistException(v **types.S3B sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15110,6 +15800,9 @@ func awsAwsjson11_deserializeDocumentS3BucketDoesNotExistException(v **types.S3B } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15286,7 +15979,13 @@ func awsAwsjson11_deserializeDocumentTagsLimitExceededException(v **types.TagsLi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15302,6 +16001,9 @@ func awsAwsjson11_deserializeDocumentTagsLimitExceededException(v **types.TagsLi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15360,7 +16062,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15376,6 +16084,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15618,7 +16329,13 @@ func awsAwsjson11_deserializeDocumentTrailAlreadyExistsException(v **types.Trail sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15634,6 +16351,9 @@ func awsAwsjson11_deserializeDocumentTrailAlreadyExistsException(v **types.Trail } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15750,7 +16470,13 @@ func awsAwsjson11_deserializeDocumentTrailNotFoundException(v **types.TrailNotFo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15766,6 +16492,9 @@ func awsAwsjson11_deserializeDocumentTrailNotFoundException(v **types.TrailNotFo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15790,7 +16519,13 @@ func awsAwsjson11_deserializeDocumentTrailNotProvidedException(v **types.TrailNo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15806,6 +16541,9 @@ func awsAwsjson11_deserializeDocumentTrailNotProvidedException(v **types.TrailNo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15864,7 +16602,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15880,6 +16624,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/cloudtraildata/deserializers.go b/service/cloudtraildata/deserializers.go index c1c172d4271..febe2a980f7 100644 --- a/service/cloudtraildata/deserializers.go +++ b/service/cloudtraildata/deserializers.go @@ -520,7 +520,13 @@ func awsRestjson1_deserializeDocumentChannelInsufficientPermission(v **types.Cha sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -536,6 +542,9 @@ func awsRestjson1_deserializeDocumentChannelInsufficientPermission(v **types.Cha } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -560,7 +569,13 @@ func awsRestjson1_deserializeDocumentChannelNotFound(v **types.ChannelNotFound, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -576,6 +591,9 @@ func awsRestjson1_deserializeDocumentChannelNotFound(v **types.ChannelNotFound, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -600,7 +618,13 @@ func awsRestjson1_deserializeDocumentChannelUnsupportedSchema(v **types.ChannelU sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -616,6 +640,9 @@ func awsRestjson1_deserializeDocumentChannelUnsupportedSchema(v **types.ChannelU } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -640,7 +667,13 @@ func awsRestjson1_deserializeDocumentDuplicatedAuditEventId(v **types.Duplicated sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -656,6 +689,9 @@ func awsRestjson1_deserializeDocumentDuplicatedAuditEventId(v **types.Duplicated } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -680,7 +716,13 @@ func awsRestjson1_deserializeDocumentInvalidChannelARN(v **types.InvalidChannelA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -696,6 +738,9 @@ func awsRestjson1_deserializeDocumentInvalidChannelARN(v **types.InvalidChannelA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -812,7 +857,13 @@ func awsRestjson1_deserializeDocumentUnsupportedOperationException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -828,6 +879,9 @@ func awsRestjson1_deserializeDocumentUnsupportedOperationException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/cloudwatchevents/deserializers.go b/service/cloudwatchevents/deserializers.go index 4628d6e56ea..3ab0a89d95f 100644 --- a/service/cloudwatchevents/deserializers.go +++ b/service/cloudwatchevents/deserializers.go @@ -6851,7 +6851,13 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6867,6 +6873,9 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8089,7 +8098,13 @@ func awsAwsjson11_deserializeDocumentIllegalStatusException(v **types.IllegalSta sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8105,6 +8120,9 @@ func awsAwsjson11_deserializeDocumentIllegalStatusException(v **types.IllegalSta } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8174,7 +8192,13 @@ func awsAwsjson11_deserializeDocumentInternalException(v **types.InternalExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8190,6 +8214,9 @@ func awsAwsjson11_deserializeDocumentInternalException(v **types.InternalExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8214,7 +8241,13 @@ func awsAwsjson11_deserializeDocumentInvalidEventPatternException(v **types.Inva sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8230,6 +8263,9 @@ func awsAwsjson11_deserializeDocumentInvalidEventPatternException(v **types.Inva } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8254,7 +8290,13 @@ func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8270,6 +8312,9 @@ func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8334,7 +8379,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8350,6 +8401,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8374,7 +8428,13 @@ func awsAwsjson11_deserializeDocumentManagedRuleException(v **types.ManagedRuleE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8390,6 +8450,9 @@ func awsAwsjson11_deserializeDocumentManagedRuleException(v **types.ManagedRuleE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8450,7 +8513,13 @@ func awsAwsjson11_deserializeDocumentOperationDisabledException(v **types.Operat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8466,6 +8535,9 @@ func awsAwsjson11_deserializeDocumentOperationDisabledException(v **types.Operat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8890,7 +8962,13 @@ func awsAwsjson11_deserializeDocumentPolicyLengthExceededException(v **types.Pol sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8906,6 +8984,9 @@ func awsAwsjson11_deserializeDocumentPolicyLengthExceededException(v **types.Pol } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9681,7 +9762,13 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9697,6 +9784,9 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9721,7 +9811,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9737,6 +9833,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/cloudwatchlogs/deserializers.go b/service/cloudwatchlogs/deserializers.go index 0905c23b190..308ddeb50c9 100644 --- a/service/cloudwatchlogs/deserializers.go +++ b/service/cloudwatchlogs/deserializers.go @@ -9025,7 +9025,13 @@ func awsAwsjson11_deserializeDocumentSessionStreamingException(v **types.Session sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9041,6 +9047,9 @@ func awsAwsjson11_deserializeDocumentSessionStreamingException(v **types.Session } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9065,7 +9074,13 @@ func awsAwsjson11_deserializeDocumentSessionTimeoutException(v **types.SessionTi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9081,6 +9096,9 @@ func awsAwsjson11_deserializeDocumentSessionTimeoutException(v **types.SessionTi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9803,7 +9821,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9819,6 +9843,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10629,7 +10656,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10645,6 +10678,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10669,7 +10705,13 @@ func awsAwsjson11_deserializeDocumentDataAlreadyAcceptedException(v **types.Data sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "expectedSequenceToken": if value != nil { @@ -10694,6 +10736,9 @@ func awsAwsjson11_deserializeDocumentDataAlreadyAcceptedException(v **types.Data } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11795,7 +11840,13 @@ func awsAwsjson11_deserializeDocumentInvalidOperationException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11811,6 +11862,9 @@ func awsAwsjson11_deserializeDocumentInvalidOperationException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11835,7 +11889,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11851,6 +11911,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11875,7 +11938,13 @@ func awsAwsjson11_deserializeDocumentInvalidSequenceTokenException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "expectedSequenceToken": if value != nil { @@ -11900,6 +11969,9 @@ func awsAwsjson11_deserializeDocumentInvalidSequenceTokenException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11924,7 +11996,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11940,6 +12018,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12579,7 +12660,13 @@ func awsAwsjson11_deserializeDocumentMalformedQueryException(v **types.Malformed sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12600,6 +12687,9 @@ func awsAwsjson11_deserializeDocumentMalformedQueryException(v **types.Malformed } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12966,7 +13056,13 @@ func awsAwsjson11_deserializeDocumentOperationAbortedException(v **types.Operati sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12982,6 +13078,9 @@ func awsAwsjson11_deserializeDocumentOperationAbortedException(v **types.Operati } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13978,7 +14077,13 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13994,6 +14099,9 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14054,7 +14162,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14070,6 +14184,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14405,7 +14522,13 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14421,6 +14544,9 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14445,7 +14571,13 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14461,6 +14593,9 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14653,7 +14788,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14669,6 +14810,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14693,7 +14837,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14718,6 +14868,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14742,7 +14895,13 @@ func awsAwsjson11_deserializeDocumentUnrecognizedClientException(v **types.Unrec sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14758,6 +14917,9 @@ func awsAwsjson11_deserializeDocumentUnrecognizedClientException(v **types.Unrec } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14782,7 +14944,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14798,6 +14966,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/codeartifact/deserializers.go b/service/codeartifact/deserializers.go index f519edb57ba..d3239a0b487 100644 --- a/service/codeartifact/deserializers.go +++ b/service/codeartifact/deserializers.go @@ -8513,7 +8513,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8529,6 +8535,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8782,7 +8791,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8816,6 +8831,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9142,7 +9160,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9158,6 +9182,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10869,7 +10896,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10903,6 +10936,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10985,7 +11021,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11019,6 +11061,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11210,7 +11255,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11239,6 +11290,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11337,7 +11391,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11362,6 +11422,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/codebuild/deserializers.go b/service/codebuild/deserializers.go index 03fdd0f1f2e..4adf14db56d 100644 --- a/service/codebuild/deserializers.go +++ b/service/codebuild/deserializers.go @@ -5883,7 +5883,13 @@ func awsAwsjson11_deserializeDocumentAccountLimitExceededException(v **types.Acc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5899,6 +5905,9 @@ func awsAwsjson11_deserializeDocumentAccountLimitExceededException(v **types.Acc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9103,7 +9112,13 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9119,6 +9134,9 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9328,7 +9346,13 @@ func awsAwsjson11_deserializeDocumentOAuthProviderException(v **types.OAuthProvi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9344,6 +9368,9 @@ func awsAwsjson11_deserializeDocumentOAuthProviderException(v **types.OAuthProvi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11475,7 +11502,13 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11491,6 +11524,9 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11515,7 +11551,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11531,6 +11573,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/codecatalyst/deserializers.go b/service/codecatalyst/deserializers.go index ac96b9c20b3..ecaf1bb9e13 100644 --- a/service/codecatalyst/deserializers.go +++ b/service/codecatalyst/deserializers.go @@ -7656,7 +7656,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7672,6 +7678,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7792,7 +7801,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7808,6 +7823,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9125,7 +9143,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9141,6 +9165,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9165,7 +9192,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9181,6 +9214,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9306,7 +9342,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9322,6 +9364,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9413,7 +9458,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9429,6 +9480,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/codecommit/deserializers.go b/service/codecommit/deserializers.go index 485117f682b..5df80f4c7fe 100644 --- a/service/codecommit/deserializers.go +++ b/service/codecommit/deserializers.go @@ -18250,7 +18250,13 @@ func awsAwsjson11_deserializeDocumentActorDoesNotExistException(v **types.ActorD sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18266,6 +18272,9 @@ func awsAwsjson11_deserializeDocumentActorDoesNotExistException(v **types.ActorD } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18486,7 +18495,13 @@ func awsAwsjson11_deserializeDocumentApprovalRuleContentRequiredException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18502,6 +18517,9 @@ func awsAwsjson11_deserializeDocumentApprovalRuleContentRequiredException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18526,7 +18544,13 @@ func awsAwsjson11_deserializeDocumentApprovalRuleDoesNotExistException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18542,6 +18566,9 @@ func awsAwsjson11_deserializeDocumentApprovalRuleDoesNotExistException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18624,7 +18651,13 @@ func awsAwsjson11_deserializeDocumentApprovalRuleNameAlreadyExistsException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18640,6 +18673,9 @@ func awsAwsjson11_deserializeDocumentApprovalRuleNameAlreadyExistsException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18664,7 +18700,13 @@ func awsAwsjson11_deserializeDocumentApprovalRuleNameRequiredException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18680,6 +18722,9 @@ func awsAwsjson11_deserializeDocumentApprovalRuleNameRequiredException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18976,7 +19021,13 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplateContentRequiredExceptio sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18992,6 +19043,9 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplateContentRequiredExceptio } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19016,7 +19070,13 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplateDoesNotExistException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19032,6 +19092,9 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplateDoesNotExistException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19056,7 +19119,13 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplateInUseException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19072,6 +19141,9 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplateInUseException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19096,7 +19168,13 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplateNameAlreadyExistsExcept sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19112,6 +19190,9 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplateNameAlreadyExistsExcept } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19172,7 +19253,13 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplateNameRequiredException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19188,6 +19275,9 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplateNameRequiredException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19261,7 +19351,13 @@ func awsAwsjson11_deserializeDocumentApprovalStateRequiredException(v **types.Ap sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19277,6 +19373,9 @@ func awsAwsjson11_deserializeDocumentApprovalStateRequiredException(v **types.Ap } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19301,7 +19400,13 @@ func awsAwsjson11_deserializeDocumentAuthorDoesNotExistException(v **types.Autho sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19317,6 +19422,9 @@ func awsAwsjson11_deserializeDocumentAuthorDoesNotExistException(v **types.Autho } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19810,7 +19918,13 @@ func awsAwsjson11_deserializeDocumentBeforeCommitIdAndAfterCommitIdAreSameExcept sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19826,6 +19940,9 @@ func awsAwsjson11_deserializeDocumentBeforeCommitIdAndAfterCommitIdAreSameExcept } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19850,7 +19967,13 @@ func awsAwsjson11_deserializeDocumentBlobIdDoesNotExistException(v **types.BlobI sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19866,6 +19989,9 @@ func awsAwsjson11_deserializeDocumentBlobIdDoesNotExistException(v **types.BlobI } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19890,7 +20016,13 @@ func awsAwsjson11_deserializeDocumentBlobIdRequiredException(v **types.BlobIdReq sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19906,6 +20038,9 @@ func awsAwsjson11_deserializeDocumentBlobIdRequiredException(v **types.BlobIdReq } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19988,7 +20123,13 @@ func awsAwsjson11_deserializeDocumentBranchDoesNotExistException(v **types.Branc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20004,6 +20145,9 @@ func awsAwsjson11_deserializeDocumentBranchDoesNotExistException(v **types.Branc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20077,7 +20221,13 @@ func awsAwsjson11_deserializeDocumentBranchNameExistsException(v **types.BranchN sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20093,6 +20243,9 @@ func awsAwsjson11_deserializeDocumentBranchNameExistsException(v **types.BranchN } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20117,7 +20270,13 @@ func awsAwsjson11_deserializeDocumentBranchNameIsTagNameException(v **types.Bran sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20133,6 +20292,9 @@ func awsAwsjson11_deserializeDocumentBranchNameIsTagNameException(v **types.Bran } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20193,7 +20355,13 @@ func awsAwsjson11_deserializeDocumentBranchNameRequiredException(v **types.Branc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20209,6 +20377,9 @@ func awsAwsjson11_deserializeDocumentBranchNameRequiredException(v **types.Branc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20269,7 +20440,13 @@ func awsAwsjson11_deserializeDocumentCannotDeleteApprovalRuleFromTemplateExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20285,6 +20462,9 @@ func awsAwsjson11_deserializeDocumentCannotDeleteApprovalRuleFromTemplateExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20309,7 +20489,13 @@ func awsAwsjson11_deserializeDocumentCannotModifyApprovalRuleFromTemplateExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20325,6 +20511,9 @@ func awsAwsjson11_deserializeDocumentCannotModifyApprovalRuleFromTemplateExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20349,7 +20538,13 @@ func awsAwsjson11_deserializeDocumentClientRequestTokenRequiredException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20365,6 +20560,9 @@ func awsAwsjson11_deserializeDocumentClientRequestTokenRequiredException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20516,7 +20714,13 @@ func awsAwsjson11_deserializeDocumentCommentContentRequiredException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20532,6 +20736,9 @@ func awsAwsjson11_deserializeDocumentCommentContentRequiredException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20556,7 +20763,13 @@ func awsAwsjson11_deserializeDocumentCommentContentSizeLimitExceededException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20572,6 +20785,9 @@ func awsAwsjson11_deserializeDocumentCommentContentSizeLimitExceededException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20596,7 +20812,13 @@ func awsAwsjson11_deserializeDocumentCommentDeletedException(v **types.CommentDe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20612,6 +20834,9 @@ func awsAwsjson11_deserializeDocumentCommentDeletedException(v **types.CommentDe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20636,7 +20861,13 @@ func awsAwsjson11_deserializeDocumentCommentDoesNotExistException(v **types.Comm sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20652,6 +20883,9 @@ func awsAwsjson11_deserializeDocumentCommentDoesNotExistException(v **types.Comm } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20676,7 +20910,13 @@ func awsAwsjson11_deserializeDocumentCommentIdRequiredException(v **types.Commen sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20692,6 +20932,9 @@ func awsAwsjson11_deserializeDocumentCommentIdRequiredException(v **types.Commen } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20716,7 +20959,13 @@ func awsAwsjson11_deserializeDocumentCommentNotCreatedByCallerException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20732,6 +20981,9 @@ func awsAwsjson11_deserializeDocumentCommentNotCreatedByCallerException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21121,7 +21373,13 @@ func awsAwsjson11_deserializeDocumentCommitDoesNotExistException(v **types.Commi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21137,6 +21395,9 @@ func awsAwsjson11_deserializeDocumentCommitDoesNotExistException(v **types.Commi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21161,7 +21422,13 @@ func awsAwsjson11_deserializeDocumentCommitIdDoesNotExistException(v **types.Com sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21177,6 +21444,9 @@ func awsAwsjson11_deserializeDocumentCommitIdDoesNotExistException(v **types.Com } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21201,7 +21471,13 @@ func awsAwsjson11_deserializeDocumentCommitIdRequiredException(v **types.CommitI sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21217,6 +21493,9 @@ func awsAwsjson11_deserializeDocumentCommitIdRequiredException(v **types.CommitI } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21241,7 +21520,13 @@ func awsAwsjson11_deserializeDocumentCommitIdsLimitExceededException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21257,6 +21542,9 @@ func awsAwsjson11_deserializeDocumentCommitIdsLimitExceededException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21281,7 +21569,13 @@ func awsAwsjson11_deserializeDocumentCommitIdsListRequiredException(v **types.Co sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21297,6 +21591,9 @@ func awsAwsjson11_deserializeDocumentCommitIdsListRequiredException(v **types.Co } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21321,7 +21618,13 @@ func awsAwsjson11_deserializeDocumentCommitMessageLengthExceededException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21337,6 +21640,9 @@ func awsAwsjson11_deserializeDocumentCommitMessageLengthExceededException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21395,7 +21701,13 @@ func awsAwsjson11_deserializeDocumentCommitRequiredException(v **types.CommitReq sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21411,6 +21723,9 @@ func awsAwsjson11_deserializeDocumentCommitRequiredException(v **types.CommitReq } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21435,7 +21750,13 @@ func awsAwsjson11_deserializeDocumentConcurrentReferenceUpdateException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21451,6 +21772,9 @@ func awsAwsjson11_deserializeDocumentConcurrentReferenceUpdateException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21689,7 +22013,13 @@ func awsAwsjson11_deserializeDocumentDefaultBranchCannotBeDeletedException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21705,6 +22035,9 @@ func awsAwsjson11_deserializeDocumentDefaultBranchCannotBeDeletedException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21813,7 +22146,13 @@ func awsAwsjson11_deserializeDocumentDirectoryNameConflictsWithFileNameException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21829,6 +22168,9 @@ func awsAwsjson11_deserializeDocumentDirectoryNameConflictsWithFileNameException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21853,7 +22195,13 @@ func awsAwsjson11_deserializeDocumentEncryptionIntegrityChecksFailedException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21869,6 +22217,9 @@ func awsAwsjson11_deserializeDocumentEncryptionIntegrityChecksFailedException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21893,7 +22244,13 @@ func awsAwsjson11_deserializeDocumentEncryptionKeyAccessDeniedException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21909,6 +22266,9 @@ func awsAwsjson11_deserializeDocumentEncryptionKeyAccessDeniedException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21933,7 +22293,13 @@ func awsAwsjson11_deserializeDocumentEncryptionKeyDisabledException(v **types.En sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21949,6 +22315,9 @@ func awsAwsjson11_deserializeDocumentEncryptionKeyDisabledException(v **types.En } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21973,7 +22342,13 @@ func awsAwsjson11_deserializeDocumentEncryptionKeyInvalidIdException(v **types.E sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21989,6 +22364,9 @@ func awsAwsjson11_deserializeDocumentEncryptionKeyInvalidIdException(v **types.E } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22013,7 +22391,13 @@ func awsAwsjson11_deserializeDocumentEncryptionKeyInvalidUsageException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22029,6 +22413,9 @@ func awsAwsjson11_deserializeDocumentEncryptionKeyInvalidUsageException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22053,7 +22440,13 @@ func awsAwsjson11_deserializeDocumentEncryptionKeyNotFoundException(v **types.En sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22069,6 +22462,9 @@ func awsAwsjson11_deserializeDocumentEncryptionKeyNotFoundException(v **types.En } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22093,7 +22489,13 @@ func awsAwsjson11_deserializeDocumentEncryptionKeyRequiredException(v **types.En sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22109,6 +22511,9 @@ func awsAwsjson11_deserializeDocumentEncryptionKeyRequiredException(v **types.En } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22133,7 +22538,13 @@ func awsAwsjson11_deserializeDocumentEncryptionKeyUnavailableException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22149,6 +22560,9 @@ func awsAwsjson11_deserializeDocumentEncryptionKeyUnavailableException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22299,7 +22713,13 @@ func awsAwsjson11_deserializeDocumentFileContentAndSourceFileSpecifiedException( sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22315,6 +22735,9 @@ func awsAwsjson11_deserializeDocumentFileContentAndSourceFileSpecifiedException( } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22339,7 +22762,13 @@ func awsAwsjson11_deserializeDocumentFileContentRequiredException(v **types.File sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22355,6 +22784,9 @@ func awsAwsjson11_deserializeDocumentFileContentRequiredException(v **types.File } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22379,7 +22811,13 @@ func awsAwsjson11_deserializeDocumentFileContentSizeLimitExceededException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22395,6 +22833,9 @@ func awsAwsjson11_deserializeDocumentFileContentSizeLimitExceededException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22419,7 +22860,13 @@ func awsAwsjson11_deserializeDocumentFileDoesNotExistException(v **types.FileDoe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22435,6 +22882,9 @@ func awsAwsjson11_deserializeDocumentFileDoesNotExistException(v **types.FileDoe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22459,7 +22909,13 @@ func awsAwsjson11_deserializeDocumentFileEntryRequiredException(v **types.FileEn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22475,6 +22931,9 @@ func awsAwsjson11_deserializeDocumentFileEntryRequiredException(v **types.FileEn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22591,7 +23050,13 @@ func awsAwsjson11_deserializeDocumentFileModeRequiredException(v **types.FileMod sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22607,6 +23072,9 @@ func awsAwsjson11_deserializeDocumentFileModeRequiredException(v **types.FileMod } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22689,7 +23157,13 @@ func awsAwsjson11_deserializeDocumentFileNameConflictsWithDirectoryNameException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22705,6 +23179,9 @@ func awsAwsjson11_deserializeDocumentFileNameConflictsWithDirectoryNameException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22729,7 +23206,13 @@ func awsAwsjson11_deserializeDocumentFilePathConflictsWithSubmodulePathException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22745,6 +23228,9 @@ func awsAwsjson11_deserializeDocumentFilePathConflictsWithSubmodulePathException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22873,7 +23359,13 @@ func awsAwsjson11_deserializeDocumentFileTooLargeException(v **types.FileTooLarg sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22889,6 +23381,9 @@ func awsAwsjson11_deserializeDocumentFileTooLargeException(v **types.FileTooLarg } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23030,7 +23525,13 @@ func awsAwsjson11_deserializeDocumentFolderContentSizeLimitExceededException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23046,6 +23547,9 @@ func awsAwsjson11_deserializeDocumentFolderContentSizeLimitExceededException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23070,7 +23574,13 @@ func awsAwsjson11_deserializeDocumentFolderDoesNotExistException(v **types.Folde sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23086,6 +23596,9 @@ func awsAwsjson11_deserializeDocumentFolderDoesNotExistException(v **types.Folde } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23144,7 +23657,13 @@ func awsAwsjson11_deserializeDocumentIdempotencyParameterMismatchException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23160,6 +23679,9 @@ func awsAwsjson11_deserializeDocumentIdempotencyParameterMismatchException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23184,7 +23706,13 @@ func awsAwsjson11_deserializeDocumentInvalidActorArnException(v **types.InvalidA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23200,6 +23728,9 @@ func awsAwsjson11_deserializeDocumentInvalidActorArnException(v **types.InvalidA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23224,7 +23755,13 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalRuleContentException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23240,6 +23777,9 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalRuleContentException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23264,7 +23804,13 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalRuleNameException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23280,6 +23826,9 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalRuleNameException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23304,7 +23853,13 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalRuleTemplateContentException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23320,6 +23875,9 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalRuleTemplateContentException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23344,7 +23902,13 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalRuleTemplateDescriptionExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23360,6 +23924,9 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalRuleTemplateDescriptionExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23384,7 +23951,13 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalRuleTemplateNameException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23400,6 +23973,9 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalRuleTemplateNameException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23424,7 +24000,13 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalStateException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23440,6 +24022,9 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalStateException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23464,7 +24049,13 @@ func awsAwsjson11_deserializeDocumentInvalidAuthorArnException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23480,6 +24071,9 @@ func awsAwsjson11_deserializeDocumentInvalidAuthorArnException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23504,7 +24098,13 @@ func awsAwsjson11_deserializeDocumentInvalidBlobIdException(v **types.InvalidBlo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23520,6 +24120,9 @@ func awsAwsjson11_deserializeDocumentInvalidBlobIdException(v **types.InvalidBlo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23544,7 +24147,13 @@ func awsAwsjson11_deserializeDocumentInvalidBranchNameException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23560,6 +24169,9 @@ func awsAwsjson11_deserializeDocumentInvalidBranchNameException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23584,7 +24196,13 @@ func awsAwsjson11_deserializeDocumentInvalidClientRequestTokenException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23600,6 +24218,9 @@ func awsAwsjson11_deserializeDocumentInvalidClientRequestTokenException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23624,7 +24245,13 @@ func awsAwsjson11_deserializeDocumentInvalidCommentIdException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23640,6 +24267,9 @@ func awsAwsjson11_deserializeDocumentInvalidCommentIdException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23664,7 +24294,13 @@ func awsAwsjson11_deserializeDocumentInvalidCommitException(v **types.InvalidCom sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23680,6 +24316,9 @@ func awsAwsjson11_deserializeDocumentInvalidCommitException(v **types.InvalidCom } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23704,7 +24343,13 @@ func awsAwsjson11_deserializeDocumentInvalidCommitIdException(v **types.InvalidC sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23720,6 +24365,9 @@ func awsAwsjson11_deserializeDocumentInvalidCommitIdException(v **types.InvalidC } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23744,7 +24392,13 @@ func awsAwsjson11_deserializeDocumentInvalidConflictDetailLevelException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23760,6 +24414,9 @@ func awsAwsjson11_deserializeDocumentInvalidConflictDetailLevelException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23784,7 +24441,13 @@ func awsAwsjson11_deserializeDocumentInvalidConflictResolutionException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23800,6 +24463,9 @@ func awsAwsjson11_deserializeDocumentInvalidConflictResolutionException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23824,7 +24490,13 @@ func awsAwsjson11_deserializeDocumentInvalidConflictResolutionStrategyException( sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23840,6 +24512,9 @@ func awsAwsjson11_deserializeDocumentInvalidConflictResolutionStrategyException( } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23864,7 +24539,13 @@ func awsAwsjson11_deserializeDocumentInvalidContinuationTokenException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23880,6 +24561,9 @@ func awsAwsjson11_deserializeDocumentInvalidContinuationTokenException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23904,7 +24588,13 @@ func awsAwsjson11_deserializeDocumentInvalidDeletionParameterException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23920,6 +24610,9 @@ func awsAwsjson11_deserializeDocumentInvalidDeletionParameterException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23944,7 +24637,13 @@ func awsAwsjson11_deserializeDocumentInvalidDescriptionException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23960,6 +24659,9 @@ func awsAwsjson11_deserializeDocumentInvalidDescriptionException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23984,7 +24686,13 @@ func awsAwsjson11_deserializeDocumentInvalidDestinationCommitSpecifierException( sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24000,6 +24708,9 @@ func awsAwsjson11_deserializeDocumentInvalidDestinationCommitSpecifierException( } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24024,7 +24735,13 @@ func awsAwsjson11_deserializeDocumentInvalidEmailException(v **types.InvalidEmai sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24040,6 +24757,9 @@ func awsAwsjson11_deserializeDocumentInvalidEmailException(v **types.InvalidEmai } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24064,7 +24784,13 @@ func awsAwsjson11_deserializeDocumentInvalidFileLocationException(v **types.Inva sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24080,6 +24806,9 @@ func awsAwsjson11_deserializeDocumentInvalidFileLocationException(v **types.Inva } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24104,7 +24833,13 @@ func awsAwsjson11_deserializeDocumentInvalidFileModeException(v **types.InvalidF sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24120,6 +24855,9 @@ func awsAwsjson11_deserializeDocumentInvalidFileModeException(v **types.InvalidF } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24144,7 +24882,13 @@ func awsAwsjson11_deserializeDocumentInvalidFilePositionException(v **types.Inva sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24160,6 +24904,9 @@ func awsAwsjson11_deserializeDocumentInvalidFilePositionException(v **types.Inva } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24184,7 +24931,13 @@ func awsAwsjson11_deserializeDocumentInvalidMaxConflictFilesException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24200,6 +24953,9 @@ func awsAwsjson11_deserializeDocumentInvalidMaxConflictFilesException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24224,7 +24980,13 @@ func awsAwsjson11_deserializeDocumentInvalidMaxMergeHunksException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24240,6 +25002,9 @@ func awsAwsjson11_deserializeDocumentInvalidMaxMergeHunksException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24264,7 +25029,13 @@ func awsAwsjson11_deserializeDocumentInvalidMaxResultsException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24280,6 +25051,9 @@ func awsAwsjson11_deserializeDocumentInvalidMaxResultsException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24304,7 +25078,13 @@ func awsAwsjson11_deserializeDocumentInvalidMergeOptionException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24320,6 +25100,9 @@ func awsAwsjson11_deserializeDocumentInvalidMergeOptionException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24344,7 +25127,13 @@ func awsAwsjson11_deserializeDocumentInvalidOrderException(v **types.InvalidOrde sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24360,6 +25149,9 @@ func awsAwsjson11_deserializeDocumentInvalidOrderException(v **types.InvalidOrde } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24384,7 +25176,13 @@ func awsAwsjson11_deserializeDocumentInvalidOverrideStatusException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24400,6 +25198,9 @@ func awsAwsjson11_deserializeDocumentInvalidOverrideStatusException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24424,7 +25225,13 @@ func awsAwsjson11_deserializeDocumentInvalidParentCommitIdException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24440,6 +25247,9 @@ func awsAwsjson11_deserializeDocumentInvalidParentCommitIdException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24464,7 +25274,13 @@ func awsAwsjson11_deserializeDocumentInvalidPathException(v **types.InvalidPathE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24480,6 +25296,9 @@ func awsAwsjson11_deserializeDocumentInvalidPathException(v **types.InvalidPathE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24504,7 +25323,13 @@ func awsAwsjson11_deserializeDocumentInvalidPullRequestEventTypeException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24520,6 +25345,9 @@ func awsAwsjson11_deserializeDocumentInvalidPullRequestEventTypeException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24544,7 +25372,13 @@ func awsAwsjson11_deserializeDocumentInvalidPullRequestIdException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24560,6 +25394,9 @@ func awsAwsjson11_deserializeDocumentInvalidPullRequestIdException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24584,7 +25421,13 @@ func awsAwsjson11_deserializeDocumentInvalidPullRequestStatusException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24600,6 +25443,9 @@ func awsAwsjson11_deserializeDocumentInvalidPullRequestStatusException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24624,7 +25470,13 @@ func awsAwsjson11_deserializeDocumentInvalidPullRequestStatusUpdateException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24640,6 +25492,9 @@ func awsAwsjson11_deserializeDocumentInvalidPullRequestStatusUpdateException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24664,7 +25519,13 @@ func awsAwsjson11_deserializeDocumentInvalidReactionUserArnException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24680,6 +25541,9 @@ func awsAwsjson11_deserializeDocumentInvalidReactionUserArnException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24704,7 +25568,13 @@ func awsAwsjson11_deserializeDocumentInvalidReactionValueException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24720,6 +25590,9 @@ func awsAwsjson11_deserializeDocumentInvalidReactionValueException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24744,7 +25617,13 @@ func awsAwsjson11_deserializeDocumentInvalidReferenceNameException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24760,6 +25639,9 @@ func awsAwsjson11_deserializeDocumentInvalidReferenceNameException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24784,7 +25666,13 @@ func awsAwsjson11_deserializeDocumentInvalidRelativeFileVersionEnumException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24800,6 +25688,9 @@ func awsAwsjson11_deserializeDocumentInvalidRelativeFileVersionEnumException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24824,7 +25715,13 @@ func awsAwsjson11_deserializeDocumentInvalidReplacementContentException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24840,6 +25737,9 @@ func awsAwsjson11_deserializeDocumentInvalidReplacementContentException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24864,7 +25764,13 @@ func awsAwsjson11_deserializeDocumentInvalidReplacementTypeException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24880,6 +25786,9 @@ func awsAwsjson11_deserializeDocumentInvalidReplacementTypeException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24904,7 +25813,13 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryDescriptionException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24920,6 +25835,9 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryDescriptionException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24944,7 +25862,13 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryNameException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24960,6 +25884,9 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryNameException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24984,7 +25911,13 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryTriggerBranchNameException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25000,6 +25933,9 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryTriggerBranchNameException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25024,7 +25960,13 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryTriggerCustomDataException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25040,6 +25982,9 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryTriggerCustomDataException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25064,7 +26009,13 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryTriggerDestinationArnExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25080,6 +26031,9 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryTriggerDestinationArnExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25104,7 +26058,13 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryTriggerEventsException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25120,6 +26080,9 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryTriggerEventsException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25144,7 +26107,13 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryTriggerNameException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25160,6 +26129,9 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryTriggerNameException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25184,7 +26156,13 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryTriggerRegionException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25200,6 +26178,9 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryTriggerRegionException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25224,7 +26205,13 @@ func awsAwsjson11_deserializeDocumentInvalidResourceArnException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25240,6 +26227,9 @@ func awsAwsjson11_deserializeDocumentInvalidResourceArnException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25264,7 +26254,13 @@ func awsAwsjson11_deserializeDocumentInvalidRevisionIdException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25280,6 +26276,9 @@ func awsAwsjson11_deserializeDocumentInvalidRevisionIdException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25304,7 +26303,13 @@ func awsAwsjson11_deserializeDocumentInvalidRuleContentSha256Exception(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25320,6 +26325,9 @@ func awsAwsjson11_deserializeDocumentInvalidRuleContentSha256Exception(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25344,7 +26352,13 @@ func awsAwsjson11_deserializeDocumentInvalidSortByException(v **types.InvalidSor sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25360,6 +26374,9 @@ func awsAwsjson11_deserializeDocumentInvalidSortByException(v **types.InvalidSor } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25384,7 +26401,13 @@ func awsAwsjson11_deserializeDocumentInvalidSourceCommitSpecifierException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25400,6 +26423,9 @@ func awsAwsjson11_deserializeDocumentInvalidSourceCommitSpecifierException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25424,7 +26450,13 @@ func awsAwsjson11_deserializeDocumentInvalidSystemTagUsageException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25440,6 +26472,9 @@ func awsAwsjson11_deserializeDocumentInvalidSystemTagUsageException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25464,7 +26499,13 @@ func awsAwsjson11_deserializeDocumentInvalidTagKeysListException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25480,6 +26521,9 @@ func awsAwsjson11_deserializeDocumentInvalidTagKeysListException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25504,7 +26548,13 @@ func awsAwsjson11_deserializeDocumentInvalidTagsMapException(v **types.InvalidTa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25520,6 +26570,9 @@ func awsAwsjson11_deserializeDocumentInvalidTagsMapException(v **types.InvalidTa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25544,7 +26597,13 @@ func awsAwsjson11_deserializeDocumentInvalidTargetBranchException(v **types.Inva sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25560,6 +26619,9 @@ func awsAwsjson11_deserializeDocumentInvalidTargetBranchException(v **types.Inva } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25584,7 +26646,13 @@ func awsAwsjson11_deserializeDocumentInvalidTargetException(v **types.InvalidTar sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25600,6 +26668,9 @@ func awsAwsjson11_deserializeDocumentInvalidTargetException(v **types.InvalidTar } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25624,7 +26695,13 @@ func awsAwsjson11_deserializeDocumentInvalidTargetsException(v **types.InvalidTa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25640,6 +26717,9 @@ func awsAwsjson11_deserializeDocumentInvalidTargetsException(v **types.InvalidTa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25664,7 +26744,13 @@ func awsAwsjson11_deserializeDocumentInvalidTitleException(v **types.InvalidTitl sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25680,6 +26766,9 @@ func awsAwsjson11_deserializeDocumentInvalidTitleException(v **types.InvalidTitl } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25824,7 +26913,13 @@ func awsAwsjson11_deserializeDocumentManualMergeRequiredException(v **types.Manu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25840,6 +26935,9 @@ func awsAwsjson11_deserializeDocumentManualMergeRequiredException(v **types.Manu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25864,7 +26962,13 @@ func awsAwsjson11_deserializeDocumentMaximumBranchesExceededException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25880,6 +26984,9 @@ func awsAwsjson11_deserializeDocumentMaximumBranchesExceededException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25904,7 +27011,13 @@ func awsAwsjson11_deserializeDocumentMaximumConflictResolutionEntriesExceededExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25920,6 +27033,9 @@ func awsAwsjson11_deserializeDocumentMaximumConflictResolutionEntriesExceededExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25944,7 +27060,13 @@ func awsAwsjson11_deserializeDocumentMaximumFileContentToLoadExceededException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25960,6 +27082,9 @@ func awsAwsjson11_deserializeDocumentMaximumFileContentToLoadExceededException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25984,7 +27109,13 @@ func awsAwsjson11_deserializeDocumentMaximumFileEntriesExceededException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26000,6 +27131,9 @@ func awsAwsjson11_deserializeDocumentMaximumFileEntriesExceededException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26024,7 +27158,13 @@ func awsAwsjson11_deserializeDocumentMaximumItemsToCompareExceededException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26040,6 +27180,9 @@ func awsAwsjson11_deserializeDocumentMaximumItemsToCompareExceededException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26064,7 +27207,13 @@ func awsAwsjson11_deserializeDocumentMaximumNumberOfApprovalsExceededException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26080,6 +27229,9 @@ func awsAwsjson11_deserializeDocumentMaximumNumberOfApprovalsExceededException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26104,7 +27256,13 @@ func awsAwsjson11_deserializeDocumentMaximumOpenPullRequestsExceededException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26120,6 +27278,9 @@ func awsAwsjson11_deserializeDocumentMaximumOpenPullRequestsExceededException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26144,7 +27305,13 @@ func awsAwsjson11_deserializeDocumentMaximumRepositoryNamesExceededException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26160,6 +27327,9 @@ func awsAwsjson11_deserializeDocumentMaximumRepositoryNamesExceededException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26184,7 +27354,13 @@ func awsAwsjson11_deserializeDocumentMaximumRepositoryTriggersExceededException( sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26200,6 +27376,9 @@ func awsAwsjson11_deserializeDocumentMaximumRepositoryTriggersExceededException( } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26224,7 +27403,13 @@ func awsAwsjson11_deserializeDocumentMaximumRuleTemplatesAssociatedWithRepositor sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26240,6 +27425,9 @@ func awsAwsjson11_deserializeDocumentMaximumRuleTemplatesAssociatedWithRepositor } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26535,7 +27723,13 @@ func awsAwsjson11_deserializeDocumentMergeOptionRequiredException(v **types.Merg sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26551,6 +27745,9 @@ func awsAwsjson11_deserializeDocumentMergeOptionRequiredException(v **types.Merg } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26611,7 +27808,13 @@ func awsAwsjson11_deserializeDocumentMultipleConflictResolutionEntriesException( sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26627,6 +27830,9 @@ func awsAwsjson11_deserializeDocumentMultipleConflictResolutionEntriesException( } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26651,7 +27857,13 @@ func awsAwsjson11_deserializeDocumentMultipleRepositoriesInPullRequestException( sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26667,6 +27879,9 @@ func awsAwsjson11_deserializeDocumentMultipleRepositoriesInPullRequestException( } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26691,7 +27906,13 @@ func awsAwsjson11_deserializeDocumentNameLengthExceededException(v **types.NameL sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26707,6 +27928,9 @@ func awsAwsjson11_deserializeDocumentNameLengthExceededException(v **types.NameL } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26731,7 +27955,13 @@ func awsAwsjson11_deserializeDocumentNoChangeException(v **types.NoChangeExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26747,6 +27977,9 @@ func awsAwsjson11_deserializeDocumentNoChangeException(v **types.NoChangeExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26771,7 +28004,13 @@ func awsAwsjson11_deserializeDocumentNumberOfRulesExceededException(v **types.Nu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26787,6 +28026,9 @@ func awsAwsjson11_deserializeDocumentNumberOfRulesExceededException(v **types.Nu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26811,7 +28053,13 @@ func awsAwsjson11_deserializeDocumentNumberOfRuleTemplatesExceededException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26827,6 +28075,9 @@ func awsAwsjson11_deserializeDocumentNumberOfRuleTemplatesExceededException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26909,7 +28160,13 @@ func awsAwsjson11_deserializeDocumentOperationNotAllowedException(v **types.Oper sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26925,6 +28182,9 @@ func awsAwsjson11_deserializeDocumentOperationNotAllowedException(v **types.Oper } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26998,7 +28258,13 @@ func awsAwsjson11_deserializeDocumentOverrideAlreadySetException(v **types.Overr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -27014,6 +28280,9 @@ func awsAwsjson11_deserializeDocumentOverrideAlreadySetException(v **types.Overr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27038,7 +28307,13 @@ func awsAwsjson11_deserializeDocumentOverrideStatusRequiredException(v **types.O sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -27054,6 +28329,9 @@ func awsAwsjson11_deserializeDocumentOverrideStatusRequiredException(v **types.O } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27078,7 +28356,13 @@ func awsAwsjson11_deserializeDocumentParentCommitDoesNotExistException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -27094,6 +28378,9 @@ func awsAwsjson11_deserializeDocumentParentCommitDoesNotExistException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27118,7 +28405,13 @@ func awsAwsjson11_deserializeDocumentParentCommitIdOutdatedException(v **types.P sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -27134,6 +28427,9 @@ func awsAwsjson11_deserializeDocumentParentCommitIdOutdatedException(v **types.P } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27158,7 +28454,13 @@ func awsAwsjson11_deserializeDocumentParentCommitIdRequiredException(v **types.P sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -27174,6 +28476,9 @@ func awsAwsjson11_deserializeDocumentParentCommitIdRequiredException(v **types.P } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27234,7 +28539,13 @@ func awsAwsjson11_deserializeDocumentPathDoesNotExistException(v **types.PathDoe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -27250,6 +28561,9 @@ func awsAwsjson11_deserializeDocumentPathDoesNotExistException(v **types.PathDoe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27274,7 +28588,13 @@ func awsAwsjson11_deserializeDocumentPathRequiredException(v **types.PathRequire sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -27290,6 +28610,9 @@ func awsAwsjson11_deserializeDocumentPathRequiredException(v **types.PathRequire } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27450,7 +28773,13 @@ func awsAwsjson11_deserializeDocumentPullRequestAlreadyClosedException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -27466,6 +28795,9 @@ func awsAwsjson11_deserializeDocumentPullRequestAlreadyClosedException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27490,7 +28822,13 @@ func awsAwsjson11_deserializeDocumentPullRequestApprovalRulesNotSatisfiedExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -27506,6 +28844,9 @@ func awsAwsjson11_deserializeDocumentPullRequestApprovalRulesNotSatisfiedExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27530,7 +28871,13 @@ func awsAwsjson11_deserializeDocumentPullRequestCannotBeApprovedByAuthorExceptio sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -27546,6 +28893,9 @@ func awsAwsjson11_deserializeDocumentPullRequestCannotBeApprovedByAuthorExceptio } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27637,7 +28987,13 @@ func awsAwsjson11_deserializeDocumentPullRequestDoesNotExistException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -27653,6 +29009,9 @@ func awsAwsjson11_deserializeDocumentPullRequestDoesNotExistException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27856,7 +29215,13 @@ func awsAwsjson11_deserializeDocumentPullRequestIdRequiredException(v **types.Pu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -27872,6 +29237,9 @@ func awsAwsjson11_deserializeDocumentPullRequestIdRequiredException(v **types.Pu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -28057,7 +29425,13 @@ func awsAwsjson11_deserializeDocumentPullRequestStatusRequiredException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -28073,6 +29447,9 @@ func awsAwsjson11_deserializeDocumentPullRequestStatusRequiredException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -28221,7 +29598,13 @@ func awsAwsjson11_deserializeDocumentPutFileEntryConflictException(v **types.Put sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -28237,6 +29620,9 @@ func awsAwsjson11_deserializeDocumentPutFileEntryConflictException(v **types.Put } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -28355,7 +29741,13 @@ func awsAwsjson11_deserializeDocumentReactionLimitExceededException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -28371,6 +29763,9 @@ func awsAwsjson11_deserializeDocumentReactionLimitExceededException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -28523,7 +29918,13 @@ func awsAwsjson11_deserializeDocumentReactionValueRequiredException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -28539,6 +29940,9 @@ func awsAwsjson11_deserializeDocumentReactionValueRequiredException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -28563,7 +29967,13 @@ func awsAwsjson11_deserializeDocumentReferenceDoesNotExistException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -28579,6 +29989,9 @@ func awsAwsjson11_deserializeDocumentReferenceDoesNotExistException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -28603,7 +30016,13 @@ func awsAwsjson11_deserializeDocumentReferenceNameRequiredException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -28619,6 +30038,9 @@ func awsAwsjson11_deserializeDocumentReferenceNameRequiredException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -28643,7 +30065,13 @@ func awsAwsjson11_deserializeDocumentReferenceTypeNotSupportedException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -28659,6 +30087,9 @@ func awsAwsjson11_deserializeDocumentReferenceTypeNotSupportedException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -28683,7 +30114,13 @@ func awsAwsjson11_deserializeDocumentReplacementContentRequiredException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -28699,6 +30136,9 @@ func awsAwsjson11_deserializeDocumentReplacementContentRequiredException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -28723,7 +30163,13 @@ func awsAwsjson11_deserializeDocumentReplacementTypeRequiredException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -28739,6 +30185,9 @@ func awsAwsjson11_deserializeDocumentReplacementTypeRequiredException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -28763,7 +30212,13 @@ func awsAwsjson11_deserializeDocumentRepositoryDoesNotExistException(v **types.R sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -28779,6 +30234,9 @@ func awsAwsjson11_deserializeDocumentRepositoryDoesNotExistException(v **types.R } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -28803,7 +30261,13 @@ func awsAwsjson11_deserializeDocumentRepositoryLimitExceededException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -28819,6 +30283,9 @@ func awsAwsjson11_deserializeDocumentRepositoryLimitExceededException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29021,7 +30488,13 @@ func awsAwsjson11_deserializeDocumentRepositoryNameExistsException(v **types.Rep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -29037,6 +30510,9 @@ func awsAwsjson11_deserializeDocumentRepositoryNameExistsException(v **types.Rep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29180,7 +30656,13 @@ func awsAwsjson11_deserializeDocumentRepositoryNameRequiredException(v **types.R sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -29196,6 +30678,9 @@ func awsAwsjson11_deserializeDocumentRepositoryNameRequiredException(v **types.R } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29220,7 +30705,13 @@ func awsAwsjson11_deserializeDocumentRepositoryNamesRequiredException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -29236,6 +30727,9 @@ func awsAwsjson11_deserializeDocumentRepositoryNamesRequiredException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29260,7 +30754,13 @@ func awsAwsjson11_deserializeDocumentRepositoryNotAssociatedWithPullRequestExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -29276,6 +30776,9 @@ func awsAwsjson11_deserializeDocumentRepositoryNotAssociatedWithPullRequestExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29404,7 +30907,13 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggerBranchNameListRequiredExce sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -29420,6 +30929,9 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggerBranchNameListRequiredExce } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29444,7 +30956,13 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggerDestinationArnRequiredExce sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -29460,6 +30978,9 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggerDestinationArnRequiredExce } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29520,7 +31041,13 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggerEventsListRequiredExceptio sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -29536,6 +31063,9 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggerEventsListRequiredExceptio } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29679,7 +31209,13 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggerNameRequiredException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -29695,6 +31231,9 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggerNameRequiredException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29753,7 +31292,13 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggersListRequiredException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -29769,6 +31314,9 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggersListRequiredException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29793,7 +31341,13 @@ func awsAwsjson11_deserializeDocumentResourceArnRequiredException(v **types.Reso sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -29809,6 +31363,9 @@ func awsAwsjson11_deserializeDocumentResourceArnRequiredException(v **types.Reso } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29833,7 +31390,13 @@ func awsAwsjson11_deserializeDocumentRestrictedSourceFileException(v **types.Res sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -29849,6 +31412,9 @@ func awsAwsjson11_deserializeDocumentRestrictedSourceFileException(v **types.Res } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29943,7 +31509,13 @@ func awsAwsjson11_deserializeDocumentRevisionIdRequiredException(v **types.Revis sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -29959,6 +31531,9 @@ func awsAwsjson11_deserializeDocumentRevisionIdRequiredException(v **types.Revis } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29983,7 +31558,13 @@ func awsAwsjson11_deserializeDocumentRevisionNotCurrentException(v **types.Revis sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -29999,6 +31580,9 @@ func awsAwsjson11_deserializeDocumentRevisionNotCurrentException(v **types.Revis } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30023,7 +31607,13 @@ func awsAwsjson11_deserializeDocumentSameFileContentException(v **types.SameFile sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -30039,6 +31629,9 @@ func awsAwsjson11_deserializeDocumentSameFileContentException(v **types.SameFile } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30063,7 +31656,13 @@ func awsAwsjson11_deserializeDocumentSamePathRequestException(v **types.SamePath sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -30079,6 +31678,9 @@ func awsAwsjson11_deserializeDocumentSamePathRequestException(v **types.SamePath } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30103,7 +31705,13 @@ func awsAwsjson11_deserializeDocumentSourceAndDestinationAreSameException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -30119,6 +31727,9 @@ func awsAwsjson11_deserializeDocumentSourceAndDestinationAreSameException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30143,7 +31754,13 @@ func awsAwsjson11_deserializeDocumentSourceFileOrContentRequiredException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -30159,6 +31776,9 @@ func awsAwsjson11_deserializeDocumentSourceFileOrContentRequiredException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30376,7 +31996,13 @@ func awsAwsjson11_deserializeDocumentTagKeysListRequiredException(v **types.TagK sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -30392,6 +32018,9 @@ func awsAwsjson11_deserializeDocumentTagKeysListRequiredException(v **types.TagK } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30416,7 +32045,13 @@ func awsAwsjson11_deserializeDocumentTagPolicyException(v **types.TagPolicyExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -30432,6 +32067,9 @@ func awsAwsjson11_deserializeDocumentTagPolicyException(v **types.TagPolicyExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30492,7 +32130,13 @@ func awsAwsjson11_deserializeDocumentTagsMapRequiredException(v **types.TagsMapR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -30508,6 +32152,9 @@ func awsAwsjson11_deserializeDocumentTagsMapRequiredException(v **types.TagsMapR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30532,7 +32179,13 @@ func awsAwsjson11_deserializeDocumentTargetRequiredException(v **types.TargetReq sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -30548,6 +32201,9 @@ func awsAwsjson11_deserializeDocumentTargetRequiredException(v **types.TargetReq } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30572,7 +32228,13 @@ func awsAwsjson11_deserializeDocumentTargetsRequiredException(v **types.TargetsR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -30588,6 +32250,9 @@ func awsAwsjson11_deserializeDocumentTargetsRequiredException(v **types.TargetsR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30612,7 +32277,13 @@ func awsAwsjson11_deserializeDocumentTipOfSourceReferenceIsDifferentException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -30628,6 +32299,9 @@ func awsAwsjson11_deserializeDocumentTipOfSourceReferenceIsDifferentException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30652,7 +32326,13 @@ func awsAwsjson11_deserializeDocumentTipsDivergenceExceededException(v **types.T sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -30668,6 +32348,9 @@ func awsAwsjson11_deserializeDocumentTipsDivergenceExceededException(v **types.T } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30692,7 +32375,13 @@ func awsAwsjson11_deserializeDocumentTitleRequiredException(v **types.TitleRequi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -30708,6 +32397,9 @@ func awsAwsjson11_deserializeDocumentTitleRequiredException(v **types.TitleRequi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30732,7 +32424,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -30748,6 +32446,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/codeconnections/deserializers.go b/service/codeconnections/deserializers.go index 5f3fb852100..2824785ad21 100644 --- a/service/codeconnections/deserializers.go +++ b/service/codeconnections/deserializers.go @@ -3893,7 +3893,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3909,6 +3915,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3933,7 +3942,13 @@ func awsAwsjson10_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3949,6 +3964,9 @@ func awsAwsjson10_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3973,7 +3991,13 @@ func awsAwsjson10_deserializeDocumentConditionalCheckFailedException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3989,6 +4013,9 @@ func awsAwsjson10_deserializeDocumentConditionalCheckFailedException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4013,7 +4040,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4029,6 +4062,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4296,7 +4332,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4312,6 +4354,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4336,7 +4381,13 @@ func awsAwsjson10_deserializeDocumentInvalidInputException(v **types.InvalidInpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4352,6 +4403,9 @@ func awsAwsjson10_deserializeDocumentInvalidInputException(v **types.InvalidInpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4410,7 +4464,13 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4426,6 +4486,9 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4848,7 +4911,13 @@ func awsAwsjson10_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4864,6 +4933,9 @@ func awsAwsjson10_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4888,7 +4960,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4904,6 +4982,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5116,7 +5197,13 @@ func awsAwsjson10_deserializeDocumentResourceUnavailableException(v **types.Reso sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5132,6 +5219,9 @@ func awsAwsjson10_deserializeDocumentResourceUnavailableException(v **types.Reso } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5156,7 +5246,13 @@ func awsAwsjson10_deserializeDocumentRetryLatestCommitFailedException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5172,6 +5268,9 @@ func awsAwsjson10_deserializeDocumentRetryLatestCommitFailedException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5549,7 +5648,13 @@ func awsAwsjson10_deserializeDocumentSyncBlockerDoesNotExistException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5565,6 +5670,9 @@ func awsAwsjson10_deserializeDocumentSyncBlockerDoesNotExistException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5816,7 +5924,13 @@ func awsAwsjson10_deserializeDocumentSyncConfigurationStillExistsException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5832,6 +5946,9 @@ func awsAwsjson10_deserializeDocumentSyncConfigurationStillExistsException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5939,7 +6056,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5955,6 +6078,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5979,7 +6105,13 @@ func awsAwsjson10_deserializeDocumentUnsupportedOperationException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5995,6 +6127,9 @@ func awsAwsjson10_deserializeDocumentUnsupportedOperationException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6019,7 +6154,13 @@ func awsAwsjson10_deserializeDocumentUnsupportedProviderTypeException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6035,6 +6176,9 @@ func awsAwsjson10_deserializeDocumentUnsupportedProviderTypeException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6059,7 +6203,13 @@ func awsAwsjson10_deserializeDocumentUpdateOutOfSyncException(v **types.UpdateOu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6075,6 +6225,9 @@ func awsAwsjson10_deserializeDocumentUpdateOutOfSyncException(v **types.UpdateOu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/codedeploy/deserializers.go b/service/codedeploy/deserializers.go index ef99a6a3132..7b0f3b6b7c4 100644 --- a/service/codedeploy/deserializers.go +++ b/service/codedeploy/deserializers.go @@ -9890,7 +9890,13 @@ func awsAwsjson11_deserializeDocumentAlarmsLimitExceededException(v **types.Alar sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9906,6 +9912,9 @@ func awsAwsjson11_deserializeDocumentAlarmsLimitExceededException(v **types.Alar } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9930,7 +9939,13 @@ func awsAwsjson11_deserializeDocumentApplicationAlreadyExistsException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9946,6 +9961,9 @@ func awsAwsjson11_deserializeDocumentApplicationAlreadyExistsException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9970,7 +9988,13 @@ func awsAwsjson11_deserializeDocumentApplicationDoesNotExistException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9986,6 +10010,9 @@ func awsAwsjson11_deserializeDocumentApplicationDoesNotExistException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10102,7 +10129,13 @@ func awsAwsjson11_deserializeDocumentApplicationLimitExceededException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10118,6 +10151,9 @@ func awsAwsjson11_deserializeDocumentApplicationLimitExceededException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10142,7 +10178,13 @@ func awsAwsjson11_deserializeDocumentApplicationNameRequiredException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10158,6 +10200,9 @@ func awsAwsjson11_deserializeDocumentApplicationNameRequiredException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10301,7 +10346,13 @@ func awsAwsjson11_deserializeDocumentArnNotSupportedException(v **types.ArnNotSu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10317,6 +10368,9 @@ func awsAwsjson11_deserializeDocumentArnNotSupportedException(v **types.ArnNotSu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10550,7 +10604,13 @@ func awsAwsjson11_deserializeDocumentBatchLimitExceededException(v **types.Batch sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10566,6 +10626,9 @@ func awsAwsjson11_deserializeDocumentBatchLimitExceededException(v **types.Batch } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10689,7 +10752,13 @@ func awsAwsjson11_deserializeDocumentBucketNameFilterRequiredException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10705,6 +10774,9 @@ func awsAwsjson11_deserializeDocumentBucketNameFilterRequiredException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10851,7 +10923,13 @@ func awsAwsjson11_deserializeDocumentDeploymentAlreadyCompletedException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10867,6 +10945,9 @@ func awsAwsjson11_deserializeDocumentDeploymentAlreadyCompletedException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10891,7 +10972,13 @@ func awsAwsjson11_deserializeDocumentDeploymentConfigAlreadyExistsException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10907,6 +10994,9 @@ func awsAwsjson11_deserializeDocumentDeploymentConfigAlreadyExistsException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10931,7 +11021,13 @@ func awsAwsjson11_deserializeDocumentDeploymentConfigDoesNotExistException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10947,6 +11043,9 @@ func awsAwsjson11_deserializeDocumentDeploymentConfigDoesNotExistException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11060,7 +11159,13 @@ func awsAwsjson11_deserializeDocumentDeploymentConfigInUseException(v **types.De sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11076,6 +11181,9 @@ func awsAwsjson11_deserializeDocumentDeploymentConfigInUseException(v **types.De } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11100,7 +11208,13 @@ func awsAwsjson11_deserializeDocumentDeploymentConfigLimitExceededException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11116,6 +11230,9 @@ func awsAwsjson11_deserializeDocumentDeploymentConfigLimitExceededException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11140,7 +11257,13 @@ func awsAwsjson11_deserializeDocumentDeploymentConfigNameRequiredException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11156,6 +11279,9 @@ func awsAwsjson11_deserializeDocumentDeploymentConfigNameRequiredException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11216,7 +11342,13 @@ func awsAwsjson11_deserializeDocumentDeploymentDoesNotExistException(v **types.D sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11232,6 +11364,9 @@ func awsAwsjson11_deserializeDocumentDeploymentDoesNotExistException(v **types.D } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11256,7 +11391,13 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupAlreadyExistsException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11272,6 +11413,9 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupAlreadyExistsException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11296,7 +11440,13 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupDoesNotExistException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11312,6 +11462,9 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupDoesNotExistException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11548,7 +11701,13 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupLimitExceededException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11564,6 +11723,9 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupLimitExceededException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11588,7 +11750,13 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupNameRequiredException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11604,6 +11772,9 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupNameRequiredException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11664,7 +11835,13 @@ func awsAwsjson11_deserializeDocumentDeploymentIdRequiredException(v **types.Dep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11680,6 +11857,9 @@ func awsAwsjson11_deserializeDocumentDeploymentIdRequiredException(v **types.Dep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11974,7 +12154,13 @@ func awsAwsjson11_deserializeDocumentDeploymentIsNotInReadyStateException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11990,6 +12176,9 @@ func awsAwsjson11_deserializeDocumentDeploymentIsNotInReadyStateException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12014,7 +12203,13 @@ func awsAwsjson11_deserializeDocumentDeploymentLimitExceededException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12030,6 +12225,9 @@ func awsAwsjson11_deserializeDocumentDeploymentLimitExceededException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12054,7 +12252,13 @@ func awsAwsjson11_deserializeDocumentDeploymentNotStartedException(v **types.Dep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12070,6 +12274,9 @@ func awsAwsjson11_deserializeDocumentDeploymentNotStartedException(v **types.Dep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12471,7 +12678,13 @@ func awsAwsjson11_deserializeDocumentDeploymentTargetDoesNotExistException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12487,6 +12700,9 @@ func awsAwsjson11_deserializeDocumentDeploymentTargetDoesNotExistException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12511,7 +12727,13 @@ func awsAwsjson11_deserializeDocumentDeploymentTargetIdRequiredException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12527,6 +12749,9 @@ func awsAwsjson11_deserializeDocumentDeploymentTargetIdRequiredException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12585,7 +12810,13 @@ func awsAwsjson11_deserializeDocumentDeploymentTargetListSizeExceededException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12601,6 +12832,9 @@ func awsAwsjson11_deserializeDocumentDeploymentTargetListSizeExceededException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12625,7 +12859,13 @@ func awsAwsjson11_deserializeDocumentDescriptionTooLongException(v **types.Descr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12641,6 +12881,9 @@ func awsAwsjson11_deserializeDocumentDescriptionTooLongException(v **types.Descr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12975,7 +13218,13 @@ func awsAwsjson11_deserializeDocumentECSServiceMappingLimitExceededException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12991,6 +13240,9 @@ func awsAwsjson11_deserializeDocumentECSServiceMappingLimitExceededException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13494,7 +13746,13 @@ func awsAwsjson11_deserializeDocumentGitHubAccountTokenDoesNotExistException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13510,6 +13768,9 @@ func awsAwsjson11_deserializeDocumentGitHubAccountTokenDoesNotExistException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13570,7 +13831,13 @@ func awsAwsjson11_deserializeDocumentGitHubAccountTokenNameRequiredException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13586,6 +13853,9 @@ func awsAwsjson11_deserializeDocumentGitHubAccountTokenNameRequiredException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13699,7 +13969,13 @@ func awsAwsjson11_deserializeDocumentIamArnRequiredException(v **types.IamArnReq sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13715,6 +13991,9 @@ func awsAwsjson11_deserializeDocumentIamArnRequiredException(v **types.IamArnReq } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13739,7 +14018,13 @@ func awsAwsjson11_deserializeDocumentIamSessionArnAlreadyRegisteredException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13755,6 +14040,9 @@ func awsAwsjson11_deserializeDocumentIamSessionArnAlreadyRegisteredException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13779,7 +14067,13 @@ func awsAwsjson11_deserializeDocumentIamUserArnAlreadyRegisteredException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13795,6 +14089,9 @@ func awsAwsjson11_deserializeDocumentIamUserArnAlreadyRegisteredException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13819,7 +14116,13 @@ func awsAwsjson11_deserializeDocumentIamUserArnRequiredException(v **types.IamUs sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13835,6 +14138,9 @@ func awsAwsjson11_deserializeDocumentIamUserArnRequiredException(v **types.IamUs } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13859,7 +14165,13 @@ func awsAwsjson11_deserializeDocumentInstanceDoesNotExistException(v **types.Ins sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13875,6 +14187,9 @@ func awsAwsjson11_deserializeDocumentInstanceDoesNotExistException(v **types.Ins } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13899,7 +14214,13 @@ func awsAwsjson11_deserializeDocumentInstanceIdRequiredException(v **types.Insta sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13915,6 +14236,9 @@ func awsAwsjson11_deserializeDocumentInstanceIdRequiredException(v **types.Insta } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14077,7 +14401,13 @@ func awsAwsjson11_deserializeDocumentInstanceLimitExceededException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14093,6 +14423,9 @@ func awsAwsjson11_deserializeDocumentInstanceLimitExceededException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14117,7 +14450,13 @@ func awsAwsjson11_deserializeDocumentInstanceNameAlreadyRegisteredException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14133,6 +14472,9 @@ func awsAwsjson11_deserializeDocumentInstanceNameAlreadyRegisteredException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14193,7 +14535,13 @@ func awsAwsjson11_deserializeDocumentInstanceNameRequiredException(v **types.Ins sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14209,6 +14557,9 @@ func awsAwsjson11_deserializeDocumentInstanceNameRequiredException(v **types.Ins } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14233,7 +14584,13 @@ func awsAwsjson11_deserializeDocumentInstanceNotRegisteredException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14249,6 +14606,9 @@ func awsAwsjson11_deserializeDocumentInstanceNotRegisteredException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14528,7 +14888,13 @@ func awsAwsjson11_deserializeDocumentInvalidAlarmConfigException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14544,6 +14910,9 @@ func awsAwsjson11_deserializeDocumentInvalidAlarmConfigException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14568,7 +14937,13 @@ func awsAwsjson11_deserializeDocumentInvalidApplicationNameException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14584,6 +14959,9 @@ func awsAwsjson11_deserializeDocumentInvalidApplicationNameException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14608,7 +14986,13 @@ func awsAwsjson11_deserializeDocumentInvalidArnException(v **types.InvalidArnExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14624,6 +15008,9 @@ func awsAwsjson11_deserializeDocumentInvalidArnException(v **types.InvalidArnExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14648,7 +15035,13 @@ func awsAwsjson11_deserializeDocumentInvalidAutoRollbackConfigException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14664,6 +15057,9 @@ func awsAwsjson11_deserializeDocumentInvalidAutoRollbackConfigException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14688,7 +15084,13 @@ func awsAwsjson11_deserializeDocumentInvalidAutoScalingGroupException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14704,6 +15106,9 @@ func awsAwsjson11_deserializeDocumentInvalidAutoScalingGroupException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14728,7 +15133,13 @@ func awsAwsjson11_deserializeDocumentInvalidBlueGreenDeploymentConfigurationExce sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14744,6 +15155,9 @@ func awsAwsjson11_deserializeDocumentInvalidBlueGreenDeploymentConfigurationExce } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14768,7 +15182,13 @@ func awsAwsjson11_deserializeDocumentInvalidBucketNameFilterException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14784,6 +15204,9 @@ func awsAwsjson11_deserializeDocumentInvalidBucketNameFilterException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14808,7 +15231,13 @@ func awsAwsjson11_deserializeDocumentInvalidComputePlatformException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14824,6 +15253,9 @@ func awsAwsjson11_deserializeDocumentInvalidComputePlatformException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14848,7 +15280,13 @@ func awsAwsjson11_deserializeDocumentInvalidDeployedStateFilterException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14864,6 +15302,9 @@ func awsAwsjson11_deserializeDocumentInvalidDeployedStateFilterException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14888,7 +15329,13 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentConfigNameException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14904,6 +15351,9 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentConfigNameException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14928,7 +15378,13 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentGroupNameException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14944,6 +15400,9 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentGroupNameException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14968,7 +15427,13 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentIdException(v **types.Inva sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14984,6 +15449,9 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentIdException(v **types.Inva } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15008,7 +15476,13 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentInstanceTypeException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15024,6 +15498,9 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentInstanceTypeException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15048,7 +15525,13 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentStatusException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15064,6 +15547,9 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentStatusException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15088,7 +15574,13 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentStyleException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15104,6 +15596,9 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentStyleException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15128,7 +15623,13 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentTargetIdException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15144,6 +15645,9 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentTargetIdException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15168,7 +15672,13 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentWaitTypeException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15184,6 +15694,9 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentWaitTypeException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15208,7 +15721,13 @@ func awsAwsjson11_deserializeDocumentInvalidEC2TagCombinationException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15224,6 +15743,9 @@ func awsAwsjson11_deserializeDocumentInvalidEC2TagCombinationException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15248,7 +15770,13 @@ func awsAwsjson11_deserializeDocumentInvalidEC2TagException(v **types.InvalidEC2 sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15264,6 +15792,9 @@ func awsAwsjson11_deserializeDocumentInvalidEC2TagException(v **types.InvalidEC2 } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15288,7 +15819,13 @@ func awsAwsjson11_deserializeDocumentInvalidECSServiceException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15304,6 +15841,9 @@ func awsAwsjson11_deserializeDocumentInvalidECSServiceException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15328,7 +15868,13 @@ func awsAwsjson11_deserializeDocumentInvalidExternalIdException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15344,6 +15890,9 @@ func awsAwsjson11_deserializeDocumentInvalidExternalIdException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15368,7 +15917,13 @@ func awsAwsjson11_deserializeDocumentInvalidFileExistsBehaviorException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15384,6 +15939,9 @@ func awsAwsjson11_deserializeDocumentInvalidFileExistsBehaviorException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15408,7 +15966,13 @@ func awsAwsjson11_deserializeDocumentInvalidGitHubAccountTokenException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15424,6 +15988,9 @@ func awsAwsjson11_deserializeDocumentInvalidGitHubAccountTokenException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15448,7 +16015,13 @@ func awsAwsjson11_deserializeDocumentInvalidGitHubAccountTokenNameException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15464,6 +16037,9 @@ func awsAwsjson11_deserializeDocumentInvalidGitHubAccountTokenNameException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15488,7 +16064,13 @@ func awsAwsjson11_deserializeDocumentInvalidIamSessionArnException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15504,6 +16086,9 @@ func awsAwsjson11_deserializeDocumentInvalidIamSessionArnException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15528,7 +16113,13 @@ func awsAwsjson11_deserializeDocumentInvalidIamUserArnException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15544,6 +16135,9 @@ func awsAwsjson11_deserializeDocumentInvalidIamUserArnException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15568,7 +16162,13 @@ func awsAwsjson11_deserializeDocumentInvalidIgnoreApplicationStopFailuresValueEx sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15584,6 +16184,9 @@ func awsAwsjson11_deserializeDocumentInvalidIgnoreApplicationStopFailuresValueEx } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15608,7 +16211,13 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15624,6 +16233,9 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15648,7 +16260,13 @@ func awsAwsjson11_deserializeDocumentInvalidInstanceNameException(v **types.Inva sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15664,6 +16282,9 @@ func awsAwsjson11_deserializeDocumentInvalidInstanceNameException(v **types.Inva } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15688,7 +16309,13 @@ func awsAwsjson11_deserializeDocumentInvalidInstanceStatusException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15704,6 +16331,9 @@ func awsAwsjson11_deserializeDocumentInvalidInstanceStatusException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15728,7 +16358,13 @@ func awsAwsjson11_deserializeDocumentInvalidInstanceTypeException(v **types.Inva sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15744,6 +16380,9 @@ func awsAwsjson11_deserializeDocumentInvalidInstanceTypeException(v **types.Inva } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15768,7 +16407,13 @@ func awsAwsjson11_deserializeDocumentInvalidKeyPrefixFilterException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15784,6 +16429,9 @@ func awsAwsjson11_deserializeDocumentInvalidKeyPrefixFilterException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15808,7 +16456,13 @@ func awsAwsjson11_deserializeDocumentInvalidLifecycleEventHookExecutionIdExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15824,6 +16478,9 @@ func awsAwsjson11_deserializeDocumentInvalidLifecycleEventHookExecutionIdExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15848,7 +16505,13 @@ func awsAwsjson11_deserializeDocumentInvalidLifecycleEventHookExecutionStatusExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15864,6 +16527,9 @@ func awsAwsjson11_deserializeDocumentInvalidLifecycleEventHookExecutionStatusExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15888,7 +16554,13 @@ func awsAwsjson11_deserializeDocumentInvalidLoadBalancerInfoException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15904,6 +16576,9 @@ func awsAwsjson11_deserializeDocumentInvalidLoadBalancerInfoException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15928,7 +16603,13 @@ func awsAwsjson11_deserializeDocumentInvalidMinimumHealthyHostValueException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15944,6 +16625,9 @@ func awsAwsjson11_deserializeDocumentInvalidMinimumHealthyHostValueException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15968,7 +16652,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15984,6 +16674,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16008,7 +16701,13 @@ func awsAwsjson11_deserializeDocumentInvalidOnPremisesTagCombinationException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16024,6 +16723,9 @@ func awsAwsjson11_deserializeDocumentInvalidOnPremisesTagCombinationException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16048,7 +16750,13 @@ func awsAwsjson11_deserializeDocumentInvalidOperationException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16064,6 +16772,9 @@ func awsAwsjson11_deserializeDocumentInvalidOperationException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16088,7 +16799,13 @@ func awsAwsjson11_deserializeDocumentInvalidRegistrationStatusException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16104,6 +16821,9 @@ func awsAwsjson11_deserializeDocumentInvalidRegistrationStatusException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16128,7 +16848,13 @@ func awsAwsjson11_deserializeDocumentInvalidRevisionException(v **types.InvalidR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16144,6 +16870,9 @@ func awsAwsjson11_deserializeDocumentInvalidRevisionException(v **types.InvalidR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16168,7 +16897,13 @@ func awsAwsjson11_deserializeDocumentInvalidRoleException(v **types.InvalidRoleE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16184,6 +16919,9 @@ func awsAwsjson11_deserializeDocumentInvalidRoleException(v **types.InvalidRoleE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16208,7 +16946,13 @@ func awsAwsjson11_deserializeDocumentInvalidSortByException(v **types.InvalidSor sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16224,6 +16968,9 @@ func awsAwsjson11_deserializeDocumentInvalidSortByException(v **types.InvalidSor } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16248,7 +16995,13 @@ func awsAwsjson11_deserializeDocumentInvalidSortOrderException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16264,6 +17017,9 @@ func awsAwsjson11_deserializeDocumentInvalidSortOrderException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16288,7 +17044,13 @@ func awsAwsjson11_deserializeDocumentInvalidTagException(v **types.InvalidTagExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16304,6 +17066,9 @@ func awsAwsjson11_deserializeDocumentInvalidTagException(v **types.InvalidTagExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16328,7 +17093,13 @@ func awsAwsjson11_deserializeDocumentInvalidTagFilterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16344,6 +17115,9 @@ func awsAwsjson11_deserializeDocumentInvalidTagFilterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16368,7 +17142,13 @@ func awsAwsjson11_deserializeDocumentInvalidTagsToAddException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16384,6 +17164,9 @@ func awsAwsjson11_deserializeDocumentInvalidTagsToAddException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16408,7 +17191,13 @@ func awsAwsjson11_deserializeDocumentInvalidTargetFilterNameException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16424,6 +17213,9 @@ func awsAwsjson11_deserializeDocumentInvalidTargetFilterNameException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16448,7 +17240,13 @@ func awsAwsjson11_deserializeDocumentInvalidTargetGroupPairException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16464,6 +17262,9 @@ func awsAwsjson11_deserializeDocumentInvalidTargetGroupPairException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16488,7 +17289,13 @@ func awsAwsjson11_deserializeDocumentInvalidTargetInstancesException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16504,6 +17311,9 @@ func awsAwsjson11_deserializeDocumentInvalidTargetInstancesException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16528,7 +17338,13 @@ func awsAwsjson11_deserializeDocumentInvalidTimeRangeException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16544,6 +17360,9 @@ func awsAwsjson11_deserializeDocumentInvalidTimeRangeException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16568,7 +17387,13 @@ func awsAwsjson11_deserializeDocumentInvalidTrafficRoutingConfigurationException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16584,6 +17409,9 @@ func awsAwsjson11_deserializeDocumentInvalidTrafficRoutingConfigurationException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16608,7 +17436,13 @@ func awsAwsjson11_deserializeDocumentInvalidTriggerConfigException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16624,6 +17458,9 @@ func awsAwsjson11_deserializeDocumentInvalidTriggerConfigException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16648,7 +17485,13 @@ func awsAwsjson11_deserializeDocumentInvalidUpdateOutdatedInstancesOnlyValueExce sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16664,6 +17507,9 @@ func awsAwsjson11_deserializeDocumentInvalidUpdateOutdatedInstancesOnlyValueExce } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16688,7 +17534,13 @@ func awsAwsjson11_deserializeDocumentInvalidZonalDeploymentConfigurationExceptio sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16704,6 +17556,9 @@ func awsAwsjson11_deserializeDocumentInvalidZonalDeploymentConfigurationExceptio } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17089,7 +17944,13 @@ func awsAwsjson11_deserializeDocumentLifecycleEventAlreadyCompletedException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17105,6 +17966,9 @@ func awsAwsjson11_deserializeDocumentLifecycleEventAlreadyCompletedException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17163,7 +18027,13 @@ func awsAwsjson11_deserializeDocumentLifecycleHookLimitExceededException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17179,6 +18049,9 @@ func awsAwsjson11_deserializeDocumentLifecycleHookLimitExceededException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17391,7 +18264,13 @@ func awsAwsjson11_deserializeDocumentMultipleIamArnsProvidedException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17407,6 +18286,9 @@ func awsAwsjson11_deserializeDocumentMultipleIamArnsProvidedException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17499,7 +18381,13 @@ func awsAwsjson11_deserializeDocumentOperationNotSupportedException(v **types.Op sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17515,6 +18403,9 @@ func awsAwsjson11_deserializeDocumentOperationNotSupportedException(v **types.Op } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17633,7 +18524,13 @@ func awsAwsjson11_deserializeDocumentResourceArnRequiredException(v **types.Reso sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17649,6 +18546,9 @@ func awsAwsjson11_deserializeDocumentResourceArnRequiredException(v **types.Reso } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17673,7 +18573,13 @@ func awsAwsjson11_deserializeDocumentResourceValidationException(v **types.Resou sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17689,6 +18595,9 @@ func awsAwsjson11_deserializeDocumentResourceValidationException(v **types.Resou } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17713,7 +18622,13 @@ func awsAwsjson11_deserializeDocumentRevisionDoesNotExistException(v **types.Rev sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17729,6 +18644,9 @@ func awsAwsjson11_deserializeDocumentRevisionDoesNotExistException(v **types.Rev } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17922,7 +18840,13 @@ func awsAwsjson11_deserializeDocumentRevisionRequiredException(v **types.Revisio sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17938,6 +18862,9 @@ func awsAwsjson11_deserializeDocumentRevisionRequiredException(v **types.Revisio } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17962,7 +18889,13 @@ func awsAwsjson11_deserializeDocumentRoleRequiredException(v **types.RoleRequire sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17978,6 +18911,9 @@ func awsAwsjson11_deserializeDocumentRoleRequiredException(v **types.RoleRequire } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18277,7 +19213,13 @@ func awsAwsjson11_deserializeDocumentTagLimitExceededException(v **types.TagLimi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18293,6 +19235,9 @@ func awsAwsjson11_deserializeDocumentTagLimitExceededException(v **types.TagLimi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18351,7 +19296,13 @@ func awsAwsjson11_deserializeDocumentTagRequiredException(v **types.TagRequiredE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18367,6 +19318,9 @@ func awsAwsjson11_deserializeDocumentTagRequiredException(v **types.TagRequiredE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18391,7 +19345,13 @@ func awsAwsjson11_deserializeDocumentTagSetListLimitExceededException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18407,6 +19367,9 @@ func awsAwsjson11_deserializeDocumentTagSetListLimitExceededException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18667,7 +19630,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18683,6 +19652,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19031,7 +20003,13 @@ func awsAwsjson11_deserializeDocumentTriggerTargetsLimitExceededException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19047,6 +20025,9 @@ func awsAwsjson11_deserializeDocumentTriggerTargetsLimitExceededException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19071,7 +20052,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedActionForDeploymentTypeException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19087,6 +20074,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedActionForDeploymentTypeException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/codeguruprofiler/deserializers.go b/service/codeguruprofiler/deserializers.go index 8f40cccf1d4..d71619aad59 100644 --- a/service/codeguruprofiler/deserializers.go +++ b/service/codeguruprofiler/deserializers.go @@ -4263,7 +4263,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4279,6 +4285,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4651,7 +4660,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4667,6 +4682,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5504,7 +5522,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5520,6 +5544,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5544,7 +5571,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5560,6 +5593,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5760,7 +5796,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5776,6 +5818,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5918,7 +5963,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5934,6 +5985,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/codegurureviewer/deserializers.go b/service/codegurureviewer/deserializers.go index 8dfc8060fe3..b777b58262c 100644 --- a/service/codegurureviewer/deserializers.go +++ b/service/codegurureviewer/deserializers.go @@ -2435,7 +2435,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2451,6 +2457,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3023,7 +3032,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3039,6 +3054,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3112,7 +3130,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3128,6 +3152,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3341,7 +3368,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3357,6 +3390,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4133,7 +4169,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4149,6 +4191,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4463,7 +4508,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4479,6 +4530,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4503,7 +4557,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4519,6 +4579,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/codegurusecurity/deserializers.go b/service/codegurusecurity/deserializers.go index 5003a2c358f..77a7272577c 100644 --- a/service/codegurusecurity/deserializers.go +++ b/service/codegurusecurity/deserializers.go @@ -2447,7 +2447,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorCode": if value != nil { @@ -2490,6 +2496,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2856,7 +2865,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorCode": if value != nil { @@ -2899,6 +2914,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3521,7 +3539,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "error": if value != nil { @@ -3546,6 +3570,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3926,7 +3953,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorCode": if value != nil { @@ -3969,6 +4002,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4366,7 +4402,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorCode": if value != nil { @@ -4409,6 +4451,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4433,7 +4478,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorCode": if value != nil { @@ -4472,6 +4523,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/codepipeline/deserializers.go b/service/codepipeline/deserializers.go index 166a6da86b0..211e866e2e1 100644 --- a/service/codepipeline/deserializers.go +++ b/service/codepipeline/deserializers.go @@ -7230,7 +7230,13 @@ func awsAwsjson11_deserializeDocumentActionNotFoundException(v **types.ActionNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7246,6 +7252,9 @@ func awsAwsjson11_deserializeDocumentActionNotFoundException(v **types.ActionNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7860,7 +7869,13 @@ func awsAwsjson11_deserializeDocumentActionTypeNotFoundException(v **types.Actio sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7876,6 +7891,9 @@ func awsAwsjson11_deserializeDocumentActionTypeNotFoundException(v **types.Actio } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8225,7 +8243,13 @@ func awsAwsjson11_deserializeDocumentApprovalAlreadyCompletedException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8241,6 +8265,9 @@ func awsAwsjson11_deserializeDocumentApprovalAlreadyCompletedException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8928,7 +8955,13 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8944,6 +8977,9 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8968,7 +9004,13 @@ func awsAwsjson11_deserializeDocumentConcurrentPipelineExecutionsLimitExceededEx sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8984,6 +9026,9 @@ func awsAwsjson11_deserializeDocumentConcurrentPipelineExecutionsLimitExceededEx } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9152,7 +9197,13 @@ func awsAwsjson11_deserializeDocumentConditionNotOverridableException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9168,6 +9219,9 @@ func awsAwsjson11_deserializeDocumentConditionNotOverridableException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9267,7 +9321,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9283,6 +9343,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9307,7 +9370,13 @@ func awsAwsjson11_deserializeDocumentDuplicatedStopRequestException(v **types.Du sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9323,6 +9392,9 @@ func awsAwsjson11_deserializeDocumentDuplicatedStopRequestException(v **types.Du } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10172,7 +10244,13 @@ func awsAwsjson11_deserializeDocumentInvalidActionDeclarationException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10188,6 +10266,9 @@ func awsAwsjson11_deserializeDocumentInvalidActionDeclarationException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10212,7 +10293,13 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalTokenException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10228,6 +10315,9 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalTokenException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10252,7 +10342,13 @@ func awsAwsjson11_deserializeDocumentInvalidArnException(v **types.InvalidArnExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10268,6 +10364,9 @@ func awsAwsjson11_deserializeDocumentInvalidArnException(v **types.InvalidArnExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10292,7 +10391,13 @@ func awsAwsjson11_deserializeDocumentInvalidBlockerDeclarationException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10308,6 +10413,9 @@ func awsAwsjson11_deserializeDocumentInvalidBlockerDeclarationException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10332,7 +10440,13 @@ func awsAwsjson11_deserializeDocumentInvalidClientTokenException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10348,6 +10462,9 @@ func awsAwsjson11_deserializeDocumentInvalidClientTokenException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10372,7 +10489,13 @@ func awsAwsjson11_deserializeDocumentInvalidJobException(v **types.InvalidJobExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10388,6 +10511,9 @@ func awsAwsjson11_deserializeDocumentInvalidJobException(v **types.InvalidJobExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10412,7 +10538,13 @@ func awsAwsjson11_deserializeDocumentInvalidJobStateException(v **types.InvalidJ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10428,6 +10560,9 @@ func awsAwsjson11_deserializeDocumentInvalidJobStateException(v **types.InvalidJ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10452,7 +10587,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10468,6 +10609,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10492,7 +10636,13 @@ func awsAwsjson11_deserializeDocumentInvalidNonceException(v **types.InvalidNonc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10508,6 +10658,9 @@ func awsAwsjson11_deserializeDocumentInvalidNonceException(v **types.InvalidNonc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10532,7 +10685,13 @@ func awsAwsjson11_deserializeDocumentInvalidStageDeclarationException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10548,6 +10707,9 @@ func awsAwsjson11_deserializeDocumentInvalidStageDeclarationException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10572,7 +10734,13 @@ func awsAwsjson11_deserializeDocumentInvalidStructureException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10588,6 +10756,9 @@ func awsAwsjson11_deserializeDocumentInvalidStructureException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10612,7 +10783,13 @@ func awsAwsjson11_deserializeDocumentInvalidTagsException(v **types.InvalidTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10628,6 +10805,9 @@ func awsAwsjson11_deserializeDocumentInvalidTagsException(v **types.InvalidTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10652,7 +10832,13 @@ func awsAwsjson11_deserializeDocumentInvalidWebhookAuthenticationParametersExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10668,6 +10854,9 @@ func awsAwsjson11_deserializeDocumentInvalidWebhookAuthenticationParametersExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10692,7 +10881,13 @@ func awsAwsjson11_deserializeDocumentInvalidWebhookFilterPatternException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10708,6 +10903,9 @@ func awsAwsjson11_deserializeDocumentInvalidWebhookFilterPatternException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10958,7 +11156,13 @@ func awsAwsjson11_deserializeDocumentJobNotFoundException(v **types.JobNotFoundE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10974,6 +11178,9 @@ func awsAwsjson11_deserializeDocumentJobNotFoundException(v **types.JobNotFoundE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11079,7 +11286,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11095,6 +11308,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11212,7 +11428,13 @@ func awsAwsjson11_deserializeDocumentNotLatestPipelineExecutionException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11228,6 +11450,9 @@ func awsAwsjson11_deserializeDocumentNotLatestPipelineExecutionException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11403,7 +11628,13 @@ func awsAwsjson11_deserializeDocumentOutputVariablesSizeExceededException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11419,6 +11650,9 @@ func awsAwsjson11_deserializeDocumentOutputVariablesSizeExceededException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11734,7 +11968,13 @@ func awsAwsjson11_deserializeDocumentPipelineExecutionNotFoundException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11750,6 +11990,9 @@ func awsAwsjson11_deserializeDocumentPipelineExecutionNotFoundException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11774,7 +12017,13 @@ func awsAwsjson11_deserializeDocumentPipelineExecutionNotStoppableException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11790,6 +12039,9 @@ func awsAwsjson11_deserializeDocumentPipelineExecutionNotStoppableException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11814,7 +12066,13 @@ func awsAwsjson11_deserializeDocumentPipelineExecutionOutdatedException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11830,6 +12088,9 @@ func awsAwsjson11_deserializeDocumentPipelineExecutionOutdatedException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12138,7 +12399,13 @@ func awsAwsjson11_deserializeDocumentPipelineNameInUseException(v **types.Pipeli sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12154,6 +12421,9 @@ func awsAwsjson11_deserializeDocumentPipelineNameInUseException(v **types.Pipeli } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12178,7 +12448,13 @@ func awsAwsjson11_deserializeDocumentPipelineNotFoundException(v **types.Pipelin sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12194,6 +12470,9 @@ func awsAwsjson11_deserializeDocumentPipelineNotFoundException(v **types.Pipelin } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12566,7 +12845,13 @@ func awsAwsjson11_deserializeDocumentPipelineVersionNotFoundException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12582,6 +12867,9 @@ func awsAwsjson11_deserializeDocumentPipelineVersionNotFoundException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12678,7 +12966,13 @@ func awsAwsjson11_deserializeDocumentRequestFailedException(v **types.RequestFai sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12694,6 +12988,9 @@ func awsAwsjson11_deserializeDocumentRequestFailedException(v **types.RequestFai } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12873,7 +13170,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12889,6 +13192,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14700,7 +15006,13 @@ func awsAwsjson11_deserializeDocumentStageNotFoundException(v **types.StageNotFo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14716,6 +15028,9 @@ func awsAwsjson11_deserializeDocumentStageNotFoundException(v **types.StageNotFo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14740,7 +15055,13 @@ func awsAwsjson11_deserializeDocumentStageNotRetryableException(v **types.StageN sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14756,6 +15077,9 @@ func awsAwsjson11_deserializeDocumentStageNotRetryableException(v **types.StageN } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15270,7 +15594,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15286,6 +15616,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15384,7 +15717,13 @@ func awsAwsjson11_deserializeDocumentUnableToRollbackStageException(v **types.Un sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15400,6 +15739,9 @@ func awsAwsjson11_deserializeDocumentUnableToRollbackStageException(v **types.Un } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15424,7 +15766,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15440,6 +15788,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15707,13 +16058,22 @@ func awsAwsjson11_deserializeDocumentWebhookNotFoundException(v **types.WebhookN sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/codestarconnections/deserializers.go b/service/codestarconnections/deserializers.go index a636a8de0a7..4c65a14a9e3 100644 --- a/service/codestarconnections/deserializers.go +++ b/service/codestarconnections/deserializers.go @@ -3893,7 +3893,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3909,6 +3915,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3933,7 +3942,13 @@ func awsAwsjson10_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3949,6 +3964,9 @@ func awsAwsjson10_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3973,7 +3991,13 @@ func awsAwsjson10_deserializeDocumentConditionalCheckFailedException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3989,6 +4013,9 @@ func awsAwsjson10_deserializeDocumentConditionalCheckFailedException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4013,7 +4040,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4029,6 +4062,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4296,7 +4332,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4312,6 +4354,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4336,7 +4381,13 @@ func awsAwsjson10_deserializeDocumentInvalidInputException(v **types.InvalidInpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4352,6 +4403,9 @@ func awsAwsjson10_deserializeDocumentInvalidInputException(v **types.InvalidInpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4410,7 +4464,13 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4426,6 +4486,9 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4848,7 +4911,13 @@ func awsAwsjson10_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4864,6 +4933,9 @@ func awsAwsjson10_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4888,7 +4960,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4904,6 +4982,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5116,7 +5197,13 @@ func awsAwsjson10_deserializeDocumentResourceUnavailableException(v **types.Reso sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5132,6 +5219,9 @@ func awsAwsjson10_deserializeDocumentResourceUnavailableException(v **types.Reso } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5156,7 +5246,13 @@ func awsAwsjson10_deserializeDocumentRetryLatestCommitFailedException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5172,6 +5268,9 @@ func awsAwsjson10_deserializeDocumentRetryLatestCommitFailedException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5549,7 +5648,13 @@ func awsAwsjson10_deserializeDocumentSyncBlockerDoesNotExistException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5565,6 +5670,9 @@ func awsAwsjson10_deserializeDocumentSyncBlockerDoesNotExistException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5807,7 +5915,13 @@ func awsAwsjson10_deserializeDocumentSyncConfigurationStillExistsException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5823,6 +5937,9 @@ func awsAwsjson10_deserializeDocumentSyncConfigurationStillExistsException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5930,7 +6047,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5946,6 +6069,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5970,7 +6096,13 @@ func awsAwsjson10_deserializeDocumentUnsupportedOperationException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5986,6 +6118,9 @@ func awsAwsjson10_deserializeDocumentUnsupportedOperationException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6010,7 +6145,13 @@ func awsAwsjson10_deserializeDocumentUnsupportedProviderTypeException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6026,6 +6167,9 @@ func awsAwsjson10_deserializeDocumentUnsupportedProviderTypeException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6050,7 +6194,13 @@ func awsAwsjson10_deserializeDocumentUpdateOutOfSyncException(v **types.UpdateOu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6066,6 +6216,9 @@ func awsAwsjson10_deserializeDocumentUpdateOutOfSyncException(v **types.UpdateOu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/codestarnotifications/deserializers.go b/service/codestarnotifications/deserializers.go index eea7113c5da..b70dadb62bc 100644 --- a/service/codestarnotifications/deserializers.go +++ b/service/codestarnotifications/deserializers.go @@ -2326,7 +2326,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2342,6 +2348,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2366,7 +2375,13 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2382,6 +2397,9 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2406,7 +2424,13 @@ func awsRestjson1_deserializeDocumentConfigurationException(v **types.Configurat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2422,6 +2446,9 @@ func awsRestjson1_deserializeDocumentConfigurationException(v **types.Configurat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2547,7 +2574,13 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2563,6 +2596,9 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2587,7 +2623,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2603,6 +2645,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2710,7 +2755,13 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2726,6 +2777,9 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2750,7 +2804,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2766,6 +2826,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2918,7 +2981,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2934,6 +3003,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/cognitoidentity/deserializers.go b/service/cognitoidentity/deserializers.go index 40ef576c580..7a7763dbfc2 100644 --- a/service/cognitoidentity/deserializers.go +++ b/service/cognitoidentity/deserializers.go @@ -3328,7 +3328,13 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3344,6 +3350,9 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3442,7 +3451,13 @@ func awsAwsjson11_deserializeDocumentDeveloperUserAlreadyRegisteredException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3458,6 +3473,9 @@ func awsAwsjson11_deserializeDocumentDeveloperUserAlreadyRegisteredException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3518,7 +3536,13 @@ func awsAwsjson11_deserializeDocumentExternalServiceException(v **types.External sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3534,6 +3558,9 @@ func awsAwsjson11_deserializeDocumentExternalServiceException(v **types.External } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3824,7 +3851,13 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3840,6 +3873,9 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3864,7 +3900,13 @@ func awsAwsjson11_deserializeDocumentInvalidIdentityPoolConfigurationException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3880,6 +3922,9 @@ func awsAwsjson11_deserializeDocumentInvalidIdentityPoolConfigurationException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3904,7 +3949,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3920,6 +3971,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3944,7 +3998,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3960,6 +4020,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4121,7 +4184,13 @@ func awsAwsjson11_deserializeDocumentNotAuthorizedException(v **types.NotAuthori sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4137,6 +4206,9 @@ func awsAwsjson11_deserializeDocumentNotAuthorizedException(v **types.NotAuthori } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4233,7 +4305,13 @@ func awsAwsjson11_deserializeDocumentResourceConflictException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4249,6 +4327,9 @@ func awsAwsjson11_deserializeDocumentResourceConflictException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4273,7 +4354,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4289,6 +4376,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4510,7 +4600,13 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4526,6 +4622,9 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/cognitoidentityprovider/deserializers.go b/service/cognitoidentityprovider/deserializers.go index cb2d2f87f68..b8bb4d06013 100644 --- a/service/cognitoidentityprovider/deserializers.go +++ b/service/cognitoidentityprovider/deserializers.go @@ -15186,7 +15186,13 @@ func awsAwsjson11_deserializeDocumentAliasExistsException(v **types.AliasExistsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15202,6 +15208,9 @@ func awsAwsjson11_deserializeDocumentAliasExistsException(v **types.AliasExistsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16029,7 +16038,13 @@ func awsAwsjson11_deserializeDocumentCodeDeliveryFailureException(v **types.Code sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16045,6 +16060,9 @@ func awsAwsjson11_deserializeDocumentCodeDeliveryFailureException(v **types.Code } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16069,7 +16087,13 @@ func awsAwsjson11_deserializeDocumentCodeMismatchException(v **types.CodeMismatc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16085,6 +16109,9 @@ func awsAwsjson11_deserializeDocumentCodeMismatchException(v **types.CodeMismatc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16190,7 +16217,13 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16206,6 +16239,9 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16643,7 +16679,13 @@ func awsAwsjson11_deserializeDocumentDuplicateProviderException(v **types.Duplic sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16659,6 +16701,9 @@ func awsAwsjson11_deserializeDocumentDuplicateProviderException(v **types.Duplic } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16808,7 +16853,13 @@ func awsAwsjson11_deserializeDocumentEnableSoftwareTokenMFAException(v **types.E sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16824,6 +16875,9 @@ func awsAwsjson11_deserializeDocumentEnableSoftwareTokenMFAException(v **types.E } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17083,7 +17137,13 @@ func awsAwsjson11_deserializeDocumentExpiredCodeException(v **types.ExpiredCodeE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17099,6 +17159,9 @@ func awsAwsjson11_deserializeDocumentExpiredCodeException(v **types.ExpiredCodeE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17199,7 +17262,13 @@ func awsAwsjson11_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17215,6 +17284,9 @@ func awsAwsjson11_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17239,7 +17311,13 @@ func awsAwsjson11_deserializeDocumentGroupExistsException(v **types.GroupExistsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17255,6 +17333,9 @@ func awsAwsjson11_deserializeDocumentGroupExistsException(v **types.GroupExistsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17566,7 +17647,13 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17582,6 +17669,9 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17606,7 +17696,13 @@ func awsAwsjson11_deserializeDocumentInvalidEmailRoleAccessPolicyException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17622,6 +17718,9 @@ func awsAwsjson11_deserializeDocumentInvalidEmailRoleAccessPolicyException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17646,7 +17745,13 @@ func awsAwsjson11_deserializeDocumentInvalidLambdaResponseException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17662,6 +17767,9 @@ func awsAwsjson11_deserializeDocumentInvalidLambdaResponseException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17686,7 +17794,13 @@ func awsAwsjson11_deserializeDocumentInvalidOAuthFlowException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17702,6 +17816,9 @@ func awsAwsjson11_deserializeDocumentInvalidOAuthFlowException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17726,7 +17843,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17742,6 +17865,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17766,7 +17892,13 @@ func awsAwsjson11_deserializeDocumentInvalidPasswordException(v **types.InvalidP sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17782,6 +17914,9 @@ func awsAwsjson11_deserializeDocumentInvalidPasswordException(v **types.InvalidP } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17806,7 +17941,13 @@ func awsAwsjson11_deserializeDocumentInvalidSmsRoleAccessPolicyException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17822,6 +17963,9 @@ func awsAwsjson11_deserializeDocumentInvalidSmsRoleAccessPolicyException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17846,7 +17990,13 @@ func awsAwsjson11_deserializeDocumentInvalidSmsRoleTrustRelationshipException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17862,6 +18012,9 @@ func awsAwsjson11_deserializeDocumentInvalidSmsRoleTrustRelationshipException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17886,7 +18039,13 @@ func awsAwsjson11_deserializeDocumentInvalidUserPoolConfigurationException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17902,6 +18061,9 @@ func awsAwsjson11_deserializeDocumentInvalidUserPoolConfigurationException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18071,7 +18233,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18087,6 +18255,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18384,7 +18555,13 @@ func awsAwsjson11_deserializeDocumentMFAMethodNotFoundException(v **types.MFAMet sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18400,6 +18577,9 @@ func awsAwsjson11_deserializeDocumentMFAMethodNotFoundException(v **types.MFAMet } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18556,7 +18736,13 @@ func awsAwsjson11_deserializeDocumentNotAuthorizedException(v **types.NotAuthori sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18572,6 +18758,9 @@ func awsAwsjson11_deserializeDocumentNotAuthorizedException(v **types.NotAuthori } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18812,7 +19001,13 @@ func awsAwsjson11_deserializeDocumentPasswordHistoryPolicyViolationException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18828,6 +19023,9 @@ func awsAwsjson11_deserializeDocumentPasswordHistoryPolicyViolationException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18958,7 +19156,13 @@ func awsAwsjson11_deserializeDocumentPasswordResetRequiredException(v **types.Pa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18974,6 +19178,9 @@ func awsAwsjson11_deserializeDocumentPasswordResetRequiredException(v **types.Pa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18998,7 +19205,13 @@ func awsAwsjson11_deserializeDocumentPreconditionNotMetException(v **types.Preco sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19014,6 +19227,9 @@ func awsAwsjson11_deserializeDocumentPreconditionNotMetException(v **types.Preco } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19325,7 +19541,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19341,6 +19563,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19826,7 +20051,13 @@ func awsAwsjson11_deserializeDocumentScopeDoesNotExistException(v **types.ScopeD sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19842,6 +20073,9 @@ func awsAwsjson11_deserializeDocumentScopeDoesNotExistException(v **types.ScopeD } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20081,7 +20315,13 @@ func awsAwsjson11_deserializeDocumentSoftwareTokenMFANotFoundException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20097,6 +20337,9 @@ func awsAwsjson11_deserializeDocumentSoftwareTokenMFANotFoundException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20264,7 +20507,13 @@ func awsAwsjson11_deserializeDocumentTooManyFailedAttemptsException(v **types.To sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20280,6 +20529,9 @@ func awsAwsjson11_deserializeDocumentTooManyFailedAttemptsException(v **types.To } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20304,7 +20556,13 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20320,6 +20578,9 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20452,7 +20713,13 @@ func awsAwsjson11_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20468,6 +20735,9 @@ func awsAwsjson11_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20492,7 +20762,13 @@ func awsAwsjson11_deserializeDocumentUnexpectedLambdaException(v **types.Unexpec sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20508,6 +20784,9 @@ func awsAwsjson11_deserializeDocumentUnexpectedLambdaException(v **types.Unexpec } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20532,7 +20811,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedIdentityProviderException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20548,6 +20833,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedIdentityProviderException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20572,7 +20860,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20588,6 +20882,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20612,7 +20909,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedTokenTypeException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20628,6 +20931,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedTokenTypeException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20652,7 +20958,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedUserStateException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20668,6 +20980,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedUserStateException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20728,7 +21043,13 @@ func awsAwsjson11_deserializeDocumentUserImportInProgressException(v **types.Use sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20744,6 +21065,9 @@ func awsAwsjson11_deserializeDocumentUserImportInProgressException(v **types.Use } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20983,7 +21307,13 @@ func awsAwsjson11_deserializeDocumentUserLambdaValidationException(v **types.Use sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20999,6 +21329,9 @@ func awsAwsjson11_deserializeDocumentUserLambdaValidationException(v **types.Use } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21135,7 +21468,13 @@ func awsAwsjson11_deserializeDocumentUsernameExistsException(v **types.UsernameE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21151,6 +21490,9 @@ func awsAwsjson11_deserializeDocumentUsernameExistsException(v **types.UsernameE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21175,7 +21517,13 @@ func awsAwsjson11_deserializeDocumentUserNotConfirmedException(v **types.UserNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21191,6 +21539,9 @@ func awsAwsjson11_deserializeDocumentUserNotConfirmedException(v **types.UserNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21215,7 +21566,13 @@ func awsAwsjson11_deserializeDocumentUserNotFoundException(v **types.UserNotFoun sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21231,6 +21588,9 @@ func awsAwsjson11_deserializeDocumentUserNotFoundException(v **types.UserNotFoun } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21255,7 +21615,13 @@ func awsAwsjson11_deserializeDocumentUserPoolAddOnNotEnabledException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21271,6 +21637,9 @@ func awsAwsjson11_deserializeDocumentUserPoolAddOnNotEnabledException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21843,7 +22212,13 @@ func awsAwsjson11_deserializeDocumentUserPoolTaggingException(v **types.UserPool sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21859,6 +22234,9 @@ func awsAwsjson11_deserializeDocumentUserPoolTaggingException(v **types.UserPool } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/cognitosync/deserializers.go b/service/cognitosync/deserializers.go index a48705d6052..badfb807697 100644 --- a/service/cognitosync/deserializers.go +++ b/service/cognitosync/deserializers.go @@ -3361,7 +3361,13 @@ func awsRestjson1_deserializeDocumentAlreadyStreamedException(v **types.AlreadyS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3377,6 +3383,9 @@ func awsRestjson1_deserializeDocumentAlreadyStreamedException(v **types.AlreadyS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3495,7 +3504,13 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3511,6 +3526,9 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3685,7 +3703,13 @@ func awsRestjson1_deserializeDocumentDuplicateRequestException(v **types.Duplica sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3701,6 +3725,9 @@ func awsRestjson1_deserializeDocumentDuplicateRequestException(v **types.Duplica } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3968,7 +3995,13 @@ func awsRestjson1_deserializeDocumentInternalErrorException(v **types.InternalEr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3984,6 +4017,9 @@ func awsRestjson1_deserializeDocumentInternalErrorException(v **types.InternalEr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4008,7 +4044,13 @@ func awsRestjson1_deserializeDocumentInvalidConfigurationException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4024,6 +4066,9 @@ func awsRestjson1_deserializeDocumentInvalidConfigurationException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4048,7 +4093,13 @@ func awsRestjson1_deserializeDocumentInvalidLambdaFunctionOutputException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4064,6 +4115,9 @@ func awsRestjson1_deserializeDocumentInvalidLambdaFunctionOutputException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4088,7 +4142,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4104,6 +4164,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4128,7 +4191,13 @@ func awsRestjson1_deserializeDocumentLambdaThrottledException(v **types.LambdaTh sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4144,6 +4213,9 @@ func awsRestjson1_deserializeDocumentLambdaThrottledException(v **types.LambdaTh } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4168,7 +4240,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4184,6 +4262,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4244,7 +4325,13 @@ func awsRestjson1_deserializeDocumentNotAuthorizedException(v **types.NotAuthori sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4260,6 +4347,9 @@ func awsRestjson1_deserializeDocumentNotAuthorizedException(v **types.NotAuthori } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4466,7 +4556,13 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4482,6 +4578,9 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4506,7 +4605,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4522,6 +4627,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4546,7 +4654,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4562,6 +4676,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/comprehend/deserializers.go b/service/comprehend/deserializers.go index 3c34ef1d190..cc5961d99da 100644 --- a/service/comprehend/deserializers.go +++ b/service/comprehend/deserializers.go @@ -11491,7 +11491,13 @@ func awsAwsjson11_deserializeDocumentBatchSizeLimitExceededException(v **types.B sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11507,6 +11513,9 @@ func awsAwsjson11_deserializeDocumentBatchSizeLimitExceededException(v **types.B } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12294,7 +12303,13 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12310,6 +12325,9 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16785,7 +16803,13 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16801,6 +16825,9 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16825,7 +16852,13 @@ func awsAwsjson11_deserializeDocumentInvalidFilterException(v **types.InvalidFil sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16841,6 +16874,9 @@ func awsAwsjson11_deserializeDocumentInvalidFilterException(v **types.InvalidFil } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16905,7 +16941,13 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Detail": if err := awsAwsjson11_deserializeDocumentInvalidRequestDetail(&sv.Detail, value); err != nil { @@ -16935,6 +16977,9 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16959,7 +17004,13 @@ func awsAwsjson11_deserializeDocumentJobNotFoundException(v **types.JobNotFoundE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16975,6 +17026,9 @@ func awsAwsjson11_deserializeDocumentJobNotFoundException(v **types.JobNotFoundE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17283,7 +17337,13 @@ func awsAwsjson11_deserializeDocumentKmsKeyValidationException(v **types.KmsKeyV sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -17299,6 +17359,9 @@ func awsAwsjson11_deserializeDocumentKmsKeyValidationException(v **types.KmsKeyV } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19088,7 +19151,13 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -19104,6 +19173,9 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19128,7 +19200,13 @@ func awsAwsjson11_deserializeDocumentResourceLimitExceededException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -19144,6 +19222,9 @@ func awsAwsjson11_deserializeDocumentResourceLimitExceededException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19168,7 +19249,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -19184,6 +19271,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19208,7 +19298,13 @@ func awsAwsjson11_deserializeDocumentResourceUnavailableException(v **types.Reso sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -19224,6 +19320,9 @@ func awsAwsjson11_deserializeDocumentResourceUnavailableException(v **types.Reso } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20333,7 +20432,13 @@ func awsAwsjson11_deserializeDocumentTextSizeLimitExceededException(v **types.Te sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -20349,6 +20454,9 @@ func awsAwsjson11_deserializeDocumentTextSizeLimitExceededException(v **types.Te } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20373,7 +20481,13 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -20389,6 +20503,9 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20413,7 +20530,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagKeysException(v **types.TooManyTa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -20429,6 +20552,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagKeysException(v **types.TooManyTa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20453,7 +20579,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -20469,6 +20601,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20825,7 +20960,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedLanguageException(v **types.Unsu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -20841,6 +20982,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedLanguageException(v **types.Unsu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/comprehendmedical/deserializers.go b/service/comprehendmedical/deserializers.go index 1ba986ea03b..3c2e72cd419 100644 --- a/service/comprehendmedical/deserializers.go +++ b/service/comprehendmedical/deserializers.go @@ -4777,7 +4777,13 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4793,6 +4799,9 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4817,7 +4826,13 @@ func awsAwsjson11_deserializeDocumentInvalidEncodingException(v **types.InvalidE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4833,6 +4848,9 @@ func awsAwsjson11_deserializeDocumentInvalidEncodingException(v **types.InvalidE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4857,7 +4875,13 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4873,6 +4897,9 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4946,7 +4973,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4962,6 +4995,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5586,7 +5622,13 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5602,6 +5644,9 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6307,7 +6352,13 @@ func awsAwsjson11_deserializeDocumentTextSizeLimitExceededException(v **types.Te sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6323,6 +6374,9 @@ func awsAwsjson11_deserializeDocumentTextSizeLimitExceededException(v **types.Te } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6347,7 +6401,13 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6363,6 +6423,9 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6574,7 +6637,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6590,6 +6659,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/computeoptimizer/deserializers.go b/service/computeoptimizer/deserializers.go index fb70c6e4746..54f7cb7feae 100644 --- a/service/computeoptimizer/deserializers.go +++ b/service/computeoptimizer/deserializers.go @@ -3776,7 +3776,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3792,6 +3798,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7548,7 +7557,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7564,6 +7579,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7588,7 +7606,13 @@ func awsAwsjson10_deserializeDocumentInvalidParameterValueException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7604,6 +7628,9 @@ func awsAwsjson10_deserializeDocumentInvalidParameterValueException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8846,7 +8873,13 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8862,6 +8895,9 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9087,7 +9123,13 @@ func awsAwsjson10_deserializeDocumentMissingAuthenticationToken(v **types.Missin sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9103,6 +9145,9 @@ func awsAwsjson10_deserializeDocumentMissingAuthenticationToken(v **types.Missin } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9127,7 +9172,13 @@ func awsAwsjson10_deserializeDocumentOptInRequiredException(v **types.OptInRequi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9143,6 +9194,9 @@ func awsAwsjson10_deserializeDocumentOptInRequiredException(v **types.OptInRequi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11287,7 +11341,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11303,6 +11363,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11584,7 +11647,13 @@ func awsAwsjson10_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11600,6 +11669,9 @@ func awsAwsjson10_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11820,7 +11892,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11836,6 +11914,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/configservice/deserializers.go b/service/configservice/deserializers.go index 9bee86d2e24..91bd2f1f136 100644 --- a/service/configservice/deserializers.go +++ b/service/configservice/deserializers.go @@ -16066,7 +16066,13 @@ func awsAwsjson11_deserializeDocumentConformancePackTemplateValidationException( sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16082,6 +16088,9 @@ func awsAwsjson11_deserializeDocumentConformancePackTemplateValidationException( } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17517,7 +17526,13 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatch(v **types.Idemp sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17533,6 +17548,9 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatch(v **types.Idemp } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17557,7 +17575,13 @@ func awsAwsjson11_deserializeDocumentInsufficientDeliveryPolicyException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17573,6 +17597,9 @@ func awsAwsjson11_deserializeDocumentInsufficientDeliveryPolicyException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17597,7 +17624,13 @@ func awsAwsjson11_deserializeDocumentInsufficientPermissionsException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17613,6 +17646,9 @@ func awsAwsjson11_deserializeDocumentInsufficientPermissionsException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17637,7 +17673,13 @@ func awsAwsjson11_deserializeDocumentInvalidConfigurationRecorderNameException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17653,6 +17695,9 @@ func awsAwsjson11_deserializeDocumentInvalidConfigurationRecorderNameException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17677,7 +17722,13 @@ func awsAwsjson11_deserializeDocumentInvalidDeliveryChannelNameException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17693,6 +17744,9 @@ func awsAwsjson11_deserializeDocumentInvalidDeliveryChannelNameException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17717,7 +17771,13 @@ func awsAwsjson11_deserializeDocumentInvalidExpressionException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17733,6 +17793,9 @@ func awsAwsjson11_deserializeDocumentInvalidExpressionException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17757,7 +17820,13 @@ func awsAwsjson11_deserializeDocumentInvalidLimitException(v **types.InvalidLimi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17773,6 +17842,9 @@ func awsAwsjson11_deserializeDocumentInvalidLimitException(v **types.InvalidLimi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17797,7 +17869,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17813,6 +17891,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17837,7 +17918,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterValueException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17853,6 +17940,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterValueException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17877,7 +17967,13 @@ func awsAwsjson11_deserializeDocumentInvalidRecordingGroupException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17893,6 +17989,9 @@ func awsAwsjson11_deserializeDocumentInvalidRecordingGroupException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17917,7 +18016,13 @@ func awsAwsjson11_deserializeDocumentInvalidResultTokenException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17933,6 +18038,9 @@ func awsAwsjson11_deserializeDocumentInvalidResultTokenException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17957,7 +18065,13 @@ func awsAwsjson11_deserializeDocumentInvalidRoleException(v **types.InvalidRoleE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17973,6 +18087,9 @@ func awsAwsjson11_deserializeDocumentInvalidRoleException(v **types.InvalidRoleE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17997,7 +18114,13 @@ func awsAwsjson11_deserializeDocumentInvalidS3KeyPrefixException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18013,6 +18136,9 @@ func awsAwsjson11_deserializeDocumentInvalidS3KeyPrefixException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18037,7 +18163,13 @@ func awsAwsjson11_deserializeDocumentInvalidS3KmsKeyArnException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18053,6 +18185,9 @@ func awsAwsjson11_deserializeDocumentInvalidS3KmsKeyArnException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18077,7 +18212,13 @@ func awsAwsjson11_deserializeDocumentInvalidSNSTopicARNException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18093,6 +18234,9 @@ func awsAwsjson11_deserializeDocumentInvalidSNSTopicARNException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18117,7 +18261,13 @@ func awsAwsjson11_deserializeDocumentInvalidTimeRangeException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18133,6 +18283,9 @@ func awsAwsjson11_deserializeDocumentInvalidTimeRangeException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18157,7 +18310,13 @@ func awsAwsjson11_deserializeDocumentLastDeliveryChannelDeleteFailedException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18173,6 +18332,9 @@ func awsAwsjson11_deserializeDocumentLastDeliveryChannelDeleteFailedException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18197,7 +18359,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18213,6 +18381,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18237,7 +18408,13 @@ func awsAwsjson11_deserializeDocumentMaxActiveResourcesExceededException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18253,6 +18430,9 @@ func awsAwsjson11_deserializeDocumentMaxActiveResourcesExceededException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18277,7 +18457,13 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfConfigRulesExceededException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18293,6 +18479,9 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfConfigRulesExceededException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18317,7 +18506,13 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfConfigurationRecordersExceededEx sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18333,6 +18528,9 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfConfigurationRecordersExceededEx } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18357,7 +18555,13 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfConformancePacksExceededExceptio sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18373,6 +18577,9 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfConformancePacksExceededExceptio } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18397,7 +18604,13 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfDeliveryChannelsExceededExceptio sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18413,6 +18626,9 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfDeliveryChannelsExceededExceptio } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18437,7 +18653,13 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfOrganizationConfigRulesExceededE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18453,6 +18675,9 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfOrganizationConfigRulesExceededE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18477,7 +18702,13 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfOrganizationConformancePacksExce sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18493,6 +18724,9 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfOrganizationConformancePacksExce } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18517,7 +18751,13 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfRetentionConfigurationsExceededE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18533,6 +18773,9 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfRetentionConfigurationsExceededE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18649,7 +18892,13 @@ func awsAwsjson11_deserializeDocumentNoAvailableConfigurationRecorderException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18665,6 +18914,9 @@ func awsAwsjson11_deserializeDocumentNoAvailableConfigurationRecorderException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18689,7 +18941,13 @@ func awsAwsjson11_deserializeDocumentNoAvailableDeliveryChannelException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18705,6 +18963,9 @@ func awsAwsjson11_deserializeDocumentNoAvailableDeliveryChannelException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18729,7 +18990,13 @@ func awsAwsjson11_deserializeDocumentNoAvailableOrganizationException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18745,6 +19012,9 @@ func awsAwsjson11_deserializeDocumentNoAvailableOrganizationException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18769,7 +19039,13 @@ func awsAwsjson11_deserializeDocumentNoRunningConfigurationRecorderException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18785,6 +19061,9 @@ func awsAwsjson11_deserializeDocumentNoRunningConfigurationRecorderException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18809,7 +19088,13 @@ func awsAwsjson11_deserializeDocumentNoSuchBucketException(v **types.NoSuchBucke sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18825,6 +19110,9 @@ func awsAwsjson11_deserializeDocumentNoSuchBucketException(v **types.NoSuchBucke } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18849,7 +19137,13 @@ func awsAwsjson11_deserializeDocumentNoSuchConfigRuleException(v **types.NoSuchC sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18865,6 +19159,9 @@ func awsAwsjson11_deserializeDocumentNoSuchConfigRuleException(v **types.NoSuchC } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18889,7 +19186,13 @@ func awsAwsjson11_deserializeDocumentNoSuchConfigRuleInConformancePackException( sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18905,6 +19208,9 @@ func awsAwsjson11_deserializeDocumentNoSuchConfigRuleInConformancePackException( } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18929,7 +19235,13 @@ func awsAwsjson11_deserializeDocumentNoSuchConfigurationAggregatorException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18945,6 +19257,9 @@ func awsAwsjson11_deserializeDocumentNoSuchConfigurationAggregatorException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18969,7 +19284,13 @@ func awsAwsjson11_deserializeDocumentNoSuchConfigurationRecorderException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18985,6 +19306,9 @@ func awsAwsjson11_deserializeDocumentNoSuchConfigurationRecorderException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19009,7 +19333,13 @@ func awsAwsjson11_deserializeDocumentNoSuchConformancePackException(v **types.No sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19025,6 +19355,9 @@ func awsAwsjson11_deserializeDocumentNoSuchConformancePackException(v **types.No } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19049,7 +19382,13 @@ func awsAwsjson11_deserializeDocumentNoSuchDeliveryChannelException(v **types.No sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19065,6 +19404,9 @@ func awsAwsjson11_deserializeDocumentNoSuchDeliveryChannelException(v **types.No } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19089,7 +19431,13 @@ func awsAwsjson11_deserializeDocumentNoSuchOrganizationConfigRuleException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19105,6 +19453,9 @@ func awsAwsjson11_deserializeDocumentNoSuchOrganizationConfigRuleException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19129,7 +19480,13 @@ func awsAwsjson11_deserializeDocumentNoSuchOrganizationConformancePackException( sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19145,6 +19502,9 @@ func awsAwsjson11_deserializeDocumentNoSuchOrganizationConformancePackException( } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19169,7 +19529,13 @@ func awsAwsjson11_deserializeDocumentNoSuchRemediationConfigurationException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19185,6 +19551,9 @@ func awsAwsjson11_deserializeDocumentNoSuchRemediationConfigurationException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19209,7 +19578,13 @@ func awsAwsjson11_deserializeDocumentNoSuchRemediationExceptionException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19225,6 +19600,9 @@ func awsAwsjson11_deserializeDocumentNoSuchRemediationExceptionException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19249,7 +19627,13 @@ func awsAwsjson11_deserializeDocumentNoSuchRetentionConfigurationException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19265,6 +19649,9 @@ func awsAwsjson11_deserializeDocumentNoSuchRetentionConfigurationException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19289,7 +19676,13 @@ func awsAwsjson11_deserializeDocumentOrganizationAccessDeniedException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19305,6 +19698,9 @@ func awsAwsjson11_deserializeDocumentOrganizationAccessDeniedException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19383,7 +19779,13 @@ func awsAwsjson11_deserializeDocumentOrganizationAllFeaturesNotEnabledException( sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19399,6 +19801,9 @@ func awsAwsjson11_deserializeDocumentOrganizationAllFeaturesNotEnabledException( } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20135,7 +20540,13 @@ func awsAwsjson11_deserializeDocumentOrganizationConformancePackTemplateValidati sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20151,6 +20562,9 @@ func awsAwsjson11_deserializeDocumentOrganizationConformancePackTemplateValidati } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20487,7 +20901,13 @@ func awsAwsjson11_deserializeDocumentOversizedConfigurationItemException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20503,6 +20923,9 @@ func awsAwsjson11_deserializeDocumentOversizedConfigurationItemException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21669,7 +22092,13 @@ func awsAwsjson11_deserializeDocumentRemediationInProgressException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21685,6 +22114,9 @@ func awsAwsjson11_deserializeDocumentRemediationInProgressException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21785,7 +22217,13 @@ func awsAwsjson11_deserializeDocumentResourceConcurrentModificationException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21801,6 +22239,9 @@ func awsAwsjson11_deserializeDocumentResourceConcurrentModificationException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22186,7 +22627,13 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22202,6 +22649,9 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22309,7 +22759,13 @@ func awsAwsjson11_deserializeDocumentResourceNotDiscoveredException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22325,6 +22781,9 @@ func awsAwsjson11_deserializeDocumentResourceNotDiscoveredException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22349,7 +22808,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22365,6 +22830,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23348,7 +23816,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23364,6 +23838,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23422,7 +23899,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23438,6 +23921,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/connect/deserializers.go b/service/connect/deserializers.go index 48d828da409..0bbde03e380 100644 --- a/service/connect/deserializers.go +++ b/service/connect/deserializers.go @@ -39141,7 +39141,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -39157,6 +39163,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -41582,7 +41591,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -41598,6 +41613,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -42345,7 +42363,13 @@ func awsRestjson1_deserializeDocumentContactFlowNotPublishedException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -42361,6 +42385,9 @@ func awsRestjson1_deserializeDocumentContactFlowNotPublishedException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -42538,7 +42565,13 @@ func awsRestjson1_deserializeDocumentContactNotFoundException(v **types.ContactN sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -42554,6 +42587,9 @@ func awsRestjson1_deserializeDocumentContactNotFoundException(v **types.ContactN } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -43712,7 +43748,13 @@ func awsRestjson1_deserializeDocumentDestinationNotAllowedException(v **types.De sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -43728,6 +43770,9 @@ func awsRestjson1_deserializeDocumentDestinationNotAllowedException(v **types.De } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -44081,7 +44126,13 @@ func awsRestjson1_deserializeDocumentDuplicateResourceException(v **types.Duplic sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -44097,6 +44148,9 @@ func awsRestjson1_deserializeDocumentDuplicateResourceException(v **types.Duplic } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -48376,7 +48430,13 @@ func awsRestjson1_deserializeDocumentIdempotencyException(v **types.IdempotencyE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -48392,6 +48452,9 @@ func awsRestjson1_deserializeDocumentIdempotencyException(v **types.IdempotencyE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -48996,7 +49059,13 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -49012,6 +49081,9 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -49036,7 +49108,13 @@ func awsRestjson1_deserializeDocumentInvalidContactFlowException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "problems": if err := awsRestjson1_deserializeDocumentProblems(&sv.Problems, value); err != nil { @@ -49048,6 +49126,9 @@ func awsRestjson1_deserializeDocumentInvalidContactFlowException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -49072,7 +49153,13 @@ func awsRestjson1_deserializeDocumentInvalidContactFlowModuleException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Problems": if err := awsRestjson1_deserializeDocumentProblems(&sv.Problems, value); err != nil { @@ -49084,6 +49171,9 @@ func awsRestjson1_deserializeDocumentInvalidContactFlowModuleException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -49108,7 +49198,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -49124,6 +49220,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -49148,7 +49247,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -49169,6 +49274,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -49677,7 +49785,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -49693,6 +49807,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -49899,7 +50016,13 @@ func awsRestjson1_deserializeDocumentMaximumResultReturnedException(v **types.Ma sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -49915,6 +50038,9 @@ func awsRestjson1_deserializeDocumentMaximumResultReturnedException(v **types.Ma } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -50856,7 +50982,13 @@ func awsRestjson1_deserializeDocumentOutboundContactNotPermittedException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -50872,6 +51004,9 @@ func awsRestjson1_deserializeDocumentOutboundContactNotPermittedException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -50896,7 +51031,13 @@ func awsRestjson1_deserializeDocumentOutputTypeNotFoundException(v **types.Outpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -50912,6 +51053,9 @@ func awsRestjson1_deserializeDocumentOutputTypeNotFoundException(v **types.Outpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -51904,7 +52048,13 @@ func awsRestjson1_deserializeDocumentPropertyValidationException(v **types.Prope sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -51925,6 +52075,9 @@ func awsRestjson1_deserializeDocumentPropertyValidationException(v **types.Prope } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -54469,7 +54622,13 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -54485,6 +54644,9 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -54509,7 +54671,13 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -54543,6 +54711,9 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -54567,7 +54738,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -54583,6 +54760,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -54607,7 +54787,13 @@ func awsRestjson1_deserializeDocumentResourceNotReadyException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -54623,6 +54809,9 @@ func awsRestjson1_deserializeDocumentResourceNotReadyException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -56348,7 +56537,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -56364,6 +56559,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -57729,7 +57927,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -57745,6 +57949,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -57769,7 +57976,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -57785,6 +57998,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -58807,7 +59023,13 @@ func awsRestjson1_deserializeDocumentUserNotFoundException(v **types.UserNotFoun sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -58823,6 +59045,9 @@ func awsRestjson1_deserializeDocumentUserNotFoundException(v **types.UserNotFoun } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/connectcampaigns/deserializers.go b/service/connectcampaigns/deserializers.go index cfabd5fb0c3..2e149cc0dc5 100644 --- a/service/connectcampaigns/deserializers.go +++ b/service/connectcampaigns/deserializers.go @@ -3496,7 +3496,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3521,6 +3527,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3842,7 +3851,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3867,6 +3882,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4296,7 +4314,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4321,6 +4345,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4345,7 +4372,13 @@ func awsRestjson1_deserializeDocumentInvalidCampaignStateException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4379,6 +4412,9 @@ func awsRestjson1_deserializeDocumentInvalidCampaignStateException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4403,7 +4439,13 @@ func awsRestjson1_deserializeDocumentInvalidStateException(v **types.InvalidStat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4428,6 +4470,9 @@ func awsRestjson1_deserializeDocumentInvalidStateException(v **types.InvalidStat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4713,7 +4758,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4738,6 +4789,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4762,7 +4816,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4787,6 +4847,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5013,7 +5076,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5038,6 +5107,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5062,7 +5134,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5087,6 +5165,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/connectcases/deserializers.go b/service/connectcases/deserializers.go index 0046fd364b0..9b38add068e 100644 --- a/service/connectcases/deserializers.go +++ b/service/connectcases/deserializers.go @@ -5664,7 +5664,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5680,6 +5686,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6334,7 +6343,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6350,6 +6365,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7547,7 +7565,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7576,6 +7600,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7982,7 +8009,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8016,6 +8049,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8312,7 +8348,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8328,6 +8370,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8489,7 +8534,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8505,6 +8556,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8571,7 +8625,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8587,6 +8647,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/connectcontactlens/deserializers.go b/service/connectcontactlens/deserializers.go index b862bf05832..760d203c372 100644 --- a/service/connectcontactlens/deserializers.go +++ b/service/connectcontactlens/deserializers.go @@ -402,7 +402,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -418,6 +424,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -576,7 +585,13 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -592,6 +607,9 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -616,7 +634,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -632,6 +656,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1026,7 +1053,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1042,6 +1075,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1066,7 +1102,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1082,6 +1124,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/connectparticipant/deserializers.go b/service/connectparticipant/deserializers.go index 8aea00d7339..593fe771ba9 100644 --- a/service/connectparticipant/deserializers.go +++ b/service/connectparticipant/deserializers.go @@ -1708,7 +1708,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1724,6 +1730,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1849,7 +1858,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1865,6 +1880,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1938,7 +1956,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1954,6 +1978,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2246,7 +2273,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2280,6 +2313,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2304,7 +2340,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2320,6 +2362,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2344,7 +2389,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2360,6 +2411,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2508,7 +2562,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2524,6 +2584,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/controlcatalog/deserializers.go b/service/controlcatalog/deserializers.go index a612845a2d5..fe1531ae02b 100644 --- a/service/controlcatalog/deserializers.go +++ b/service/controlcatalog/deserializers.go @@ -1109,7 +1109,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1125,6 +1131,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1633,7 +1642,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1649,6 +1664,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1847,7 +1865,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1863,6 +1887,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1887,7 +1914,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1903,6 +1936,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1927,7 +1963,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1943,6 +1985,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/controltower/deserializers.go b/service/controltower/deserializers.go index 7b7967ac2f7..6386edf92f6 100644 --- a/service/controltower/deserializers.go +++ b/service/controltower/deserializers.go @@ -4789,7 +4789,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4805,6 +4811,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5014,7 +5023,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5030,6 +5045,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5946,7 +5964,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5962,6 +5986,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6410,7 +6437,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6426,6 +6459,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6450,7 +6486,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6466,6 +6508,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6560,7 +6605,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6607,6 +6658,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6631,7 +6685,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6647,6 +6707,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/costandusagereportservice/deserializers.go b/service/costandusagereportservice/deserializers.go index d22a028e0d9..a5c585c2774 100644 --- a/service/costandusagereportservice/deserializers.go +++ b/service/costandusagereportservice/deserializers.go @@ -1073,7 +1073,13 @@ func awsAwsjson11_deserializeDocumentDuplicateReportNameException(v **types.Dupl sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1089,6 +1095,9 @@ func awsAwsjson11_deserializeDocumentDuplicateReportNameException(v **types.Dupl } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1113,7 +1122,13 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1129,6 +1144,9 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1323,7 +1341,13 @@ func awsAwsjson11_deserializeDocumentReportLimitReachedException(v **types.Repor sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1339,6 +1363,9 @@ func awsAwsjson11_deserializeDocumentReportLimitReachedException(v **types.Repor } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1412,7 +1439,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1428,6 +1461,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1571,7 +1607,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1587,6 +1629,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/costexplorer/deserializers.go b/service/costexplorer/deserializers.go index 6b6d90a2c82..e87abc9cd17 100644 --- a/service/costexplorer/deserializers.go +++ b/service/costexplorer/deserializers.go @@ -5859,7 +5859,13 @@ func awsAwsjson11_deserializeDocumentBackfillLimitExceededException(v **types.Ba sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5875,6 +5881,9 @@ func awsAwsjson11_deserializeDocumentBackfillLimitExceededException(v **types.Ba } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5899,7 +5908,13 @@ func awsAwsjson11_deserializeDocumentBillExpirationException(v **types.BillExpir sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5915,6 +5930,9 @@ func awsAwsjson11_deserializeDocumentBillExpirationException(v **types.BillExpir } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7401,7 +7419,13 @@ func awsAwsjson11_deserializeDocumentDataUnavailableException(v **types.DataUnav sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7417,6 +7441,9 @@ func awsAwsjson11_deserializeDocumentDataUnavailableException(v **types.DataUnav } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8519,7 +8546,13 @@ func awsAwsjson11_deserializeDocumentGenerationExistsException(v **types.Generat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8535,6 +8568,9 @@ func awsAwsjson11_deserializeDocumentGenerationExistsException(v **types.Generat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9089,7 +9125,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9105,6 +9147,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9165,7 +9210,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9181,6 +9232,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10162,7 +10216,13 @@ func awsAwsjson11_deserializeDocumentRequestChangedException(v **types.RequestCh sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10178,6 +10238,9 @@ func awsAwsjson11_deserializeDocumentRequestChangedException(v **types.RequestCh } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11131,7 +11194,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11156,6 +11225,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12876,7 +12948,13 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12892,6 +12970,9 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13329,7 +13410,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13354,6 +13441,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13378,7 +13468,13 @@ func awsAwsjson11_deserializeDocumentUnknownMonitorException(v **types.UnknownMo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13394,6 +13490,9 @@ func awsAwsjson11_deserializeDocumentUnknownMonitorException(v **types.UnknownMo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13418,7 +13517,13 @@ func awsAwsjson11_deserializeDocumentUnknownSubscriptionException(v **types.Unkn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13434,6 +13539,9 @@ func awsAwsjson11_deserializeDocumentUnknownSubscriptionException(v **types.Unkn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13458,7 +13566,13 @@ func awsAwsjson11_deserializeDocumentUnresolvableUsageUnitException(v **types.Un sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13474,6 +13588,9 @@ func awsAwsjson11_deserializeDocumentUnresolvableUsageUnitException(v **types.Un } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/costoptimizationhub/deserializers.go b/service/costoptimizationhub/deserializers.go index 9ebcb108222..37000420ef5 100644 --- a/service/costoptimizationhub/deserializers.go +++ b/service/costoptimizationhub/deserializers.go @@ -1068,7 +1068,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1084,6 +1090,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2592,7 +2601,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2608,6 +2623,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4444,7 +4462,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4469,6 +4493,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5139,7 +5166,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5155,6 +5188,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5314,7 +5350,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fields": if err := awsAwsjson10_deserializeDocumentValidationExceptionDetails(&sv.Fields, value); err != nil { @@ -5344,6 +5386,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/customerprofiles/deserializers.go b/service/customerprofiles/deserializers.go index 064b6a3bd17..bd0b1c6383e 100644 --- a/service/customerprofiles/deserializers.go +++ b/service/customerprofiles/deserializers.go @@ -10052,7 +10052,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10068,6 +10074,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10792,7 +10801,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10808,6 +10823,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11941,7 +11959,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11957,6 +11981,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13903,7 +13930,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13919,6 +13952,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14257,7 +14293,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14273,6 +14315,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/databasemigrationservice/deserializers.go b/service/databasemigrationservice/deserializers.go index de72637373e..3c48bba4849 100644 --- a/service/databasemigrationservice/deserializers.go +++ b/service/databasemigrationservice/deserializers.go @@ -14082,7 +14082,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedFault(v **types.AccessDeniedFau sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14098,6 +14104,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedFault(v **types.AccessDeniedFau } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14677,7 +14686,13 @@ func awsAwsjson11_deserializeDocumentCollectorNotFoundFault(v **types.CollectorN sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14693,6 +14708,9 @@ func awsAwsjson11_deserializeDocumentCollectorNotFoundFault(v **types.CollectorN } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17888,7 +17906,13 @@ func awsAwsjson11_deserializeDocumentFailedDependencyFault(v **types.FailedDepen sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17904,6 +17928,9 @@ func awsAwsjson11_deserializeDocumentFailedDependencyFault(v **types.FailedDepen } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18708,7 +18735,13 @@ func awsAwsjson11_deserializeDocumentInsufficientResourceCapacityFault(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18724,6 +18757,9 @@ func awsAwsjson11_deserializeDocumentInsufficientResourceCapacityFault(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18788,7 +18824,13 @@ func awsAwsjson11_deserializeDocumentInvalidCertificateFault(v **types.InvalidCe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18804,6 +18846,9 @@ func awsAwsjson11_deserializeDocumentInvalidCertificateFault(v **types.InvalidCe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18828,7 +18873,13 @@ func awsAwsjson11_deserializeDocumentInvalidOperationFault(v **types.InvalidOper sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18844,6 +18895,9 @@ func awsAwsjson11_deserializeDocumentInvalidOperationFault(v **types.InvalidOper } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18868,7 +18922,13 @@ func awsAwsjson11_deserializeDocumentInvalidResourceStateFault(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18884,6 +18944,9 @@ func awsAwsjson11_deserializeDocumentInvalidResourceStateFault(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18908,7 +18971,13 @@ func awsAwsjson11_deserializeDocumentInvalidSubnet(v **types.InvalidSubnet, valu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18924,6 +18993,9 @@ func awsAwsjson11_deserializeDocumentInvalidSubnet(v **types.InvalidSubnet, valu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19341,7 +19413,13 @@ func awsAwsjson11_deserializeDocumentKMSAccessDeniedFault(v **types.KMSAccessDen sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19357,6 +19435,9 @@ func awsAwsjson11_deserializeDocumentKMSAccessDeniedFault(v **types.KMSAccessDen } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19381,7 +19462,13 @@ func awsAwsjson11_deserializeDocumentKMSDisabledFault(v **types.KMSDisabledFault sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19397,6 +19484,9 @@ func awsAwsjson11_deserializeDocumentKMSDisabledFault(v **types.KMSDisabledFault } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19421,7 +19511,13 @@ func awsAwsjson11_deserializeDocumentKMSFault(v **types.KMSFault, value interfac sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19437,6 +19533,9 @@ func awsAwsjson11_deserializeDocumentKMSFault(v **types.KMSFault, value interfac } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19461,7 +19560,13 @@ func awsAwsjson11_deserializeDocumentKMSInvalidStateFault(v **types.KMSInvalidSt sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19477,6 +19582,9 @@ func awsAwsjson11_deserializeDocumentKMSInvalidStateFault(v **types.KMSInvalidSt } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19501,7 +19609,13 @@ func awsAwsjson11_deserializeDocumentKMSKeyNotAccessibleFault(v **types.KMSKeyNo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19517,6 +19631,9 @@ func awsAwsjson11_deserializeDocumentKMSKeyNotAccessibleFault(v **types.KMSKeyNo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19541,7 +19658,13 @@ func awsAwsjson11_deserializeDocumentKMSNotFoundFault(v **types.KMSNotFoundFault sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19557,6 +19680,9 @@ func awsAwsjson11_deserializeDocumentKMSNotFoundFault(v **types.KMSNotFoundFault } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19581,7 +19707,13 @@ func awsAwsjson11_deserializeDocumentKMSThrottlingFault(v **types.KMSThrottlingF sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19597,6 +19729,9 @@ func awsAwsjson11_deserializeDocumentKMSThrottlingFault(v **types.KMSThrottlingF } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24680,7 +24815,13 @@ func awsAwsjson11_deserializeDocumentReplicationSubnetGroupDoesNotCoverEnoughAZs sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -24696,6 +24837,9 @@ func awsAwsjson11_deserializeDocumentReplicationSubnetGroupDoesNotCoverEnoughAZs } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25818,7 +25962,13 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsFault(v **types.Resour sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25843,6 +25993,9 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsFault(v **types.Resour } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25867,7 +26020,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundFault(v **types.ResourceNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25883,6 +26042,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundFault(v **types.ResourceNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25952,7 +26114,13 @@ func awsAwsjson11_deserializeDocumentResourceQuotaExceededFault(v **types.Resour sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -25968,6 +26136,9 @@ func awsAwsjson11_deserializeDocumentResourceQuotaExceededFault(v **types.Resour } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25992,7 +26163,13 @@ func awsAwsjson11_deserializeDocumentS3AccessDeniedFault(v **types.S3AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26008,6 +26185,9 @@ func awsAwsjson11_deserializeDocumentS3AccessDeniedFault(v **types.S3AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26032,7 +26212,13 @@ func awsAwsjson11_deserializeDocumentS3ResourceNotFoundFault(v **types.S3Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26048,6 +26234,9 @@ func awsAwsjson11_deserializeDocumentS3ResourceNotFoundFault(v **types.S3Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26954,7 +27143,13 @@ func awsAwsjson11_deserializeDocumentSNSInvalidTopicFault(v **types.SNSInvalidTo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26970,6 +27165,9 @@ func awsAwsjson11_deserializeDocumentSNSInvalidTopicFault(v **types.SNSInvalidTo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26994,7 +27192,13 @@ func awsAwsjson11_deserializeDocumentSNSNoAuthorizationFault(v **types.SNSNoAuth sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -27010,6 +27214,9 @@ func awsAwsjson11_deserializeDocumentSNSNoAuthorizationFault(v **types.SNSNoAuth } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27179,7 +27386,13 @@ func awsAwsjson11_deserializeDocumentStorageQuotaExceededFault(v **types.Storage sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -27195,6 +27408,9 @@ func awsAwsjson11_deserializeDocumentStorageQuotaExceededFault(v **types.Storage } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27309,7 +27525,13 @@ func awsAwsjson11_deserializeDocumentSubnetAlreadyInUse(v **types.SubnetAlreadyI sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -27325,6 +27547,9 @@ func awsAwsjson11_deserializeDocumentSubnetAlreadyInUse(v **types.SubnetAlreadyI } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -28116,7 +28341,13 @@ func awsAwsjson11_deserializeDocumentUpgradeDependencyFailureFault(v **types.Upg sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -28132,6 +28363,9 @@ func awsAwsjson11_deserializeDocumentUpgradeDependencyFailureFault(v **types.Upg } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/databrew/deserializers.go b/service/databrew/deserializers.go index 388a1019163..55ba056286d 100644 --- a/service/databrew/deserializers.go +++ b/service/databrew/deserializers.go @@ -8171,7 +8171,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8187,6 +8193,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8567,7 +8576,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8583,6 +8598,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9703,7 +9721,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9719,6 +9743,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11400,7 +11427,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11416,6 +11449,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12033,7 +12069,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12049,6 +12091,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12507,7 +12552,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12523,6 +12574,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/dataexchange/deserializers.go b/service/dataexchange/deserializers.go index 1d88ec82599..13fb29dbec0 100644 --- a/service/dataexchange/deserializers.go +++ b/service/dataexchange/deserializers.go @@ -7492,7 +7492,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7508,6 +7514,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8062,7 +8071,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8096,6 +8111,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9388,7 +9406,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9404,6 +9428,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10888,7 +10915,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10922,6 +10955,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11455,7 +11491,13 @@ func awsRestjson1_deserializeDocumentServiceLimitExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "LimitName": if value != nil { @@ -11514,6 +11556,9 @@ func awsRestjson1_deserializeDocumentServiceLimitExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11615,7 +11660,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11631,6 +11682,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11655,7 +11709,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ExceptionCause": if value != nil { @@ -11680,6 +11740,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/datapipeline/deserializers.go b/service/datapipeline/deserializers.go index ff93e8253a8..869348faf88 100644 --- a/service/datapipeline/deserializers.go +++ b/service/datapipeline/deserializers.go @@ -2574,7 +2574,13 @@ func awsAwsjson11_deserializeDocumentInternalServiceError(v **types.InternalServ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2590,6 +2596,9 @@ func awsAwsjson11_deserializeDocumentInternalServiceError(v **types.InternalServ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2614,7 +2623,13 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2630,6 +2645,9 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2899,7 +2917,13 @@ func awsAwsjson11_deserializeDocumentPipelineDeletedException(v **types.Pipeline sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2915,6 +2939,9 @@ func awsAwsjson11_deserializeDocumentPipelineDeletedException(v **types.Pipeline } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3124,7 +3151,13 @@ func awsAwsjson11_deserializeDocumentPipelineNotFoundException(v **types.Pipelin sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3140,6 +3173,9 @@ func awsAwsjson11_deserializeDocumentPipelineNotFoundException(v **types.Pipelin } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3370,7 +3406,13 @@ func awsAwsjson11_deserializeDocumentTaskNotFoundException(v **types.TaskNotFoun sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3386,6 +3428,9 @@ func awsAwsjson11_deserializeDocumentTaskNotFoundException(v **types.TaskNotFoun } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/datasync/deserializers.go b/service/datasync/deserializers.go index 6ee2dcf3ba2..1e7834e031d 100644 --- a/service/datasync/deserializers.go +++ b/service/datasync/deserializers.go @@ -7812,7 +7812,13 @@ func awsAwsjson11_deserializeDocumentInternalException(v **types.InternalExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorCode": if value != nil { @@ -7837,6 +7843,9 @@ func awsAwsjson11_deserializeDocumentInternalException(v **types.InternalExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7861,7 +7870,13 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "datasyncErrorCode": if value != nil { @@ -7895,6 +7910,9 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/datazone/deserializers.go b/service/datazone/deserializers.go index 28e06014b80..11c0fbea749 100644 --- a/service/datazone/deserializers.go +++ b/service/datazone/deserializers.go @@ -29543,7 +29543,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -29559,6 +29565,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -31307,7 +31316,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -31323,6 +31338,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -36152,7 +36170,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -36168,6 +36192,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -39535,7 +39562,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -39551,6 +39584,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -40464,7 +40500,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -40480,6 +40522,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -42120,7 +42165,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -42136,6 +42187,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -42466,7 +42520,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -42482,6 +42542,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -42785,7 +42848,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -42801,6 +42870,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/dax/deserializers.go b/service/dax/deserializers.go index efffefd973e..0ae0677022e 100644 --- a/service/dax/deserializers.go +++ b/service/dax/deserializers.go @@ -3786,7 +3786,13 @@ func awsAwsjson11_deserializeDocumentClusterAlreadyExistsFault(v **types.Cluster sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3802,6 +3808,9 @@ func awsAwsjson11_deserializeDocumentClusterAlreadyExistsFault(v **types.Cluster } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3860,7 +3869,13 @@ func awsAwsjson11_deserializeDocumentClusterNotFoundFault(v **types.ClusterNotFo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3876,6 +3891,9 @@ func awsAwsjson11_deserializeDocumentClusterNotFoundFault(v **types.ClusterNotFo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3900,7 +3918,13 @@ func awsAwsjson11_deserializeDocumentClusterQuotaForCustomerExceededFault(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3916,6 +3940,9 @@ func awsAwsjson11_deserializeDocumentClusterQuotaForCustomerExceededFault(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4110,7 +4137,13 @@ func awsAwsjson11_deserializeDocumentInsufficientClusterCapacityFault(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4126,6 +4159,9 @@ func awsAwsjson11_deserializeDocumentInsufficientClusterCapacityFault(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4150,7 +4186,13 @@ func awsAwsjson11_deserializeDocumentInvalidARNFault(v **types.InvalidARNFault, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4166,6 +4208,9 @@ func awsAwsjson11_deserializeDocumentInvalidARNFault(v **types.InvalidARNFault, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4190,7 +4235,13 @@ func awsAwsjson11_deserializeDocumentInvalidClusterStateFault(v **types.InvalidC sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4206,6 +4257,9 @@ func awsAwsjson11_deserializeDocumentInvalidClusterStateFault(v **types.InvalidC } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4230,7 +4284,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterCombinationException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4246,6 +4306,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterCombinationException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4270,7 +4333,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterGroupStateFault(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4286,6 +4355,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterGroupStateFault(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4310,7 +4382,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterValueException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4326,6 +4404,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterValueException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4350,7 +4431,13 @@ func awsAwsjson11_deserializeDocumentInvalidSubnet(v **types.InvalidSubnet, valu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4366,6 +4453,9 @@ func awsAwsjson11_deserializeDocumentInvalidSubnet(v **types.InvalidSubnet, valu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4390,7 +4480,13 @@ func awsAwsjson11_deserializeDocumentInvalidVPCNetworkStateFault(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4406,6 +4502,9 @@ func awsAwsjson11_deserializeDocumentInvalidVPCNetworkStateFault(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4588,7 +4687,13 @@ func awsAwsjson11_deserializeDocumentNodeNotFoundFault(v **types.NodeNotFoundFau sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4604,6 +4709,9 @@ func awsAwsjson11_deserializeDocumentNodeNotFoundFault(v **types.NodeNotFoundFau } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4628,7 +4736,13 @@ func awsAwsjson11_deserializeDocumentNodeQuotaForClusterExceededFault(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4644,6 +4758,9 @@ func awsAwsjson11_deserializeDocumentNodeQuotaForClusterExceededFault(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4668,7 +4785,13 @@ func awsAwsjson11_deserializeDocumentNodeQuotaForCustomerExceededFault(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4684,6 +4807,9 @@ func awsAwsjson11_deserializeDocumentNodeQuotaForCustomerExceededFault(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5006,7 +5132,13 @@ func awsAwsjson11_deserializeDocumentParameterGroupAlreadyExistsFault(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5022,6 +5154,9 @@ func awsAwsjson11_deserializeDocumentParameterGroupAlreadyExistsFault(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5080,7 +5215,13 @@ func awsAwsjson11_deserializeDocumentParameterGroupNotFoundFault(v **types.Param sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5096,6 +5237,9 @@ func awsAwsjson11_deserializeDocumentParameterGroupNotFoundFault(v **types.Param } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5120,7 +5264,13 @@ func awsAwsjson11_deserializeDocumentParameterGroupQuotaExceededFault(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5136,6 +5286,9 @@ func awsAwsjson11_deserializeDocumentParameterGroupQuotaExceededFault(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5331,7 +5484,13 @@ func awsAwsjson11_deserializeDocumentServiceLinkedRoleNotFoundFault(v **types.Se sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5347,6 +5506,9 @@ func awsAwsjson11_deserializeDocumentServiceLinkedRoleNotFoundFault(v **types.Se } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5371,13 +5533,22 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5554,7 +5725,13 @@ func awsAwsjson11_deserializeDocumentSubnetGroupAlreadyExistsFault(v **types.Sub sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5570,6 +5747,9 @@ func awsAwsjson11_deserializeDocumentSubnetGroupAlreadyExistsFault(v **types.Sub } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5594,7 +5774,13 @@ func awsAwsjson11_deserializeDocumentSubnetGroupInUseFault(v **types.SubnetGroup sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5610,6 +5796,9 @@ func awsAwsjson11_deserializeDocumentSubnetGroupInUseFault(v **types.SubnetGroup } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5668,7 +5857,13 @@ func awsAwsjson11_deserializeDocumentSubnetGroupNotFoundFault(v **types.SubnetGr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5684,6 +5879,9 @@ func awsAwsjson11_deserializeDocumentSubnetGroupNotFoundFault(v **types.SubnetGr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5708,7 +5906,13 @@ func awsAwsjson11_deserializeDocumentSubnetGroupQuotaExceededFault(v **types.Sub sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5724,6 +5928,9 @@ func awsAwsjson11_deserializeDocumentSubnetGroupQuotaExceededFault(v **types.Sub } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5748,7 +5955,13 @@ func awsAwsjson11_deserializeDocumentSubnetInUse(v **types.SubnetInUse, value in sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5764,6 +5977,9 @@ func awsAwsjson11_deserializeDocumentSubnetInUse(v **types.SubnetInUse, value in } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5822,7 +6038,13 @@ func awsAwsjson11_deserializeDocumentSubnetQuotaExceededFault(v **types.SubnetQu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5838,6 +6060,9 @@ func awsAwsjson11_deserializeDocumentSubnetQuotaExceededFault(v **types.SubnetQu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5945,7 +6170,13 @@ func awsAwsjson11_deserializeDocumentTagNotFoundFault(v **types.TagNotFoundFault sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5961,6 +6192,9 @@ func awsAwsjson11_deserializeDocumentTagNotFoundFault(v **types.TagNotFoundFault } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5985,7 +6219,13 @@ func awsAwsjson11_deserializeDocumentTagQuotaPerResourceExceeded(v **types.TagQu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6001,6 +6241,9 @@ func awsAwsjson11_deserializeDocumentTagQuotaPerResourceExceeded(v **types.TagQu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/deadline/deserializers.go b/service/deadline/deserializers.go index a1070754164..5c3bea00090 100644 --- a/service/deadline/deserializers.go +++ b/service/deadline/deserializers.go @@ -17363,7 +17363,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "context": if err := awsRestjson1_deserializeDocumentExceptionContext(&sv.Context, value); err != nil { @@ -17384,6 +17390,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18340,7 +18349,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "context": if err := awsRestjson1_deserializeDocumentExceptionContext(&sv.Context, value); err != nil { @@ -18388,6 +18403,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20412,7 +20430,13 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20441,6 +20465,9 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23274,7 +23301,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "context": if err := awsRestjson1_deserializeDocumentExceptionContext(&sv.Context, value); err != nil { @@ -23313,6 +23346,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23655,7 +23691,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "context": if err := awsRestjson1_deserializeDocumentExceptionContext(&sv.Context, value); err != nil { @@ -23721,6 +23763,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26514,7 +26559,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "context": if err := awsRestjson1_deserializeDocumentExceptionContext(&sv.Context, value); err != nil { @@ -26566,6 +26617,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26632,7 +26686,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "context": if err := awsRestjson1_deserializeDocumentExceptionContext(&sv.Context, value); err != nil { @@ -26667,6 +26727,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/detective/deserializers.go b/service/detective/deserializers.go index 912a406310c..8b42d543673 100644 --- a/service/detective/deserializers.go +++ b/service/detective/deserializers.go @@ -4512,7 +4512,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -4564,6 +4570,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4720,7 +4729,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4736,6 +4751,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5333,7 +5351,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5349,6 +5373,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6164,7 +6191,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6180,6 +6213,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6204,7 +6240,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6225,6 +6267,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6329,7 +6374,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6345,6 +6396,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6637,7 +6691,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -6671,6 +6731,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/devicefarm/deserializers.go b/service/devicefarm/deserializers.go index dbe20780614..993e4c3d81b 100644 --- a/service/devicefarm/deserializers.go +++ b/service/devicefarm/deserializers.go @@ -9823,7 +9823,13 @@ func awsAwsjson11_deserializeDocumentArgumentException(v **types.ArgumentExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9839,6 +9845,9 @@ func awsAwsjson11_deserializeDocumentArgumentException(v **types.ArgumentExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9973,7 +9982,13 @@ func awsAwsjson11_deserializeDocumentCannotDeleteException(v **types.CannotDelet sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9989,6 +10004,9 @@ func awsAwsjson11_deserializeDocumentCannotDeleteException(v **types.CannotDelet } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11183,7 +11201,13 @@ func awsAwsjson11_deserializeDocumentIdempotencyException(v **types.IdempotencyE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11199,6 +11223,9 @@ func awsAwsjson11_deserializeDocumentIdempotencyException(v **types.IdempotencyE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11457,7 +11484,13 @@ func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11473,6 +11506,9 @@ func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11497,7 +11533,13 @@ func awsAwsjson11_deserializeDocumentInvalidOperationException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11513,6 +11555,9 @@ func awsAwsjson11_deserializeDocumentInvalidOperationException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11782,7 +11827,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11798,6 +11849,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12240,7 +12294,13 @@ func awsAwsjson11_deserializeDocumentNotEligibleException(v **types.NotEligibleE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12256,6 +12316,9 @@ func awsAwsjson11_deserializeDocumentNotEligibleException(v **types.NotEligibleE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12280,7 +12343,13 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12296,6 +12365,9 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14134,7 +14206,13 @@ func awsAwsjson11_deserializeDocumentServiceAccountException(v **types.ServiceAc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14150,6 +14228,9 @@ func awsAwsjson11_deserializeDocumentServiceAccountException(v **types.ServiceAc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14470,7 +14551,13 @@ func awsAwsjson11_deserializeDocumentTagOperationException(v **types.TagOperatio sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14495,6 +14582,9 @@ func awsAwsjson11_deserializeDocumentTagOperationException(v **types.TagOperatio } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14519,7 +14609,13 @@ func awsAwsjson11_deserializeDocumentTagPolicyException(v **types.TagPolicyExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14544,6 +14640,9 @@ func awsAwsjson11_deserializeDocumentTagPolicyException(v **types.TagPolicyExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15279,7 +15378,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15304,6 +15409,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/devopsguru/deserializers.go b/service/devopsguru/deserializers.go index 5105c70d88e..d6a38da15ca 100644 --- a/service/devopsguru/deserializers.go +++ b/service/devopsguru/deserializers.go @@ -5369,7 +5369,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5385,6 +5391,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6539,7 +6548,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6573,6 +6588,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7255,7 +7273,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7284,6 +7308,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10651,7 +10678,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10685,6 +10718,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10976,7 +11012,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10992,6 +11034,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11630,7 +11675,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11677,6 +11728,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11816,7 +11870,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Fields": if err := awsRestjson1_deserializeDocumentValidationExceptionFields(&sv.Fields, value); err != nil { @@ -11846,6 +11906,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/directconnect/deserializers.go b/service/directconnect/deserializers.go index 6184d013e83..e16831841ac 100644 --- a/service/directconnect/deserializers.go +++ b/service/directconnect/deserializers.go @@ -8121,7 +8121,13 @@ func awsAwsjson11_deserializeDocumentDirectConnectClientException(v **types.Dire sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8137,6 +8143,9 @@ func awsAwsjson11_deserializeDocumentDirectConnectClientException(v **types.Dire } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8675,7 +8684,13 @@ func awsAwsjson11_deserializeDocumentDirectConnectServerException(v **types.Dire sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8691,6 +8706,9 @@ func awsAwsjson11_deserializeDocumentDirectConnectServerException(v **types.Dire } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8715,7 +8733,13 @@ func awsAwsjson11_deserializeDocumentDuplicateTagKeysException(v **types.Duplica sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8731,6 +8755,9 @@ func awsAwsjson11_deserializeDocumentDuplicateTagKeysException(v **types.Duplica } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9826,7 +9853,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9842,6 +9875,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/directoryservice/deserializers.go b/service/directoryservice/deserializers.go index 60153fed938..c0a6674a664 100644 --- a/service/directoryservice/deserializers.go +++ b/service/directoryservice/deserializers.go @@ -10080,7 +10080,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10105,6 +10111,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10248,7 +10257,13 @@ func awsAwsjson11_deserializeDocumentAuthenticationFailedException(v **types.Aut sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10273,6 +10288,9 @@ func awsAwsjson11_deserializeDocumentAuthenticationFailedException(v **types.Aut } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10446,7 +10464,13 @@ func awsAwsjson11_deserializeDocumentCertificateAlreadyExistsException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10471,6 +10495,9 @@ func awsAwsjson11_deserializeDocumentCertificateAlreadyExistsException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10495,7 +10522,13 @@ func awsAwsjson11_deserializeDocumentCertificateDoesNotExistException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10520,6 +10553,9 @@ func awsAwsjson11_deserializeDocumentCertificateDoesNotExistException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10627,7 +10663,13 @@ func awsAwsjson11_deserializeDocumentCertificateInUseException(v **types.Certifi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10652,6 +10694,9 @@ func awsAwsjson11_deserializeDocumentCertificateInUseException(v **types.Certifi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10676,7 +10721,13 @@ func awsAwsjson11_deserializeDocumentCertificateLimitExceededException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10701,6 +10752,9 @@ func awsAwsjson11_deserializeDocumentCertificateLimitExceededException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10898,7 +10952,13 @@ func awsAwsjson11_deserializeDocumentClientException(v **types.ClientException, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10923,6 +10983,9 @@ func awsAwsjson11_deserializeDocumentClientException(v **types.ClientException, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11089,7 +11152,13 @@ func awsAwsjson11_deserializeDocumentDirectoryAlreadyInRegionException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11114,6 +11183,9 @@ func awsAwsjson11_deserializeDocumentDirectoryAlreadyInRegionException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11138,7 +11210,13 @@ func awsAwsjson11_deserializeDocumentDirectoryAlreadySharedException(v **types.D sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11163,6 +11241,9 @@ func awsAwsjson11_deserializeDocumentDirectoryAlreadySharedException(v **types.D } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11589,7 +11670,13 @@ func awsAwsjson11_deserializeDocumentDirectoryDoesNotExistException(v **types.Di sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11614,6 +11701,9 @@ func awsAwsjson11_deserializeDocumentDirectoryDoesNotExistException(v **types.Di } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11638,7 +11728,13 @@ func awsAwsjson11_deserializeDocumentDirectoryInDesiredStateException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11663,6 +11759,9 @@ func awsAwsjson11_deserializeDocumentDirectoryInDesiredStateException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11687,7 +11786,13 @@ func awsAwsjson11_deserializeDocumentDirectoryLimitExceededException(v **types.D sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11712,6 +11817,9 @@ func awsAwsjson11_deserializeDocumentDirectoryLimitExceededException(v **types.D } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11872,7 +11980,13 @@ func awsAwsjson11_deserializeDocumentDirectoryNotSharedException(v **types.Direc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11897,6 +12011,9 @@ func awsAwsjson11_deserializeDocumentDirectoryNotSharedException(v **types.Direc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11921,7 +12038,13 @@ func awsAwsjson11_deserializeDocumentDirectoryUnavailableException(v **types.Dir sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11946,6 +12069,9 @@ func awsAwsjson11_deserializeDocumentDirectoryUnavailableException(v **types.Dir } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12245,7 +12371,13 @@ func awsAwsjson11_deserializeDocumentDomainControllerLimitExceededException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12270,6 +12402,9 @@ func awsAwsjson11_deserializeDocumentDomainControllerLimitExceededException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12328,7 +12463,13 @@ func awsAwsjson11_deserializeDocumentEntityAlreadyExistsException(v **types.Enti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12353,6 +12494,9 @@ func awsAwsjson11_deserializeDocumentEntityAlreadyExistsException(v **types.Enti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12377,7 +12521,13 @@ func awsAwsjson11_deserializeDocumentEntityDoesNotExistException(v **types.Entit sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12402,6 +12552,9 @@ func awsAwsjson11_deserializeDocumentEntityDoesNotExistException(v **types.Entit } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12543,7 +12696,13 @@ func awsAwsjson11_deserializeDocumentIncompatibleSettingsException(v **types.Inc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12568,6 +12727,9 @@ func awsAwsjson11_deserializeDocumentIncompatibleSettingsException(v **types.Inc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12592,7 +12754,13 @@ func awsAwsjson11_deserializeDocumentInsufficientPermissionsException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12617,6 +12785,9 @@ func awsAwsjson11_deserializeDocumentInsufficientPermissionsException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12641,7 +12812,13 @@ func awsAwsjson11_deserializeDocumentInvalidCertificateException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12666,6 +12843,9 @@ func awsAwsjson11_deserializeDocumentInvalidCertificateException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12690,7 +12870,13 @@ func awsAwsjson11_deserializeDocumentInvalidClientAuthStatusException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12715,6 +12901,9 @@ func awsAwsjson11_deserializeDocumentInvalidClientAuthStatusException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12739,7 +12928,13 @@ func awsAwsjson11_deserializeDocumentInvalidLDAPSStatusException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12764,6 +12959,9 @@ func awsAwsjson11_deserializeDocumentInvalidLDAPSStatusException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12788,7 +12986,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12813,6 +13017,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12837,7 +13044,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12862,6 +13075,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12886,7 +13102,13 @@ func awsAwsjson11_deserializeDocumentInvalidPasswordException(v **types.InvalidP sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12911,6 +13133,9 @@ func awsAwsjson11_deserializeDocumentInvalidPasswordException(v **types.InvalidP } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12935,7 +13160,13 @@ func awsAwsjson11_deserializeDocumentInvalidTargetException(v **types.InvalidTar sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12960,6 +13191,9 @@ func awsAwsjson11_deserializeDocumentInvalidTargetException(v **types.InvalidTar } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13112,7 +13346,13 @@ func awsAwsjson11_deserializeDocumentIpRouteLimitExceededException(v **types.IpR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13137,6 +13377,9 @@ func awsAwsjson11_deserializeDocumentIpRouteLimitExceededException(v **types.IpR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13393,7 +13636,13 @@ func awsAwsjson11_deserializeDocumentNoAvailableCertificateException(v **types.N sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13418,6 +13667,9 @@ func awsAwsjson11_deserializeDocumentNoAvailableCertificateException(v **types.N } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13442,7 +13694,13 @@ func awsAwsjson11_deserializeDocumentOrganizationsException(v **types.Organizati sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13467,6 +13725,9 @@ func awsAwsjson11_deserializeDocumentOrganizationsException(v **types.Organizati } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13848,7 +14109,13 @@ func awsAwsjson11_deserializeDocumentRegionLimitExceededException(v **types.Regi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13873,6 +14140,9 @@ func awsAwsjson11_deserializeDocumentRegionLimitExceededException(v **types.Regi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14154,7 +14424,13 @@ func awsAwsjson11_deserializeDocumentServiceException(v **types.ServiceException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14179,6 +14455,9 @@ func awsAwsjson11_deserializeDocumentServiceException(v **types.ServiceException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14537,7 +14816,13 @@ func awsAwsjson11_deserializeDocumentShareLimitExceededException(v **types.Share sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14562,6 +14847,9 @@ func awsAwsjson11_deserializeDocumentShareLimitExceededException(v **types.Share } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14678,7 +14966,13 @@ func awsAwsjson11_deserializeDocumentSnapshotLimitExceededException(v **types.Sn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14703,6 +14997,9 @@ func awsAwsjson11_deserializeDocumentSnapshotLimitExceededException(v **types.Sn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14912,7 +15209,13 @@ func awsAwsjson11_deserializeDocumentTagLimitExceededException(v **types.TagLimi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14937,6 +15240,9 @@ func awsAwsjson11_deserializeDocumentTagLimitExceededException(v **types.TagLimi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15180,7 +15486,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15205,6 +15517,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15229,7 +15544,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedSettingsException(v **types.Unsu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15254,6 +15575,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedSettingsException(v **types.Unsu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15457,7 +15781,13 @@ func awsAwsjson11_deserializeDocumentUserDoesNotExistException(v **types.UserDoe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15482,6 +15812,9 @@ func awsAwsjson11_deserializeDocumentUserDoesNotExistException(v **types.UserDoe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/directoryservicedata/deserializers.go b/service/directoryservicedata/deserializers.go index 64f8fdc5dac..f96bd371caf 100644 --- a/service/directoryservicedata/deserializers.go +++ b/service/directoryservicedata/deserializers.go @@ -3099,7 +3099,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3124,6 +3130,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3260,7 +3269,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3276,6 +3291,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3300,7 +3318,13 @@ func awsRestjson1_deserializeDocumentDirectoryUnavailableException(v **types.Dir sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3325,6 +3349,9 @@ func awsRestjson1_deserializeDocumentDirectoryUnavailableException(v **types.Dir } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3565,7 +3592,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3581,6 +3614,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3697,7 +3733,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3713,6 +3755,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3773,7 +3818,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3802,6 +3853,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4078,7 +4132,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4103,6 +4163,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/dlm/deserializers.go b/service/dlm/deserializers.go index 8211cc22e96..49d231c7bdd 100644 --- a/service/dlm/deserializers.go +++ b/service/dlm/deserializers.go @@ -2302,7 +2302,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -2327,6 +2333,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2351,7 +2360,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -2386,6 +2401,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2655,7 +2673,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -2689,6 +2713,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3022,7 +3049,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -3061,6 +3094,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/docdbelastic/deserializers.go b/service/docdbelastic/deserializers.go index da3ba4c0158..6dd189f0e8a 100644 --- a/service/docdbelastic/deserializers.go +++ b/service/docdbelastic/deserializers.go @@ -3355,7 +3355,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3371,6 +3377,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3907,7 +3916,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3941,6 +3956,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3965,7 +3983,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3981,6 +4005,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4124,7 +4151,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4158,6 +4191,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4261,7 +4297,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4277,6 +4319,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4465,7 +4510,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4494,6 +4545,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4518,7 +4572,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -4548,6 +4608,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/drs/deserializers.go b/service/drs/deserializers.go index fa04ec3c086..e0fe77c7d4d 100644 --- a/service/drs/deserializers.go +++ b/service/drs/deserializers.go @@ -8956,7 +8956,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -8981,6 +8987,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9079,7 +9088,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -9122,6 +9137,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10018,7 +10036,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10047,6 +10071,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13152,7 +13179,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -13195,6 +13228,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13219,7 +13255,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -13280,6 +13322,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14048,7 +14093,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14091,6 +14142,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14115,7 +14169,13 @@ func awsRestjson1_deserializeDocumentUninitializedAccountException(v **types.Uni sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -14140,6 +14200,9 @@ func awsRestjson1_deserializeDocumentUninitializedAccountException(v **types.Uni } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14164,7 +14227,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -14203,6 +14272,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/dynamodb/deserializers.go b/service/dynamodb/deserializers.go index 2ef4bf22c1d..ebb0df9fb54 100644 --- a/service/dynamodb/deserializers.go +++ b/service/dynamodb/deserializers.go @@ -8838,7 +8838,13 @@ func awsAwsjson10_deserializeDocumentBackupInUseException(v **types.BackupInUseE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8854,6 +8860,9 @@ func awsAwsjson10_deserializeDocumentBackupInUseException(v **types.BackupInUseE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8878,7 +8887,13 @@ func awsAwsjson10_deserializeDocumentBackupNotFoundException(v **types.BackupNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8894,6 +8909,9 @@ func awsAwsjson10_deserializeDocumentBackupNotFoundException(v **types.BackupNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9615,7 +9633,13 @@ func awsAwsjson10_deserializeDocumentConditionalCheckFailedException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Item": if err := awsAwsjson10_deserializeDocumentAttributeMap(&sv.Item, value); err != nil { @@ -9636,6 +9660,9 @@ func awsAwsjson10_deserializeDocumentConditionalCheckFailedException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9896,7 +9923,13 @@ func awsAwsjson10_deserializeDocumentContinuousBackupsUnavailableException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9912,6 +9945,9 @@ func awsAwsjson10_deserializeDocumentContinuousBackupsUnavailableException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10181,7 +10217,13 @@ func awsAwsjson10_deserializeDocumentDuplicateItemException(v **types.DuplicateI sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10197,6 +10239,9 @@ func awsAwsjson10_deserializeDocumentDuplicateItemException(v **types.DuplicateI } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10348,7 +10393,13 @@ func awsAwsjson10_deserializeDocumentExportConflictException(v **types.ExportCon sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10364,6 +10415,9 @@ func awsAwsjson10_deserializeDocumentExportConflictException(v **types.ExportCon } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10633,7 +10687,13 @@ func awsAwsjson10_deserializeDocumentExportNotFoundException(v **types.ExportNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10649,6 +10709,9 @@ func awsAwsjson10_deserializeDocumentExportNotFoundException(v **types.ExportNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11230,7 +11293,13 @@ func awsAwsjson10_deserializeDocumentGlobalTableAlreadyExistsException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11246,6 +11315,9 @@ func awsAwsjson10_deserializeDocumentGlobalTableAlreadyExistsException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11383,7 +11455,13 @@ func awsAwsjson10_deserializeDocumentGlobalTableNotFoundException(v **types.Glob sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11399,6 +11477,9 @@ func awsAwsjson10_deserializeDocumentGlobalTableNotFoundException(v **types.Glob } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11423,7 +11504,13 @@ func awsAwsjson10_deserializeDocumentIdempotentParameterMismatchException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11439,6 +11526,9 @@ func awsAwsjson10_deserializeDocumentIdempotentParameterMismatchException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11463,7 +11553,13 @@ func awsAwsjson10_deserializeDocumentImportConflictException(v **types.ImportCon sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11479,6 +11575,9 @@ func awsAwsjson10_deserializeDocumentImportConflictException(v **types.ImportCon } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11503,7 +11602,13 @@ func awsAwsjson10_deserializeDocumentImportNotFoundException(v **types.ImportNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11519,6 +11624,9 @@ func awsAwsjson10_deserializeDocumentImportNotFoundException(v **types.ImportNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11982,7 +12090,13 @@ func awsAwsjson10_deserializeDocumentIndexNotFoundException(v **types.IndexNotFo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11998,6 +12112,9 @@ func awsAwsjson10_deserializeDocumentIndexNotFoundException(v **types.IndexNotFo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12058,7 +12175,13 @@ func awsAwsjson10_deserializeDocumentInternalServerError(v **types.InternalServe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12074,6 +12197,9 @@ func awsAwsjson10_deserializeDocumentInternalServerError(v **types.InternalServe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12098,7 +12224,13 @@ func awsAwsjson10_deserializeDocumentInvalidEndpointException(v **types.InvalidE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12114,6 +12246,9 @@ func awsAwsjson10_deserializeDocumentInvalidEndpointException(v **types.InvalidE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12138,7 +12273,13 @@ func awsAwsjson10_deserializeDocumentInvalidExportTimeException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12154,6 +12295,9 @@ func awsAwsjson10_deserializeDocumentInvalidExportTimeException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12178,7 +12322,13 @@ func awsAwsjson10_deserializeDocumentInvalidRestoreTimeException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12194,6 +12344,9 @@ func awsAwsjson10_deserializeDocumentInvalidRestoreTimeException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12422,7 +12575,13 @@ func awsAwsjson10_deserializeDocumentItemCollectionSizeLimitExceededException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12438,6 +12597,9 @@ func awsAwsjson10_deserializeDocumentItemCollectionSizeLimitExceededException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12878,7 +13040,13 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12894,6 +13062,9 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13466,7 +13637,13 @@ func awsAwsjson10_deserializeDocumentPointInTimeRecoveryUnavailableException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13482,6 +13659,9 @@ func awsAwsjson10_deserializeDocumentPointInTimeRecoveryUnavailableException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13506,7 +13686,13 @@ func awsAwsjson10_deserializeDocumentPolicyNotFoundException(v **types.PolicyNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13522,6 +13708,9 @@ func awsAwsjson10_deserializeDocumentPolicyNotFoundException(v **types.PolicyNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13750,7 +13939,13 @@ func awsAwsjson10_deserializeDocumentProvisionedThroughputExceededException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13766,6 +13961,9 @@ func awsAwsjson10_deserializeDocumentProvisionedThroughputExceededException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13944,7 +14142,13 @@ func awsAwsjson10_deserializeDocumentReplicaAlreadyExistsException(v **types.Rep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13960,6 +14164,9 @@ func awsAwsjson10_deserializeDocumentReplicaAlreadyExistsException(v **types.Rep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14558,7 +14765,13 @@ func awsAwsjson10_deserializeDocumentReplicaNotFoundException(v **types.ReplicaN sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14574,6 +14787,9 @@ func awsAwsjson10_deserializeDocumentReplicaNotFoundException(v **types.ReplicaN } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14732,7 +14948,13 @@ func awsAwsjson10_deserializeDocumentRequestLimitExceeded(v **types.RequestLimit sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14748,6 +14970,9 @@ func awsAwsjson10_deserializeDocumentRequestLimitExceeded(v **types.RequestLimit } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14772,7 +14997,13 @@ func awsAwsjson10_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14788,6 +15019,9 @@ func awsAwsjson10_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14812,7 +15046,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14828,6 +15068,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15416,7 +15659,13 @@ func awsAwsjson10_deserializeDocumentTableAlreadyExistsException(v **types.Table sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15432,6 +15681,9 @@ func awsAwsjson10_deserializeDocumentTableAlreadyExistsException(v **types.Table } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15855,7 +16107,13 @@ func awsAwsjson10_deserializeDocumentTableInUseException(v **types.TableInUseExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15871,6 +16129,9 @@ func awsAwsjson10_deserializeDocumentTableInUseException(v **types.TableInUseExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15931,7 +16192,13 @@ func awsAwsjson10_deserializeDocumentTableNotFoundException(v **types.TableNotFo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15947,6 +16214,9 @@ func awsAwsjson10_deserializeDocumentTableNotFoundException(v **types.TableNotFo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16152,7 +16422,13 @@ func awsAwsjson10_deserializeDocumentTransactionCanceledException(v **types.Tran sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "CancellationReasons": if err := awsAwsjson10_deserializeDocumentCancellationReasonList(&sv.CancellationReasons, value); err != nil { @@ -16173,6 +16449,9 @@ func awsAwsjson10_deserializeDocumentTransactionCanceledException(v **types.Tran } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16197,7 +16476,13 @@ func awsAwsjson10_deserializeDocumentTransactionConflictException(v **types.Tran sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16213,6 +16498,9 @@ func awsAwsjson10_deserializeDocumentTransactionConflictException(v **types.Tran } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16237,7 +16525,13 @@ func awsAwsjson10_deserializeDocumentTransactionInProgressException(v **types.Tr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16253,6 +16547,9 @@ func awsAwsjson10_deserializeDocumentTransactionInProgressException(v **types.Tr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/dynamodbstreams/deserializers.go b/service/dynamodbstreams/deserializers.go index 8cb3716edba..053158db9f2 100644 --- a/service/dynamodbstreams/deserializers.go +++ b/service/dynamodbstreams/deserializers.go @@ -901,7 +901,13 @@ func awsAwsjson10_deserializeDocumentExpiredIteratorException(v **types.ExpiredI sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -917,6 +923,9 @@ func awsAwsjson10_deserializeDocumentExpiredIteratorException(v **types.ExpiredI } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -990,7 +999,13 @@ func awsAwsjson10_deserializeDocumentInternalServerError(v **types.InternalServe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1006,6 +1021,9 @@ func awsAwsjson10_deserializeDocumentInternalServerError(v **types.InternalServe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1113,7 +1131,13 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1129,6 +1153,9 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1375,7 +1402,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1391,6 +1424,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1884,7 +1920,13 @@ func awsAwsjson10_deserializeDocumentTrimmedDataAccessException(v **types.Trimme sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1900,6 +1942,9 @@ func awsAwsjson10_deserializeDocumentTrimmedDataAccessException(v **types.Trimme } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/ebs/deserializers.go b/service/ebs/deserializers.go index fd526d54cce..81530f5e043 100644 --- a/service/ebs/deserializers.go +++ b/service/ebs/deserializers.go @@ -1497,7 +1497,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1522,6 +1528,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1729,7 +1738,13 @@ func awsRestjson1_deserializeDocumentConcurrentLimitExceededException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1745,6 +1760,9 @@ func awsRestjson1_deserializeDocumentConcurrentLimitExceededException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1769,7 +1787,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1785,6 +1809,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1809,7 +1836,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1825,6 +1858,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1849,7 +1885,13 @@ func awsRestjson1_deserializeDocumentRequestThrottledException(v **types.Request sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1874,6 +1916,9 @@ func awsRestjson1_deserializeDocumentRequestThrottledException(v **types.Request } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1898,7 +1943,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1923,6 +1974,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1947,7 +2001,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1972,6 +2032,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2079,7 +2142,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2104,6 +2173,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/ec2instanceconnect/deserializers.go b/service/ec2instanceconnect/deserializers.go index d88f05962c1..dfd8c51bbe1 100644 --- a/service/ec2instanceconnect/deserializers.go +++ b/service/ec2instanceconnect/deserializers.go @@ -742,7 +742,13 @@ func awsAwsjson11_deserializeDocumentAuthException(v **types.AuthException, valu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -758,6 +764,9 @@ func awsAwsjson11_deserializeDocumentAuthException(v **types.AuthException, valu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -782,7 +791,13 @@ func awsAwsjson11_deserializeDocumentEC2InstanceNotFoundException(v **types.EC2I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -798,6 +813,9 @@ func awsAwsjson11_deserializeDocumentEC2InstanceNotFoundException(v **types.EC2I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -822,7 +840,13 @@ func awsAwsjson11_deserializeDocumentEC2InstanceStateInvalidException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -838,6 +862,9 @@ func awsAwsjson11_deserializeDocumentEC2InstanceStateInvalidException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -862,7 +889,13 @@ func awsAwsjson11_deserializeDocumentEC2InstanceTypeInvalidException(v **types.E sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -878,6 +911,9 @@ func awsAwsjson11_deserializeDocumentEC2InstanceTypeInvalidException(v **types.E } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -902,7 +938,13 @@ func awsAwsjson11_deserializeDocumentEC2InstanceUnavailableException(v **types.E sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -918,6 +960,9 @@ func awsAwsjson11_deserializeDocumentEC2InstanceUnavailableException(v **types.E } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -942,7 +987,13 @@ func awsAwsjson11_deserializeDocumentInvalidArgsException(v **types.InvalidArgsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -958,6 +1009,9 @@ func awsAwsjson11_deserializeDocumentInvalidArgsException(v **types.InvalidArgsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -982,7 +1036,13 @@ func awsAwsjson11_deserializeDocumentSerialConsoleAccessDisabledException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -998,6 +1058,9 @@ func awsAwsjson11_deserializeDocumentSerialConsoleAccessDisabledException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1022,7 +1085,13 @@ func awsAwsjson11_deserializeDocumentSerialConsoleSessionLimitExceededException( sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1038,6 +1107,9 @@ func awsAwsjson11_deserializeDocumentSerialConsoleSessionLimitExceededException( } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1062,7 +1134,13 @@ func awsAwsjson11_deserializeDocumentSerialConsoleSessionUnavailableException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1078,6 +1156,9 @@ func awsAwsjson11_deserializeDocumentSerialConsoleSessionUnavailableException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1102,7 +1183,13 @@ func awsAwsjson11_deserializeDocumentSerialConsoleSessionUnsupportedException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1118,6 +1205,9 @@ func awsAwsjson11_deserializeDocumentSerialConsoleSessionUnsupportedException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1142,7 +1232,13 @@ func awsAwsjson11_deserializeDocumentServiceException(v **types.ServiceException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1158,6 +1254,9 @@ func awsAwsjson11_deserializeDocumentServiceException(v **types.ServiceException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1182,7 +1281,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1198,6 +1303,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/ecr/deserializers.go b/service/ecr/deserializers.go index fb92e5f4dbf..f46f19caae4 100644 --- a/service/ecr/deserializers.go +++ b/service/ecr/deserializers.go @@ -8005,7 +8005,13 @@ func awsAwsjson11_deserializeDocumentEmptyUploadException(v **types.EmptyUploadE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8021,6 +8027,9 @@ func awsAwsjson11_deserializeDocumentEmptyUploadException(v **types.EmptyUploadE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8503,7 +8512,13 @@ func awsAwsjson11_deserializeDocumentImageAlreadyExistsException(v **types.Image sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8519,6 +8534,9 @@ func awsAwsjson11_deserializeDocumentImageAlreadyExistsException(v **types.Image } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8713,7 +8731,13 @@ func awsAwsjson11_deserializeDocumentImageDigestDoesNotMatchException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8729,6 +8753,9 @@ func awsAwsjson11_deserializeDocumentImageDigestDoesNotMatchException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8958,7 +8985,13 @@ func awsAwsjson11_deserializeDocumentImageNotFoundException(v **types.ImageNotFo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8974,6 +9007,9 @@ func awsAwsjson11_deserializeDocumentImageNotFoundException(v **types.ImageNotFo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9440,7 +9476,13 @@ func awsAwsjson11_deserializeDocumentImageTagAlreadyExistsException(v **types.Im sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9456,6 +9498,9 @@ func awsAwsjson11_deserializeDocumentImageTagAlreadyExistsException(v **types.Im } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9552,7 +9597,13 @@ func awsAwsjson11_deserializeDocumentInvalidLayerException(v **types.InvalidLaye sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9568,6 +9619,9 @@ func awsAwsjson11_deserializeDocumentInvalidLayerException(v **types.InvalidLaye } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9592,7 +9646,13 @@ func awsAwsjson11_deserializeDocumentInvalidLayerPartException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "lastValidByteReceived": if value != nil { @@ -9648,6 +9708,9 @@ func awsAwsjson11_deserializeDocumentInvalidLayerPartException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9672,7 +9735,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9688,6 +9757,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9712,7 +9784,13 @@ func awsAwsjson11_deserializeDocumentInvalidTagParameterException(v **types.Inva sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9728,6 +9806,9 @@ func awsAwsjson11_deserializeDocumentInvalidTagParameterException(v **types.Inva } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9752,7 +9833,13 @@ func awsAwsjson11_deserializeDocumentKmsException(v **types.KmsException, value sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "kmsError": if value != nil { @@ -9777,6 +9864,9 @@ func awsAwsjson11_deserializeDocumentKmsException(v **types.KmsException, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9872,7 +9962,13 @@ func awsAwsjson11_deserializeDocumentLayerAlreadyExistsException(v **types.Layer sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9888,6 +9984,9 @@ func awsAwsjson11_deserializeDocumentLayerAlreadyExistsException(v **types.Layer } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10004,7 +10103,13 @@ func awsAwsjson11_deserializeDocumentLayerInaccessibleException(v **types.LayerI sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10020,6 +10125,9 @@ func awsAwsjson11_deserializeDocumentLayerInaccessibleException(v **types.LayerI } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10078,7 +10186,13 @@ func awsAwsjson11_deserializeDocumentLayerPartTooSmallException(v **types.LayerP sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10094,6 +10208,9 @@ func awsAwsjson11_deserializeDocumentLayerPartTooSmallException(v **types.LayerP } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10118,7 +10235,13 @@ func awsAwsjson11_deserializeDocumentLayersNotFoundException(v **types.LayersNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10134,6 +10257,9 @@ func awsAwsjson11_deserializeDocumentLayersNotFoundException(v **types.LayersNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10158,7 +10284,13 @@ func awsAwsjson11_deserializeDocumentLifecyclePolicyNotFoundException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10174,6 +10306,9 @@ func awsAwsjson11_deserializeDocumentLifecyclePolicyNotFoundException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10198,7 +10333,13 @@ func awsAwsjson11_deserializeDocumentLifecyclePolicyPreviewInProgressException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10214,6 +10355,9 @@ func awsAwsjson11_deserializeDocumentLifecyclePolicyPreviewInProgressException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10238,7 +10382,13 @@ func awsAwsjson11_deserializeDocumentLifecyclePolicyPreviewNotFoundException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10254,6 +10404,9 @@ func awsAwsjson11_deserializeDocumentLifecyclePolicyPreviewNotFoundException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10475,7 +10628,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10491,6 +10650,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10742,7 +10904,13 @@ func awsAwsjson11_deserializeDocumentPullThroughCacheRuleAlreadyExistsException( sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10758,6 +10926,9 @@ func awsAwsjson11_deserializeDocumentPullThroughCacheRuleAlreadyExistsException( } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10816,7 +10987,13 @@ func awsAwsjson11_deserializeDocumentPullThroughCacheRuleNotFoundException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10832,6 +11009,9 @@ func awsAwsjson11_deserializeDocumentPullThroughCacheRuleNotFoundException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10941,7 +11121,13 @@ func awsAwsjson11_deserializeDocumentReferencedImagesNotFoundException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10957,6 +11143,9 @@ func awsAwsjson11_deserializeDocumentReferencedImagesNotFoundException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11017,7 +11206,13 @@ func awsAwsjson11_deserializeDocumentRegistryPolicyNotFoundException(v **types.R sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11033,6 +11228,9 @@ func awsAwsjson11_deserializeDocumentRegistryPolicyNotFoundException(v **types.R } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11549,7 +11747,13 @@ func awsAwsjson11_deserializeDocumentRepositoryAlreadyExistsException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11565,6 +11769,9 @@ func awsAwsjson11_deserializeDocumentRepositoryAlreadyExistsException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11872,7 +12079,13 @@ func awsAwsjson11_deserializeDocumentRepositoryNotEmptyException(v **types.Repos sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11888,6 +12101,9 @@ func awsAwsjson11_deserializeDocumentRepositoryNotEmptyException(v **types.Repos } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11912,7 +12128,13 @@ func awsAwsjson11_deserializeDocumentRepositoryNotFoundException(v **types.Repos sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11928,6 +12150,9 @@ func awsAwsjson11_deserializeDocumentRepositoryNotFoundException(v **types.Repos } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11952,7 +12177,13 @@ func awsAwsjson11_deserializeDocumentRepositoryPolicyNotFoundException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11968,6 +12199,9 @@ func awsAwsjson11_deserializeDocumentRepositoryPolicyNotFoundException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12402,7 +12636,13 @@ func awsAwsjson11_deserializeDocumentScanNotFoundException(v **types.ScanNotFoun sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12418,6 +12658,9 @@ func awsAwsjson11_deserializeDocumentScanNotFoundException(v **types.ScanNotFoun } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12478,7 +12721,13 @@ func awsAwsjson11_deserializeDocumentSecretNotFoundException(v **types.SecretNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12494,6 +12743,9 @@ func awsAwsjson11_deserializeDocumentSecretNotFoundException(v **types.SecretNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12518,7 +12770,13 @@ func awsAwsjson11_deserializeDocumentServerException(v **types.ServerException, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12534,6 +12792,9 @@ func awsAwsjson11_deserializeDocumentServerException(v **types.ServerException, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12677,7 +12938,13 @@ func awsAwsjson11_deserializeDocumentTemplateAlreadyExistsException(v **types.Te sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12693,6 +12960,9 @@ func awsAwsjson11_deserializeDocumentTemplateAlreadyExistsException(v **types.Te } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12717,7 +12987,13 @@ func awsAwsjson11_deserializeDocumentTemplateNotFoundException(v **types.Templat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12733,6 +13009,9 @@ func awsAwsjson11_deserializeDocumentTemplateNotFoundException(v **types.Templat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12757,7 +13036,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12773,6 +13058,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12797,7 +13085,13 @@ func awsAwsjson11_deserializeDocumentUnableToAccessSecretException(v **types.Una sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12813,6 +13107,9 @@ func awsAwsjson11_deserializeDocumentUnableToAccessSecretException(v **types.Una } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12837,7 +13134,13 @@ func awsAwsjson11_deserializeDocumentUnableToDecryptSecretValueException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12853,6 +13156,9 @@ func awsAwsjson11_deserializeDocumentUnableToDecryptSecretValueException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12877,7 +13183,13 @@ func awsAwsjson11_deserializeDocumentUnableToGetUpstreamImageException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12893,6 +13205,9 @@ func awsAwsjson11_deserializeDocumentUnableToGetUpstreamImageException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12917,7 +13232,13 @@ func awsAwsjson11_deserializeDocumentUnableToGetUpstreamLayerException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12933,6 +13254,9 @@ func awsAwsjson11_deserializeDocumentUnableToGetUpstreamLayerException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12957,7 +13281,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedImageTypeException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12973,6 +13303,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedImageTypeException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12997,7 +13330,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedUpstreamRegistryException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13013,6 +13352,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedUpstreamRegistryException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13037,7 +13379,13 @@ func awsAwsjson11_deserializeDocumentUploadNotFoundException(v **types.UploadNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13053,6 +13401,9 @@ func awsAwsjson11_deserializeDocumentUploadNotFoundException(v **types.UploadNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13077,7 +13428,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13093,6 +13450,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/ecrpublic/deserializers.go b/service/ecrpublic/deserializers.go index f352ab62dfe..33f85ea6823 100644 --- a/service/ecrpublic/deserializers.go +++ b/service/ecrpublic/deserializers.go @@ -3819,7 +3819,13 @@ func awsAwsjson11_deserializeDocumentEmptyUploadException(v **types.EmptyUploadE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3835,6 +3841,9 @@ func awsAwsjson11_deserializeDocumentEmptyUploadException(v **types.EmptyUploadE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3931,7 +3940,13 @@ func awsAwsjson11_deserializeDocumentImageAlreadyExistsException(v **types.Image sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3947,6 +3962,9 @@ func awsAwsjson11_deserializeDocumentImageAlreadyExistsException(v **types.Image } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4115,7 +4133,13 @@ func awsAwsjson11_deserializeDocumentImageDigestDoesNotMatchException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4131,6 +4155,9 @@ func awsAwsjson11_deserializeDocumentImageDigestDoesNotMatchException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4326,7 +4353,13 @@ func awsAwsjson11_deserializeDocumentImageNotFoundException(v **types.ImageNotFo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4342,6 +4375,9 @@ func awsAwsjson11_deserializeDocumentImageNotFoundException(v **types.ImageNotFo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4366,7 +4402,13 @@ func awsAwsjson11_deserializeDocumentImageTagAlreadyExistsException(v **types.Im sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4382,6 +4424,9 @@ func awsAwsjson11_deserializeDocumentImageTagAlreadyExistsException(v **types.Im } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4537,7 +4582,13 @@ func awsAwsjson11_deserializeDocumentInvalidLayerException(v **types.InvalidLaye sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4553,6 +4604,9 @@ func awsAwsjson11_deserializeDocumentInvalidLayerException(v **types.InvalidLaye } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4577,7 +4631,13 @@ func awsAwsjson11_deserializeDocumentInvalidLayerPartException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "lastValidByteReceived": if value != nil { @@ -4633,6 +4693,9 @@ func awsAwsjson11_deserializeDocumentInvalidLayerPartException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4657,7 +4720,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4673,6 +4742,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4697,7 +4769,13 @@ func awsAwsjson11_deserializeDocumentInvalidTagParameterException(v **types.Inva sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4713,6 +4791,9 @@ func awsAwsjson11_deserializeDocumentInvalidTagParameterException(v **types.Inva } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4808,7 +4889,13 @@ func awsAwsjson11_deserializeDocumentLayerAlreadyExistsException(v **types.Layer sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4824,6 +4911,9 @@ func awsAwsjson11_deserializeDocumentLayerAlreadyExistsException(v **types.Layer } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4974,7 +5064,13 @@ func awsAwsjson11_deserializeDocumentLayerPartTooSmallException(v **types.LayerP sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4990,6 +5086,9 @@ func awsAwsjson11_deserializeDocumentLayerPartTooSmallException(v **types.LayerP } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5014,7 +5113,13 @@ func awsAwsjson11_deserializeDocumentLayersNotFoundException(v **types.LayersNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5030,6 +5135,9 @@ func awsAwsjson11_deserializeDocumentLayersNotFoundException(v **types.LayersNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5054,7 +5162,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5070,6 +5184,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5217,7 +5334,13 @@ func awsAwsjson11_deserializeDocumentReferencedImagesNotFoundException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5233,6 +5356,9 @@ func awsAwsjson11_deserializeDocumentReferencedImagesNotFoundException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5504,7 +5630,13 @@ func awsAwsjson11_deserializeDocumentRegistryNotFoundException(v **types.Registr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5520,6 +5652,9 @@ func awsAwsjson11_deserializeDocumentRegistryNotFoundException(v **types.Registr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5627,7 +5762,13 @@ func awsAwsjson11_deserializeDocumentRepositoryAlreadyExistsException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5643,6 +5784,9 @@ func awsAwsjson11_deserializeDocumentRepositoryAlreadyExistsException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5753,7 +5897,13 @@ func awsAwsjson11_deserializeDocumentRepositoryCatalogDataNotFoundException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5769,6 +5919,9 @@ func awsAwsjson11_deserializeDocumentRepositoryCatalogDataNotFoundException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5827,7 +5980,13 @@ func awsAwsjson11_deserializeDocumentRepositoryNotEmptyException(v **types.Repos sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5843,6 +6002,9 @@ func awsAwsjson11_deserializeDocumentRepositoryNotEmptyException(v **types.Repos } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5867,7 +6029,13 @@ func awsAwsjson11_deserializeDocumentRepositoryNotFoundException(v **types.Repos sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5883,6 +6051,9 @@ func awsAwsjson11_deserializeDocumentRepositoryNotFoundException(v **types.Repos } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5907,7 +6078,13 @@ func awsAwsjson11_deserializeDocumentRepositoryPolicyNotFoundException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5923,6 +6100,9 @@ func awsAwsjson11_deserializeDocumentRepositoryPolicyNotFoundException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5947,7 +6127,13 @@ func awsAwsjson11_deserializeDocumentServerException(v **types.ServerException, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5963,6 +6149,9 @@ func awsAwsjson11_deserializeDocumentServerException(v **types.ServerException, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6070,7 +6259,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6086,6 +6281,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6110,7 +6308,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedCommandException(v **types.Unsup sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6126,6 +6330,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedCommandException(v **types.Unsup } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6150,7 +6357,13 @@ func awsAwsjson11_deserializeDocumentUploadNotFoundException(v **types.UploadNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6166,6 +6379,9 @@ func awsAwsjson11_deserializeDocumentUploadNotFoundException(v **types.UploadNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/efs/deserializers.go b/service/efs/deserializers.go index 083e9cf68d0..9ed3ce4230a 100644 --- a/service/efs/deserializers.go +++ b/service/efs/deserializers.go @@ -6381,7 +6381,13 @@ func awsRestjson1_deserializeDocumentAccessPointAlreadyExists(v **types.AccessPo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "AccessPointId": if value != nil { @@ -6415,6 +6421,9 @@ func awsRestjson1_deserializeDocumentAccessPointAlreadyExists(v **types.AccessPo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6582,7 +6591,13 @@ func awsRestjson1_deserializeDocumentAccessPointLimitExceeded(v **types.AccessPo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -6607,6 +6622,9 @@ func awsRestjson1_deserializeDocumentAccessPointLimitExceeded(v **types.AccessPo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6631,7 +6649,13 @@ func awsRestjson1_deserializeDocumentAccessPointNotFound(v **types.AccessPointNo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -6656,6 +6680,9 @@ func awsRestjson1_deserializeDocumentAccessPointNotFound(v **types.AccessPointNo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6680,7 +6707,13 @@ func awsRestjson1_deserializeDocumentAvailabilityZonesMismatch(v **types.Availab sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -6705,6 +6738,9 @@ func awsRestjson1_deserializeDocumentAvailabilityZonesMismatch(v **types.Availab } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6769,7 +6805,13 @@ func awsRestjson1_deserializeDocumentBadRequest(v **types.BadRequest, value inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -6794,6 +6836,9 @@ func awsRestjson1_deserializeDocumentBadRequest(v **types.BadRequest, value inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6818,7 +6863,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -6843,6 +6894,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6933,7 +6987,13 @@ func awsRestjson1_deserializeDocumentDependencyTimeout(v **types.DependencyTimeo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -6958,6 +7018,9 @@ func awsRestjson1_deserializeDocumentDependencyTimeout(v **types.DependencyTimeo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7090,7 +7153,13 @@ func awsRestjson1_deserializeDocumentFileSystemAlreadyExists(v **types.FileSyste sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -7124,6 +7193,9 @@ func awsRestjson1_deserializeDocumentFileSystemAlreadyExists(v **types.FileSyste } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7399,7 +7471,13 @@ func awsRestjson1_deserializeDocumentFileSystemInUse(v **types.FileSystemInUse, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -7424,6 +7502,9 @@ func awsRestjson1_deserializeDocumentFileSystemInUse(v **types.FileSystemInUse, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7448,7 +7529,13 @@ func awsRestjson1_deserializeDocumentFileSystemLimitExceeded(v **types.FileSyste sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -7473,6 +7560,9 @@ func awsRestjson1_deserializeDocumentFileSystemLimitExceeded(v **types.FileSyste } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7497,7 +7587,13 @@ func awsRestjson1_deserializeDocumentFileSystemNotFound(v **types.FileSystemNotF sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -7522,6 +7618,9 @@ func awsRestjson1_deserializeDocumentFileSystemNotFound(v **types.FileSystemNotF } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7685,7 +7784,13 @@ func awsRestjson1_deserializeDocumentIncorrectFileSystemLifeCycleState(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -7710,6 +7815,9 @@ func awsRestjson1_deserializeDocumentIncorrectFileSystemLifeCycleState(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7734,7 +7842,13 @@ func awsRestjson1_deserializeDocumentIncorrectMountTargetState(v **types.Incorre sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -7759,6 +7873,9 @@ func awsRestjson1_deserializeDocumentIncorrectMountTargetState(v **types.Incorre } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7783,7 +7900,13 @@ func awsRestjson1_deserializeDocumentInsufficientThroughputCapacity(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -7808,6 +7931,9 @@ func awsRestjson1_deserializeDocumentInsufficientThroughputCapacity(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7832,7 +7958,13 @@ func awsRestjson1_deserializeDocumentInternalServerError(v **types.InternalServe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -7857,6 +7989,9 @@ func awsRestjson1_deserializeDocumentInternalServerError(v **types.InternalServe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7881,7 +8016,13 @@ func awsRestjson1_deserializeDocumentInvalidPolicyException(v **types.InvalidPol sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -7906,6 +8047,9 @@ func awsRestjson1_deserializeDocumentInvalidPolicyException(v **types.InvalidPol } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7930,7 +8074,13 @@ func awsRestjson1_deserializeDocumentIpAddressInUse(v **types.IpAddressInUse, va sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -7955,6 +8105,9 @@ func awsRestjson1_deserializeDocumentIpAddressInUse(v **types.IpAddressInUse, va } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8071,7 +8224,13 @@ func awsRestjson1_deserializeDocumentMountTargetConflict(v **types.MountTargetCo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -8096,6 +8255,9 @@ func awsRestjson1_deserializeDocumentMountTargetConflict(v **types.MountTargetCo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8275,7 +8437,13 @@ func awsRestjson1_deserializeDocumentMountTargetNotFound(v **types.MountTargetNo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -8300,6 +8468,9 @@ func awsRestjson1_deserializeDocumentMountTargetNotFound(v **types.MountTargetNo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8324,7 +8495,13 @@ func awsRestjson1_deserializeDocumentNetworkInterfaceLimitExceeded(v **types.Net sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -8349,6 +8526,9 @@ func awsRestjson1_deserializeDocumentNetworkInterfaceLimitExceeded(v **types.Net } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8373,7 +8553,13 @@ func awsRestjson1_deserializeDocumentNoFreeAddressesInSubnet(v **types.NoFreeAdd sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -8398,6 +8584,9 @@ func awsRestjson1_deserializeDocumentNoFreeAddressesInSubnet(v **types.NoFreeAdd } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8422,7 +8611,13 @@ func awsRestjson1_deserializeDocumentPolicyNotFound(v **types.PolicyNotFound, va sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -8447,6 +8642,9 @@ func awsRestjson1_deserializeDocumentPolicyNotFound(v **types.PolicyNotFound, va } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8533,7 +8731,13 @@ func awsRestjson1_deserializeDocumentReplicationAlreadyExists(v **types.Replicat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -8558,6 +8762,9 @@ func awsRestjson1_deserializeDocumentReplicationAlreadyExists(v **types.Replicat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8704,7 +8911,13 @@ func awsRestjson1_deserializeDocumentReplicationNotFound(v **types.ReplicationNo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -8729,6 +8942,9 @@ func awsRestjson1_deserializeDocumentReplicationNotFound(v **types.ReplicationNo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8919,7 +9135,13 @@ func awsRestjson1_deserializeDocumentSecurityGroupLimitExceeded(v **types.Securi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -8944,6 +9166,9 @@ func awsRestjson1_deserializeDocumentSecurityGroupLimitExceeded(v **types.Securi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8968,7 +9193,13 @@ func awsRestjson1_deserializeDocumentSecurityGroupNotFound(v **types.SecurityGro sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -8993,6 +9224,9 @@ func awsRestjson1_deserializeDocumentSecurityGroupNotFound(v **types.SecurityGro } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9053,7 +9287,13 @@ func awsRestjson1_deserializeDocumentSubnetNotFound(v **types.SubnetNotFound, va sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -9078,6 +9318,9 @@ func awsRestjson1_deserializeDocumentSubnetNotFound(v **types.SubnetNotFound, va } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9185,7 +9428,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -9210,6 +9459,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9234,7 +9486,13 @@ func awsRestjson1_deserializeDocumentThroughputLimitExceeded(v **types.Throughpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -9259,6 +9517,9 @@ func awsRestjson1_deserializeDocumentThroughputLimitExceeded(v **types.Throughpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9283,7 +9544,13 @@ func awsRestjson1_deserializeDocumentTooManyRequests(v **types.TooManyRequests, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -9308,6 +9575,9 @@ func awsRestjson1_deserializeDocumentTooManyRequests(v **types.TooManyRequests, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9332,7 +9602,13 @@ func awsRestjson1_deserializeDocumentUnsupportedAvailabilityZone(v **types.Unsup sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -9357,6 +9633,9 @@ func awsRestjson1_deserializeDocumentUnsupportedAvailabilityZone(v **types.Unsup } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9381,7 +9660,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -9406,6 +9691,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/eks/deserializers.go b/service/eks/deserializers.go index f824a001390..44c54350bdd 100644 --- a/service/eks/deserializers.go +++ b/service/eks/deserializers.go @@ -9610,7 +9610,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9626,6 +9632,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10697,7 +10706,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10713,6 +10728,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10777,7 +10795,13 @@ func awsRestjson1_deserializeDocumentClientException(v **types.ClientException, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "addonName": if value != nil { @@ -10829,6 +10853,9 @@ func awsRestjson1_deserializeDocumentClientException(v **types.ClientException, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12955,7 +12982,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "addonName": if value != nil { @@ -13016,6 +13049,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13040,7 +13076,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "addonName": if value != nil { @@ -13092,6 +13134,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13976,7 +14021,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13992,6 +14043,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14608,7 +14662,13 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "addonName": if value != nil { @@ -14651,6 +14711,9 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14675,7 +14738,13 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "clusterName": if value != nil { @@ -14718,6 +14787,9 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14742,7 +14814,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "addonName": if value != nil { @@ -14803,6 +14881,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14827,7 +14908,13 @@ func awsRestjson1_deserializeDocumentResourcePropagationDelayException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14843,6 +14930,9 @@ func awsRestjson1_deserializeDocumentResourcePropagationDelayException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14867,7 +14957,13 @@ func awsRestjson1_deserializeDocumentServerException(v **types.ServerException, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "addonName": if value != nil { @@ -14919,6 +15015,9 @@ func awsRestjson1_deserializeDocumentServerException(v **types.ServerException, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14943,7 +15042,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14959,6 +15064,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15147,7 +15255,13 @@ func awsRestjson1_deserializeDocumentUnsupportedAvailabilityZoneException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "clusterName": if value != nil { @@ -15186,6 +15300,9 @@ func awsRestjson1_deserializeDocumentUnsupportedAvailabilityZoneException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/eksauth/deserializers.go b/service/eksauth/deserializers.go index 1f69fcb7c3e..04a5c815d72 100644 --- a/service/eksauth/deserializers.go +++ b/service/eksauth/deserializers.go @@ -573,7 +573,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -589,6 +595,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -736,7 +745,13 @@ func awsRestjson1_deserializeDocumentExpiredTokenException(v **types.ExpiredToke sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -752,6 +767,9 @@ func awsRestjson1_deserializeDocumentExpiredTokenException(v **types.ExpiredToke } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -776,7 +794,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -792,6 +816,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -816,7 +843,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -832,6 +865,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -856,7 +892,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -872,6 +914,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -896,7 +941,13 @@ func awsRestjson1_deserializeDocumentInvalidTokenException(v **types.InvalidToke sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -912,6 +963,9 @@ func awsRestjson1_deserializeDocumentInvalidTokenException(v **types.InvalidToke } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -985,7 +1039,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1001,6 +1061,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1025,7 +1088,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1041,6 +1110,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1114,7 +1186,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1130,6 +1208,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/elasticinference/deserializers.go b/service/elasticinference/deserializers.go index aa61a89e6a7..c2cadf79622 100644 --- a/service/elasticinference/deserializers.go +++ b/service/elasticinference/deserializers.go @@ -1156,7 +1156,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1172,6 +1178,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1342,7 +1351,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1358,6 +1373,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1479,7 +1497,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1495,6 +1519,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/elasticsearchservice/deserializers.go b/service/elasticsearchservice/deserializers.go index 65673436f41..aeb2774762e 100644 --- a/service/elasticsearchservice/deserializers.go +++ b/service/elasticsearchservice/deserializers.go @@ -8738,7 +8738,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8754,6 +8760,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9639,7 +9648,13 @@ func awsRestjson1_deserializeDocumentBaseException(v **types.BaseException, valu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9655,6 +9670,9 @@ func awsRestjson1_deserializeDocumentBaseException(v **types.BaseException, valu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10332,7 +10350,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10348,6 +10372,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10372,7 +10399,13 @@ func awsRestjson1_deserializeDocumentDisabledOperationException(v **types.Disabl sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10388,6 +10421,9 @@ func awsRestjson1_deserializeDocumentDisabledOperationException(v **types.Disabl } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12139,7 +12175,13 @@ func awsRestjson1_deserializeDocumentInternalException(v **types.InternalExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12155,6 +12197,9 @@ func awsRestjson1_deserializeDocumentInternalException(v **types.InternalExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12179,7 +12224,13 @@ func awsRestjson1_deserializeDocumentInvalidPaginationTokenException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12195,6 +12246,9 @@ func awsRestjson1_deserializeDocumentInvalidPaginationTokenException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12219,7 +12273,13 @@ func awsRestjson1_deserializeDocumentInvalidTypeException(v **types.InvalidTypeE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12235,6 +12295,9 @@ func awsRestjson1_deserializeDocumentInvalidTypeException(v **types.InvalidTypeE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12295,7 +12358,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12311,6 +12380,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13793,7 +13865,13 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13809,6 +13887,9 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13833,7 +13914,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13849,6 +13936,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14779,7 +14869,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14795,6 +14891,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/elastictranscoder/deserializers.go b/service/elastictranscoder/deserializers.go index 425accdf779..3a0ff31977f 100644 --- a/service/elastictranscoder/deserializers.go +++ b/service/elastictranscoder/deserializers.go @@ -3017,7 +3017,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3033,6 +3039,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3959,7 +3968,13 @@ func awsRestjson1_deserializeDocumentIncompatibleVersionException(v **types.Inco sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3975,6 +3990,9 @@ func awsRestjson1_deserializeDocumentIncompatibleVersionException(v **types.Inco } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4044,7 +4062,13 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4060,6 +4084,9 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4751,7 +4778,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4767,6 +4800,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5678,7 +5714,13 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5694,6 +5736,9 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5718,7 +5763,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5734,6 +5785,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6016,7 +6070,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6032,6 +6092,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/emr/deserializers.go b/service/emr/deserializers.go index 6162f2791fe..359935dc072 100644 --- a/service/emr/deserializers.go +++ b/service/emr/deserializers.go @@ -10258,13 +10258,22 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10289,7 +10298,13 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10305,6 +10320,9 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10329,7 +10347,13 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -10354,6 +10378,9 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/emrcontainers/deserializers.go b/service/emrcontainers/deserializers.go index 6e75c8328b9..104e53074e1 100644 --- a/service/emrcontainers/deserializers.go +++ b/service/emrcontainers/deserializers.go @@ -4446,7 +4446,13 @@ func awsRestjson1_deserializeDocumentEKSRequestThrottledException(v **types.EKSR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4462,6 +4468,9 @@ func awsRestjson1_deserializeDocumentEKSRequestThrottledException(v **types.EKSR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4773,7 +4782,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4789,6 +4804,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5605,7 +5623,13 @@ func awsRestjson1_deserializeDocumentRequestThrottledException(v **types.Request sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5621,6 +5645,9 @@ func awsRestjson1_deserializeDocumentRequestThrottledException(v **types.Request } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5645,7 +5672,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5661,6 +5694,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6375,7 +6411,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6391,6 +6433,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/emrserverless/deserializers.go b/service/emrserverless/deserializers.go index 08f7f1a2063..d7d22b5814f 100644 --- a/service/emrserverless/deserializers.go +++ b/service/emrserverless/deserializers.go @@ -3183,7 +3183,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3199,6 +3205,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3499,7 +3508,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3515,6 +3530,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4668,7 +4686,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4684,6 +4708,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5076,7 +5103,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5092,6 +5125,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5375,7 +5411,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5391,6 +5433,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/entityresolution/deserializers.go b/service/entityresolution/deserializers.go index eb7d1d57af7..942a1f22199 100644 --- a/service/entityresolution/deserializers.go +++ b/service/entityresolution/deserializers.go @@ -7389,7 +7389,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7405,6 +7411,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7465,7 +7474,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7481,6 +7496,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7738,7 +7756,13 @@ func awsRestjson1_deserializeDocumentExceedsLimitException(v **types.ExceedsLimi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7776,6 +7800,9 @@ func awsRestjson1_deserializeDocumentExceedsLimitException(v **types.ExceedsLimi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8991,7 +9018,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9007,6 +9040,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10383,7 +10419,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10399,6 +10441,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10903,7 +10948,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10919,6 +10970,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10943,7 +10997,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10959,6 +11019,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/eventbridge/deserializers.go b/service/eventbridge/deserializers.go index 309e2432cc6..7208e231487 100644 --- a/service/eventbridge/deserializers.go +++ b/service/eventbridge/deserializers.go @@ -7587,7 +7587,13 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7603,6 +7609,9 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9165,7 +9174,13 @@ func awsAwsjson11_deserializeDocumentIllegalStatusException(v **types.IllegalSta sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9181,6 +9196,9 @@ func awsAwsjson11_deserializeDocumentIllegalStatusException(v **types.IllegalSta } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9250,7 +9268,13 @@ func awsAwsjson11_deserializeDocumentInternalException(v **types.InternalExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9266,6 +9290,9 @@ func awsAwsjson11_deserializeDocumentInternalException(v **types.InternalExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9290,7 +9317,13 @@ func awsAwsjson11_deserializeDocumentInvalidEventPatternException(v **types.Inva sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9306,6 +9339,9 @@ func awsAwsjson11_deserializeDocumentInvalidEventPatternException(v **types.Inva } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9330,7 +9366,13 @@ func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9346,6 +9388,9 @@ func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9410,7 +9455,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9426,6 +9477,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9450,7 +9504,13 @@ func awsAwsjson11_deserializeDocumentManagedRuleException(v **types.ManagedRuleE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9466,6 +9526,9 @@ func awsAwsjson11_deserializeDocumentManagedRuleException(v **types.ManagedRuleE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9526,7 +9589,13 @@ func awsAwsjson11_deserializeDocumentOperationDisabledException(v **types.Operat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9542,6 +9611,9 @@ func awsAwsjson11_deserializeDocumentOperationDisabledException(v **types.Operat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9966,7 +10038,13 @@ func awsAwsjson11_deserializeDocumentPolicyLengthExceededException(v **types.Pol sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9982,6 +10060,9 @@ func awsAwsjson11_deserializeDocumentPolicyLengthExceededException(v **types.Pol } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10842,7 +10923,13 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10858,6 +10945,9 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10882,7 +10972,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10898,6 +10994,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/evidently/deserializers.go b/service/evidently/deserializers.go index abbf93c2afb..8216b69aa03 100644 --- a/service/evidently/deserializers.go +++ b/service/evidently/deserializers.go @@ -6191,7 +6191,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6207,6 +6213,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6271,7 +6280,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6305,6 +6320,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7554,7 +7572,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7570,6 +7594,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8910,7 +8937,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8944,6 +8977,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9400,7 +9436,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9452,6 +9494,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9476,7 +9521,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9492,6 +9543,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9552,7 +9606,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9586,6 +9646,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9781,7 +9844,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -9811,6 +9880,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/finspace/deserializers.go b/service/finspace/deserializers.go index 354057c7d2d..0e9e13726e8 100644 --- a/service/finspace/deserializers.go +++ b/service/finspace/deserializers.go @@ -10213,7 +10213,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10229,6 +10235,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10732,7 +10741,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10757,6 +10772,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11256,7 +11274,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11272,6 +11296,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11296,7 +11323,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11312,6 +11345,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13702,7 +13738,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13718,6 +13760,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13914,7 +13959,13 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13930,6 +13981,9 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13954,7 +14008,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13970,6 +14030,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14066,7 +14129,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14082,6 +14151,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14178,7 +14250,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14194,6 +14272,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14344,7 +14425,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14360,6 +14447,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/finspacedata/deserializers.go b/service/finspacedata/deserializers.go index 52877ea885e..b2543a428b9 100644 --- a/service/finspacedata/deserializers.go +++ b/service/finspacedata/deserializers.go @@ -5943,7 +5943,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5959,6 +5965,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6449,7 +6458,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6474,6 +6489,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7077,7 +7095,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7093,6 +7117,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7117,7 +7144,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7133,6 +7166,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7417,7 +7453,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7442,6 +7484,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7700,13 +7745,22 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8079,7 +8133,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8104,6 +8164,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/firehose/deserializers.go b/service/firehose/deserializers.go index bf8328e0706..a9f09347787 100644 --- a/service/firehose/deserializers.go +++ b/service/firehose/deserializers.go @@ -2417,7 +2417,13 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2433,6 +2439,9 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4138,7 +4147,13 @@ func awsAwsjson11_deserializeDocumentInvalidArgumentException(v **types.InvalidA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4154,6 +4169,9 @@ func awsAwsjson11_deserializeDocumentInvalidArgumentException(v **types.InvalidA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4178,7 +4196,13 @@ func awsAwsjson11_deserializeDocumentInvalidKMSResourceException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -4203,6 +4227,9 @@ func awsAwsjson11_deserializeDocumentInvalidKMSResourceException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4227,7 +4254,13 @@ func awsAwsjson11_deserializeDocumentInvalidSourceException(v **types.InvalidSou sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -4252,6 +4285,9 @@ func awsAwsjson11_deserializeDocumentInvalidSourceException(v **types.InvalidSou } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4381,7 +4417,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4397,6 +4439,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5449,7 +5494,13 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5465,6 +5516,9 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5489,7 +5543,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5505,6 +5565,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5884,7 +5947,13 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5900,6 +5969,9 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/fis/deserializers.go b/service/fis/deserializers.go index 5413dbd6e63..c74516262af 100644 --- a/service/fis/deserializers.go +++ b/service/fis/deserializers.go @@ -4483,7 +4483,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4499,6 +4505,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7035,7 +7044,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7051,6 +7066,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7178,7 +7196,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7194,6 +7218,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7661,7 +7688,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7677,6 +7710,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/fms/deserializers.go b/service/fms/deserializers.go index 4e2322735e2..026e05f0378 100644 --- a/service/fms/deserializers.go +++ b/service/fms/deserializers.go @@ -7747,7 +7747,13 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7763,6 +7769,9 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7787,7 +7796,13 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7803,6 +7818,9 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7899,7 +7917,13 @@ func awsAwsjson11_deserializeDocumentInvalidOperationException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7915,6 +7939,9 @@ func awsAwsjson11_deserializeDocumentInvalidOperationException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7939,7 +7966,13 @@ func awsAwsjson11_deserializeDocumentInvalidTypeException(v **types.InvalidTypeE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7955,6 +7988,9 @@ func awsAwsjson11_deserializeDocumentInvalidTypeException(v **types.InvalidTypeE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8051,7 +8087,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8067,6 +8109,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11082,7 +11127,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11098,6 +11149,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/forecast/deserializers.go b/service/forecast/deserializers.go index 3346a3b2b75..ac8d8bf9e04 100644 --- a/service/forecast/deserializers.go +++ b/service/forecast/deserializers.go @@ -10053,7 +10053,13 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10069,6 +10075,9 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10093,7 +10102,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10109,6 +10124,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10133,7 +10151,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10149,6 +10173,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11473,7 +11500,13 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11489,6 +11522,9 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11513,7 +11549,13 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11529,6 +11571,9 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11553,7 +11598,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11569,6 +11620,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/forecastquery/deserializers.go b/service/forecastquery/deserializers.go index 5acca9b600f..bb8fedf4f6e 100644 --- a/service/forecastquery/deserializers.go +++ b/service/forecastquery/deserializers.go @@ -581,7 +581,13 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -597,6 +603,9 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -621,7 +630,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -637,6 +652,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -661,7 +679,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -677,6 +701,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -735,7 +762,13 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -751,6 +784,9 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -775,7 +811,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -791,6 +833,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/frauddetector/deserializers.go b/service/frauddetector/deserializers.go index 955cb6457d7..fff76771ced 100644 --- a/service/frauddetector/deserializers.go +++ b/service/frauddetector/deserializers.go @@ -9277,7 +9277,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9293,6 +9299,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10522,7 +10531,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10538,6 +10553,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12433,7 +12451,13 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12449,6 +12473,9 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14708,7 +14735,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14724,6 +14757,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14748,7 +14784,13 @@ func awsAwsjson11_deserializeDocumentResourceUnavailableException(v **types.Reso sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14764,6 +14806,9 @@ func awsAwsjson11_deserializeDocumentResourceUnavailableException(v **types.Reso } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15471,7 +15516,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15487,6 +15538,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15864,7 +15918,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15880,6 +15940,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/freetier/deserializers.go b/service/freetier/deserializers.go index e8ed95a9972..a60ab7157ff 100644 --- a/service/freetier/deserializers.go +++ b/service/freetier/deserializers.go @@ -502,7 +502,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -518,6 +524,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -542,7 +551,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -558,6 +573,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -582,7 +600,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -598,6 +622,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/fsx/deserializers.go b/service/fsx/deserializers.go index 1058d9d0da0..44e722d9d3f 100644 --- a/service/fsx/deserializers.go +++ b/service/fsx/deserializers.go @@ -6882,7 +6882,13 @@ func awsAwsjson11_deserializeDocumentActiveDirectoryError(v **types.ActiveDirect sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ActiveDirectoryId": if value != nil { @@ -6916,6 +6922,9 @@ func awsAwsjson11_deserializeDocumentActiveDirectoryError(v **types.ActiveDirect } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7597,7 +7606,13 @@ func awsAwsjson11_deserializeDocumentBackupBeingCopied(v **types.BackupBeingCopi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "BackupId": if value != nil { @@ -7622,6 +7637,9 @@ func awsAwsjson11_deserializeDocumentBackupBeingCopied(v **types.BackupBeingCopi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7686,7 +7704,13 @@ func awsAwsjson11_deserializeDocumentBackupInProgress(v **types.BackupInProgress sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7702,6 +7726,9 @@ func awsAwsjson11_deserializeDocumentBackupInProgress(v **types.BackupInProgress } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7726,7 +7753,13 @@ func awsAwsjson11_deserializeDocumentBackupNotFound(v **types.BackupNotFound, va sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7742,6 +7775,9 @@ func awsAwsjson11_deserializeDocumentBackupNotFound(v **types.BackupNotFound, va } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7766,7 +7802,13 @@ func awsAwsjson11_deserializeDocumentBackupRestoring(v **types.BackupRestoring, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "FileSystemId": if value != nil { @@ -7791,6 +7833,9 @@ func awsAwsjson11_deserializeDocumentBackupRestoring(v **types.BackupRestoring, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7849,7 +7894,13 @@ func awsAwsjson11_deserializeDocumentBadRequest(v **types.BadRequest, value inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7865,6 +7916,9 @@ func awsAwsjson11_deserializeDocumentBadRequest(v **types.BadRequest, value inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8158,7 +8212,13 @@ func awsAwsjson11_deserializeDocumentDataRepositoryAssociationNotFound(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8174,6 +8234,9 @@ func awsAwsjson11_deserializeDocumentDataRepositoryAssociationNotFound(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8533,7 +8596,13 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskEnded(v **types.DataRepos sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8549,6 +8618,9 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskEnded(v **types.DataRepos } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8573,7 +8645,13 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskExecuting(v **types.DataR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8589,6 +8667,9 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskExecuting(v **types.DataR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8653,7 +8734,13 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskNotFound(v **types.DataRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8669,6 +8756,9 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskNotFound(v **types.DataRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9731,7 +9821,13 @@ func awsAwsjson11_deserializeDocumentFileCacheNotFound(v **types.FileCacheNotFou sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9747,6 +9843,9 @@ func awsAwsjson11_deserializeDocumentFileCacheNotFound(v **types.FileCacheNotFou } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10215,7 +10314,13 @@ func awsAwsjson11_deserializeDocumentFileSystemNotFound(v **types.FileSystemNotF sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10231,6 +10336,9 @@ func awsAwsjson11_deserializeDocumentFileSystemNotFound(v **types.FileSystemNotF } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10289,7 +10397,13 @@ func awsAwsjson11_deserializeDocumentIncompatibleParameterError(v **types.Incomp sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10314,6 +10428,9 @@ func awsAwsjson11_deserializeDocumentIncompatibleParameterError(v **types.Incomp } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10338,7 +10455,13 @@ func awsAwsjson11_deserializeDocumentIncompatibleRegionForMultiAZ(v **types.Inco sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10354,6 +10477,9 @@ func awsAwsjson11_deserializeDocumentIncompatibleRegionForMultiAZ(v **types.Inco } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10378,7 +10504,13 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10394,6 +10526,9 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10418,7 +10553,13 @@ func awsAwsjson11_deserializeDocumentInvalidDataRepositoryType(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10434,6 +10575,9 @@ func awsAwsjson11_deserializeDocumentInvalidDataRepositoryType(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10458,7 +10602,13 @@ func awsAwsjson11_deserializeDocumentInvalidDestinationKmsKey(v **types.InvalidD sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10474,6 +10624,9 @@ func awsAwsjson11_deserializeDocumentInvalidDestinationKmsKey(v **types.InvalidD } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10498,7 +10651,13 @@ func awsAwsjson11_deserializeDocumentInvalidExportPath(v **types.InvalidExportPa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10514,6 +10673,9 @@ func awsAwsjson11_deserializeDocumentInvalidExportPath(v **types.InvalidExportPa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10538,7 +10700,13 @@ func awsAwsjson11_deserializeDocumentInvalidImportPath(v **types.InvalidImportPa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10554,6 +10722,9 @@ func awsAwsjson11_deserializeDocumentInvalidImportPath(v **types.InvalidImportPa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10578,7 +10749,13 @@ func awsAwsjson11_deserializeDocumentInvalidNetworkSettings(v **types.InvalidNet sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "InvalidRouteTableId": if value != nil { @@ -10621,6 +10798,9 @@ func awsAwsjson11_deserializeDocumentInvalidNetworkSettings(v **types.InvalidNet } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10645,7 +10825,13 @@ func awsAwsjson11_deserializeDocumentInvalidPerUnitStorageThroughput(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10661,6 +10847,9 @@ func awsAwsjson11_deserializeDocumentInvalidPerUnitStorageThroughput(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10685,7 +10874,13 @@ func awsAwsjson11_deserializeDocumentInvalidRegion(v **types.InvalidRegion, valu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10701,6 +10896,9 @@ func awsAwsjson11_deserializeDocumentInvalidRegion(v **types.InvalidRegion, valu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10725,7 +10923,13 @@ func awsAwsjson11_deserializeDocumentInvalidSourceKmsKey(v **types.InvalidSource sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10741,6 +10945,9 @@ func awsAwsjson11_deserializeDocumentInvalidSourceKmsKey(v **types.InvalidSource } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11075,7 +11282,13 @@ func awsAwsjson11_deserializeDocumentMissingFileCacheConfiguration(v **types.Mis sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11091,6 +11304,9 @@ func awsAwsjson11_deserializeDocumentMissingFileCacheConfiguration(v **types.Mis } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11115,7 +11331,13 @@ func awsAwsjson11_deserializeDocumentMissingFileSystemConfiguration(v **types.Mi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11131,6 +11353,9 @@ func awsAwsjson11_deserializeDocumentMissingFileSystemConfiguration(v **types.Mi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11155,7 +11380,13 @@ func awsAwsjson11_deserializeDocumentMissingVolumeConfiguration(v **types.Missin sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11171,6 +11402,9 @@ func awsAwsjson11_deserializeDocumentMissingVolumeConfiguration(v **types.Missin } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11281,7 +11515,13 @@ func awsAwsjson11_deserializeDocumentNotServiceResourceError(v **types.NotServic sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11306,6 +11546,9 @@ func awsAwsjson11_deserializeDocumentNotServiceResourceError(v **types.NotServic } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12436,7 +12679,13 @@ func awsAwsjson11_deserializeDocumentResourceDoesNotSupportTagging(v **types.Res sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12461,6 +12710,9 @@ func awsAwsjson11_deserializeDocumentResourceDoesNotSupportTagging(v **types.Res } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12485,7 +12737,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFound(v **types.ResourceNotFound sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12510,6 +12768,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFound(v **types.ResourceNotFound } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12736,7 +12997,13 @@ func awsAwsjson11_deserializeDocumentServiceLimitExceeded(v **types.ServiceLimit sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Limit": if value != nil { @@ -12761,6 +13028,9 @@ func awsAwsjson11_deserializeDocumentServiceLimitExceeded(v **types.ServiceLimit } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13015,7 +13285,13 @@ func awsAwsjson11_deserializeDocumentSnapshotNotFound(v **types.SnapshotNotFound sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13031,6 +13307,9 @@ func awsAwsjson11_deserializeDocumentSnapshotNotFound(v **types.SnapshotNotFound } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13089,7 +13368,13 @@ func awsAwsjson11_deserializeDocumentSourceBackupUnavailable(v **types.SourceBac sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "BackupId": if value != nil { @@ -13114,6 +13399,9 @@ func awsAwsjson11_deserializeDocumentSourceBackupUnavailable(v **types.SourceBac } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13277,7 +13565,13 @@ func awsAwsjson11_deserializeDocumentStorageVirtualMachineNotFound(v **types.Sto sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13293,6 +13587,9 @@ func awsAwsjson11_deserializeDocumentStorageVirtualMachineNotFound(v **types.Sto } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13700,7 +13997,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperation(v **types.UnsupportedO sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13716,6 +14019,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperation(v **types.UnsupportedO } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13866,7 +14172,13 @@ func awsAwsjson11_deserializeDocumentVolumeNotFound(v **types.VolumeNotFound, va sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13882,6 +14194,9 @@ func awsAwsjson11_deserializeDocumentVolumeNotFound(v **types.VolumeNotFound, va } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/gamelift/deserializers.go b/service/gamelift/deserializers.go index 9ed2d3a3491..f7d585c6d8d 100644 --- a/service/gamelift/deserializers.go +++ b/service/gamelift/deserializers.go @@ -14356,7 +14356,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14372,6 +14378,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16431,7 +16440,13 @@ func awsAwsjson11_deserializeDocumentFleetCapacityExceededException(v **types.Fl sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16447,6 +16462,9 @@ func awsAwsjson11_deserializeDocumentFleetCapacityExceededException(v **types.Fl } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17648,7 +17666,13 @@ func awsAwsjson11_deserializeDocumentGameSessionFullException(v **types.GameSess sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -17664,6 +17688,9 @@ func awsAwsjson11_deserializeDocumentGameSessionFullException(v **types.GameSess } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18133,7 +18160,13 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatchException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -18149,6 +18182,9 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatchException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18539,7 +18575,13 @@ func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -18555,6 +18597,9 @@ func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18579,7 +18624,13 @@ func awsAwsjson11_deserializeDocumentInvalidFleetStatusException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -18595,6 +18646,9 @@ func awsAwsjson11_deserializeDocumentInvalidFleetStatusException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18619,7 +18673,13 @@ func awsAwsjson11_deserializeDocumentInvalidGameSessionStatusException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -18635,6 +18695,9 @@ func awsAwsjson11_deserializeDocumentInvalidGameSessionStatusException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18659,7 +18722,13 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -18675,6 +18744,9 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18848,7 +18920,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -18864,6 +18942,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19804,7 +19885,13 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -19820,6 +19907,9 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19844,7 +19934,13 @@ func awsAwsjson11_deserializeDocumentNotReadyException(v **types.NotReadyExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -19860,6 +19956,9 @@ func awsAwsjson11_deserializeDocumentNotReadyException(v **types.NotReadyExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19884,7 +19983,13 @@ func awsAwsjson11_deserializeDocumentOutOfCapacityException(v **types.OutOfCapac sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -19900,6 +20005,9 @@ func awsAwsjson11_deserializeDocumentOutOfCapacityException(v **types.OutOfCapac } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21607,7 +21715,13 @@ func awsAwsjson11_deserializeDocumentTaggingFailedException(v **types.TaggingFai sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -21623,6 +21737,9 @@ func awsAwsjson11_deserializeDocumentTaggingFailedException(v **types.TaggingFai } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21746,7 +21863,13 @@ func awsAwsjson11_deserializeDocumentTerminalRoutingStrategyException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -21762,6 +21885,9 @@ func awsAwsjson11_deserializeDocumentTerminalRoutingStrategyException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21786,7 +21912,13 @@ func awsAwsjson11_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -21802,6 +21934,9 @@ func awsAwsjson11_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21826,7 +21961,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedRegionException(v **types.Unsupp sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -21842,6 +21983,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedRegionException(v **types.Unsupp } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/geomaps/deserializers.go b/service/geomaps/deserializers.go index 91167d15c64..be97997f302 100644 --- a/service/geomaps/deserializers.go +++ b/service/geomaps/deserializers.go @@ -922,7 +922,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -938,6 +944,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -962,7 +971,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -978,6 +993,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1002,7 +1020,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1018,6 +1042,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1042,7 +1069,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -1072,6 +1105,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/geoplaces/deserializers.go b/service/geoplaces/deserializers.go index 8f90988bed6..bcaf34605e5 100644 --- a/service/geoplaces/deserializers.go +++ b/service/geoplaces/deserializers.go @@ -1568,7 +1568,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1584,6 +1590,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3577,7 +3586,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3593,6 +3608,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5629,7 +5647,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5645,6 +5669,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5811,7 +5838,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -5841,6 +5874,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/georoutes/deserializers.go b/service/georoutes/deserializers.go index e569dc75333..1852e211ec1 100644 --- a/service/georoutes/deserializers.go +++ b/service/georoutes/deserializers.go @@ -1213,7 +1213,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1229,6 +1235,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1424,7 +1433,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1440,6 +1455,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9101,7 +9119,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9117,6 +9141,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9177,7 +9204,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -9207,6 +9240,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/glacier/deserializers.go b/service/glacier/deserializers.go index a418c329c8d..c3159312365 100644 --- a/service/glacier/deserializers.go +++ b/service/glacier/deserializers.go @@ -5847,7 +5847,13 @@ func awsRestjson1_deserializeDocumentInsufficientCapacityException(v **types.Ins sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -5881,6 +5887,9 @@ func awsRestjson1_deserializeDocumentInsufficientCapacityException(v **types.Ins } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5905,7 +5914,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -5939,6 +5954,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6073,7 +6091,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -6107,6 +6131,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6131,7 +6158,13 @@ func awsRestjson1_deserializeDocumentMissingParameterValueException(v **types.Mi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -6165,6 +6198,9 @@ func awsRestjson1_deserializeDocumentMissingParameterValueException(v **types.Mi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6380,7 +6416,13 @@ func awsRestjson1_deserializeDocumentPolicyEnforcedException(v **types.PolicyEnf sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -6414,6 +6456,9 @@ func awsRestjson1_deserializeDocumentPolicyEnforcedException(v **types.PolicyEnf } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6530,7 +6575,13 @@ func awsRestjson1_deserializeDocumentRequestTimeoutException(v **types.RequestTi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -6564,6 +6615,9 @@ func awsRestjson1_deserializeDocumentRequestTimeoutException(v **types.RequestTi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6588,7 +6642,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -6622,6 +6682,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6792,7 +6855,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -6826,6 +6895,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/globalaccelerator/deserializers.go b/service/globalaccelerator/deserializers.go index 44b99058a64..2c35fb18d78 100644 --- a/service/globalaccelerator/deserializers.go +++ b/service/globalaccelerator/deserializers.go @@ -7588,7 +7588,13 @@ func awsAwsjson11_deserializeDocumentAcceleratorNotDisabledException(v **types.A sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7604,6 +7610,9 @@ func awsAwsjson11_deserializeDocumentAcceleratorNotDisabledException(v **types.A } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7628,7 +7637,13 @@ func awsAwsjson11_deserializeDocumentAcceleratorNotFoundException(v **types.Acce sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7644,6 +7659,9 @@ func awsAwsjson11_deserializeDocumentAcceleratorNotFoundException(v **types.Acce } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7702,7 +7720,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7718,6 +7742,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7742,7 +7769,13 @@ func awsAwsjson11_deserializeDocumentAssociatedEndpointGroupFoundException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7758,6 +7791,9 @@ func awsAwsjson11_deserializeDocumentAssociatedEndpointGroupFoundException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7782,7 +7818,13 @@ func awsAwsjson11_deserializeDocumentAssociatedListenerFoundException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7798,6 +7840,9 @@ func awsAwsjson11_deserializeDocumentAssociatedListenerFoundException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7913,7 +7958,13 @@ func awsAwsjson11_deserializeDocumentAttachmentNotFoundException(v **types.Attac sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7929,6 +7980,9 @@ func awsAwsjson11_deserializeDocumentAttachmentNotFoundException(v **types.Attac } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8167,7 +8221,13 @@ func awsAwsjson11_deserializeDocumentByoipCidrNotFoundException(v **types.ByoipC sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8183,6 +8243,9 @@ func awsAwsjson11_deserializeDocumentByoipCidrNotFoundException(v **types.ByoipC } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8241,7 +8304,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8257,6 +8326,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9094,7 +9166,13 @@ func awsAwsjson11_deserializeDocumentEndpointAlreadyExistsException(v **types.En sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9110,6 +9188,9 @@ func awsAwsjson11_deserializeDocumentEndpointAlreadyExistsException(v **types.En } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9398,7 +9479,13 @@ func awsAwsjson11_deserializeDocumentEndpointGroupAlreadyExistsException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9414,6 +9501,9 @@ func awsAwsjson11_deserializeDocumentEndpointGroupAlreadyExistsException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9438,7 +9528,13 @@ func awsAwsjson11_deserializeDocumentEndpointGroupNotFoundException(v **types.En sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9454,6 +9550,9 @@ func awsAwsjson11_deserializeDocumentEndpointGroupNotFoundException(v **types.En } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9512,7 +9611,13 @@ func awsAwsjson11_deserializeDocumentEndpointNotFoundException(v **types.Endpoin sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9528,6 +9633,9 @@ func awsAwsjson11_deserializeDocumentEndpointNotFoundException(v **types.Endpoin } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9552,7 +9660,13 @@ func awsAwsjson11_deserializeDocumentIncorrectCidrStateException(v **types.Incor sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9568,6 +9682,9 @@ func awsAwsjson11_deserializeDocumentIncorrectCidrStateException(v **types.Incor } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9592,7 +9709,13 @@ func awsAwsjson11_deserializeDocumentInternalServiceErrorException(v **types.Int sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9608,6 +9731,9 @@ func awsAwsjson11_deserializeDocumentInternalServiceErrorException(v **types.Int } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9632,7 +9758,13 @@ func awsAwsjson11_deserializeDocumentInvalidArgumentException(v **types.InvalidA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9648,6 +9780,9 @@ func awsAwsjson11_deserializeDocumentInvalidArgumentException(v **types.InvalidA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9672,7 +9807,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9688,6 +9829,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9712,7 +9856,13 @@ func awsAwsjson11_deserializeDocumentInvalidPortRangeException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9728,6 +9878,9 @@ func awsAwsjson11_deserializeDocumentInvalidPortRangeException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9876,7 +10029,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9892,6 +10051,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9979,7 +10141,13 @@ func awsAwsjson11_deserializeDocumentListenerNotFoundException(v **types.Listene sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9995,6 +10163,9 @@ func awsAwsjson11_deserializeDocumentListenerNotFoundException(v **types.Listene } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10684,7 +10855,13 @@ func awsAwsjson11_deserializeDocumentTransactionInProgressException(v **types.Tr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10700,6 +10877,9 @@ func awsAwsjson11_deserializeDocumentTransactionInProgressException(v **types.Tr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/glue/deserializers.go b/service/glue/deserializers.go index c79bfc741ce..dbb07962885 100644 --- a/service/glue/deserializers.go +++ b/service/glue/deserializers.go @@ -29465,7 +29465,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -29481,6 +29487,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29826,7 +29835,13 @@ func awsAwsjson11_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -29842,6 +29857,9 @@ func awsAwsjson11_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -33968,7 +33986,13 @@ func awsAwsjson11_deserializeDocumentColumnStatisticsTaskNotRunningException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -33984,6 +34008,9 @@ func awsAwsjson11_deserializeDocumentColumnStatisticsTaskNotRunningException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -34324,7 +34351,13 @@ func awsAwsjson11_deserializeDocumentColumnStatisticsTaskRunningException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -34340,6 +34373,9 @@ func awsAwsjson11_deserializeDocumentColumnStatisticsTaskRunningException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -34518,7 +34554,13 @@ func awsAwsjson11_deserializeDocumentColumnStatisticsTaskStoppingException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -34534,6 +34576,9 @@ func awsAwsjson11_deserializeDocumentColumnStatisticsTaskStoppingException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -34630,7 +34675,13 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -34646,6 +34697,9 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -34670,7 +34724,13 @@ func awsAwsjson11_deserializeDocumentConcurrentRunsExceededException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -34686,6 +34746,9 @@ func awsAwsjson11_deserializeDocumentConcurrentRunsExceededException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -34786,7 +34849,13 @@ func awsAwsjson11_deserializeDocumentConditionCheckFailureException(v **types.Co sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -34802,6 +34871,9 @@ func awsAwsjson11_deserializeDocumentConditionCheckFailureException(v **types.Co } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -35050,7 +35122,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -35066,6 +35144,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -36500,7 +36581,13 @@ func awsAwsjson11_deserializeDocumentCrawlerNotRunningException(v **types.Crawle sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -36516,6 +36603,9 @@ func awsAwsjson11_deserializeDocumentCrawlerNotRunningException(v **types.Crawle } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -36540,7 +36630,13 @@ func awsAwsjson11_deserializeDocumentCrawlerRunningException(v **types.CrawlerRu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -36556,6 +36652,9 @@ func awsAwsjson11_deserializeDocumentCrawlerRunningException(v **types.CrawlerRu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -36580,7 +36679,13 @@ func awsAwsjson11_deserializeDocumentCrawlerStoppingException(v **types.CrawlerS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -36596,6 +36701,9 @@ func awsAwsjson11_deserializeDocumentCrawlerStoppingException(v **types.CrawlerS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -40936,7 +41044,13 @@ func awsAwsjson11_deserializeDocumentEntityNotFoundException(v **types.EntityNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "FromFederationSource": if value != nil { @@ -40961,6 +41075,9 @@ func awsAwsjson11_deserializeDocumentEntityNotFoundException(v **types.EntityNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -41561,7 +41678,13 @@ func awsAwsjson11_deserializeDocumentFederatedResourceAlreadyExistsException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "AssociatedGlueResource": if value != nil { @@ -41586,6 +41709,9 @@ func awsAwsjson11_deserializeDocumentFederatedResourceAlreadyExistsException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -41668,7 +41794,13 @@ func awsAwsjson11_deserializeDocumentFederationSourceException(v **types.Federat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "FederationSourceErrorCode": if value != nil { @@ -41693,6 +41825,9 @@ func awsAwsjson11_deserializeDocumentFederationSourceException(v **types.Federat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -41717,7 +41852,13 @@ func awsAwsjson11_deserializeDocumentFederationSourceRetryableException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -41733,6 +41874,9 @@ func awsAwsjson11_deserializeDocumentFederationSourceRetryableException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -42502,7 +42646,13 @@ func awsAwsjson11_deserializeDocumentGlueEncryptionException(v **types.GlueEncry sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -42518,6 +42668,9 @@ func awsAwsjson11_deserializeDocumentGlueEncryptionException(v **types.GlueEncry } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -43832,7 +43985,13 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatchException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -43848,6 +44007,9 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatchException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -43872,7 +44034,13 @@ func awsAwsjson11_deserializeDocumentIllegalBlueprintStateException(v **types.Il sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -43888,6 +44056,9 @@ func awsAwsjson11_deserializeDocumentIllegalBlueprintStateException(v **types.Il } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -43912,7 +44083,13 @@ func awsAwsjson11_deserializeDocumentIllegalSessionStateException(v **types.Ille sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -43928,6 +44105,9 @@ func awsAwsjson11_deserializeDocumentIllegalSessionStateException(v **types.Ille } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -43952,7 +44132,13 @@ func awsAwsjson11_deserializeDocumentIllegalWorkflowStateException(v **types.Ill sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -43968,6 +44154,9 @@ func awsAwsjson11_deserializeDocumentIllegalWorkflowStateException(v **types.Ill } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -44041,7 +44230,13 @@ func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -44057,6 +44252,9 @@ func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -44081,7 +44279,13 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "FromFederationSource": if value != nil { @@ -44106,6 +44310,9 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -44130,7 +44337,13 @@ func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -44146,6 +44359,9 @@ func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -47849,7 +48065,13 @@ func awsAwsjson11_deserializeDocumentMLTransformNotReadyException(v **types.MLTr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -47865,6 +48087,9 @@ func awsAwsjson11_deserializeDocumentMLTransformNotReadyException(v **types.MLTr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -48366,7 +48591,13 @@ func awsAwsjson11_deserializeDocumentNoScheduleException(v **types.NoScheduleExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -48382,6 +48613,9 @@ func awsAwsjson11_deserializeDocumentNoScheduleException(v **types.NoScheduleExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -48731,7 +48965,13 @@ func awsAwsjson11_deserializeDocumentOperationNotSupportedException(v **types.Op sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -48747,6 +48987,9 @@ func awsAwsjson11_deserializeDocumentOperationNotSupportedException(v **types.Op } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -48771,7 +49014,13 @@ func awsAwsjson11_deserializeDocumentOperationTimeoutException(v **types.Operati sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -48787,6 +49036,9 @@ func awsAwsjson11_deserializeDocumentOperationTimeoutException(v **types.Operati } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -49841,7 +50093,13 @@ func awsAwsjson11_deserializeDocumentPermissionTypeMismatchException(v **types.P sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -49857,6 +50115,9 @@ func awsAwsjson11_deserializeDocumentPermissionTypeMismatchException(v **types.P } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -51211,7 +51472,13 @@ func awsAwsjson11_deserializeDocumentResourceNotReadyException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -51227,6 +51494,9 @@ func awsAwsjson11_deserializeDocumentResourceNotReadyException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -51251,7 +51521,13 @@ func awsAwsjson11_deserializeDocumentResourceNumberLimitExceededException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -51267,6 +51543,9 @@ func awsAwsjson11_deserializeDocumentResourceNumberLimitExceededException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -53323,7 +53602,13 @@ func awsAwsjson11_deserializeDocumentSchedulerNotRunningException(v **types.Sche sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -53339,6 +53624,9 @@ func awsAwsjson11_deserializeDocumentSchedulerNotRunningException(v **types.Sche } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -53363,7 +53651,13 @@ func awsAwsjson11_deserializeDocumentSchedulerRunningException(v **types.Schedul sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -53379,6 +53673,9 @@ func awsAwsjson11_deserializeDocumentSchedulerRunningException(v **types.Schedul } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -53403,7 +53700,13 @@ func awsAwsjson11_deserializeDocumentSchedulerTransitioningException(v **types.S sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -53419,6 +53722,9 @@ func awsAwsjson11_deserializeDocumentSchedulerTransitioningException(v **types.S } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -58024,7 +58330,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -58040,6 +58352,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -59172,7 +59487,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -59188,6 +59509,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -59248,7 +59572,13 @@ func awsAwsjson11_deserializeDocumentVersionMismatchException(v **types.VersionM sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -59264,6 +59594,9 @@ func awsAwsjson11_deserializeDocumentVersionMismatchException(v **types.VersionM } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/grafana/deserializers.go b/service/grafana/deserializers.go index 0e8ccf8b77e..45ce42fc656 100644 --- a/service/grafana/deserializers.go +++ b/service/grafana/deserializers.go @@ -4496,7 +4496,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4512,6 +4518,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4824,7 +4833,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4858,6 +4873,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5008,7 +5026,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5037,6 +5061,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5289,7 +5316,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5323,6 +5356,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5859,7 +5895,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5911,6 +5953,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6007,7 +6052,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6054,6 +6105,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6307,7 +6361,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -6337,6 +6397,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/greengrass/deserializers.go b/service/greengrass/deserializers.go index 06698879bb8..ea0324c4c28 100644 --- a/service/greengrass/deserializers.go +++ b/service/greengrass/deserializers.go @@ -15358,7 +15358,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorDetails": if err := awsRestjson1_deserializeDocumentErrorDetails(&sv.ErrorDetails, value); err != nil { @@ -15379,6 +15385,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17083,7 +17092,13 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorDetails": if err := awsRestjson1_deserializeDocumentErrorDetails(&sv.ErrorDetails, value); err != nil { @@ -17104,6 +17119,9 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/greengrassv2/deserializers.go b/service/greengrassv2/deserializers.go index 0405343e59d..4302665308b 100644 --- a/service/greengrassv2/deserializers.go +++ b/service/greengrassv2/deserializers.go @@ -5232,7 +5232,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5248,6 +5254,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6093,7 +6102,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6127,6 +6142,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7263,7 +7281,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7292,6 +7316,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7751,7 +7778,13 @@ func awsRestjson1_deserializeDocumentRequestAlreadyInProgressException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7767,6 +7800,9 @@ func awsRestjson1_deserializeDocumentRequestAlreadyInProgressException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7914,7 +7950,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7948,6 +7990,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7972,7 +8017,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8024,6 +8075,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8198,7 +8252,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8245,6 +8305,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8269,7 +8332,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fields": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.Fields, value); err != nil { @@ -8299,6 +8368,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/groundstation/deserializers.go b/service/groundstation/deserializers.go index a575ed236ab..33ba5550793 100644 --- a/service/groundstation/deserializers.go +++ b/service/groundstation/deserializers.go @@ -7266,7 +7266,13 @@ func awsRestjson1_deserializeDocumentDependencyException(v **types.DependencyExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7291,6 +7297,9 @@ func awsRestjson1_deserializeDocumentDependencyException(v **types.DependencyExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8257,7 +8266,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8282,6 +8297,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8567,7 +8585,13 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8592,6 +8616,9 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8616,7 +8643,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8632,6 +8665,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/guardduty/deserializers.go b/service/guardduty/deserializers.go index c7236d0b3f9..e105afbeb3e 100644 --- a/service/guardduty/deserializers.go +++ b/service/guardduty/deserializers.go @@ -10707,7 +10707,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10732,6 +10738,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11736,7 +11745,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11761,6 +11776,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12216,7 +12234,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12241,6 +12265,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16024,7 +16051,13 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16049,6 +16082,9 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20753,7 +20789,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20778,6 +20820,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/health/deserializers.go b/service/health/deserializers.go index 411676317e3..a090fa26cd0 100644 --- a/service/health/deserializers.go +++ b/service/health/deserializers.go @@ -1905,7 +1905,13 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1921,6 +1927,9 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2825,7 +2834,13 @@ func awsAwsjson11_deserializeDocumentInvalidPaginationToken(v **types.InvalidPag sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2841,6 +2856,9 @@ func awsAwsjson11_deserializeDocumentInvalidPaginationToken(v **types.InvalidPag } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3363,7 +3381,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedLocale(v **types.UnsupportedLoca sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3379,6 +3403,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedLocale(v **types.UnsupportedLoca } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/healthlake/deserializers.go b/service/healthlake/deserializers.go index 8792fd36a45..b5d19647484 100644 --- a/service/healthlake/deserializers.go +++ b/service/healthlake/deserializers.go @@ -1817,7 +1817,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1833,6 +1839,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1857,7 +1866,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1873,6 +1888,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2532,7 +2550,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2548,6 +2572,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2878,7 +2905,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2894,6 +2927,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3086,7 +3122,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3102,6 +3144,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3126,7 +3171,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3142,6 +3193,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/identitystore/deserializers.go b/service/identitystore/deserializers.go index 82cd0fe8ec0..78fb3c1496e 100644 --- a/service/identitystore/deserializers.go +++ b/service/identitystore/deserializers.go @@ -2670,7 +2670,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2695,6 +2701,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2856,7 +2865,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2890,6 +2905,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3380,7 +3398,13 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3418,6 +3442,9 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3661,7 +3688,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3704,6 +3737,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3728,7 +3764,13 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3753,6 +3795,9 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3777,7 +3822,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3815,6 +3866,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4028,7 +4082,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4053,6 +4113,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/imagebuilder/deserializers.go b/service/imagebuilder/deserializers.go index 58ae7a51758..482b834e45f 100644 --- a/service/imagebuilder/deserializers.go +++ b/service/imagebuilder/deserializers.go @@ -14660,7 +14660,13 @@ func awsRestjson1_deserializeDocumentCallRateLimitExceededException(v **types.Ca sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14676,6 +14682,9 @@ func awsRestjson1_deserializeDocumentCallRateLimitExceededException(v **types.Ca } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14700,7 +14709,13 @@ func awsRestjson1_deserializeDocumentClientException(v **types.ClientException, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14716,6 +14731,9 @@ func awsRestjson1_deserializeDocumentClientException(v **types.ClientException, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17014,7 +17032,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17030,6 +17054,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17054,7 +17081,13 @@ func awsRestjson1_deserializeDocumentIdempotentParameterMismatchException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17070,6 +17103,9 @@ func awsRestjson1_deserializeDocumentIdempotentParameterMismatchException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19396,7 +19432,13 @@ func awsRestjson1_deserializeDocumentInvalidPaginationTokenException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19412,6 +19454,9 @@ func awsRestjson1_deserializeDocumentInvalidPaginationTokenException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19436,7 +19481,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterCombinationException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19452,6 +19503,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterCombinationException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19476,7 +19530,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19492,6 +19552,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19516,7 +19579,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19532,6 +19601,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19556,7 +19628,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19572,6 +19650,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19596,7 +19677,13 @@ func awsRestjson1_deserializeDocumentInvalidVersionNumberException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19612,6 +19699,9 @@ func awsRestjson1_deserializeDocumentInvalidVersionNumberException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21734,7 +21824,13 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21750,6 +21846,9 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21774,7 +21873,13 @@ func awsRestjson1_deserializeDocumentResourceDependencyException(v **types.Resou sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21790,6 +21895,9 @@ func awsRestjson1_deserializeDocumentResourceDependencyException(v **types.Resou } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21814,7 +21922,13 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21830,6 +21944,9 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21854,7 +21971,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21870,6 +21993,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22140,7 +22266,13 @@ func awsRestjson1_deserializeDocumentServiceException(v **types.ServiceException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22156,6 +22288,9 @@ func awsRestjson1_deserializeDocumentServiceException(v **types.ServiceException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22180,7 +22315,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22196,6 +22337,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22220,7 +22364,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22236,6 +22386,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/inspector/deserializers.go b/service/inspector/deserializers.go index 2144fc64e43..451eb98e844 100644 --- a/service/inspector/deserializers.go +++ b/service/inspector/deserializers.go @@ -4714,7 +4714,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "canRetry": if value != nil { @@ -4748,6 +4754,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4992,7 +5001,13 @@ func awsAwsjson11_deserializeDocumentAgentsAlreadyRunningAssessmentException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "agents": if err := awsAwsjson11_deserializeDocumentAgentAlreadyRunningAssessmentList(&sv.Agents, value); err != nil { @@ -5031,6 +5046,9 @@ func awsAwsjson11_deserializeDocumentAgentsAlreadyRunningAssessmentException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5469,7 +5487,13 @@ func awsAwsjson11_deserializeDocumentAssessmentRunInProgressException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "assessmentRunArns": if err := awsAwsjson11_deserializeDocumentAssessmentRunInProgressArnList(&sv.AssessmentRunArns, value); err != nil { @@ -5508,6 +5532,9 @@ func awsAwsjson11_deserializeDocumentAssessmentRunInProgressException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6981,7 +7008,13 @@ func awsAwsjson11_deserializeDocumentInternalException(v **types.InternalExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "canRetry": if value != nil { @@ -7006,6 +7039,9 @@ func awsAwsjson11_deserializeDocumentInternalException(v **types.InternalExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7030,7 +7066,13 @@ func awsAwsjson11_deserializeDocumentInvalidCrossAccountRoleException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "canRetry": if value != nil { @@ -7064,6 +7106,9 @@ func awsAwsjson11_deserializeDocumentInvalidCrossAccountRoleException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7088,7 +7133,13 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "canRetry": if value != nil { @@ -7122,6 +7173,9 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7218,7 +7272,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "canRetry": if value != nil { @@ -7252,6 +7312,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7455,7 +7518,13 @@ func awsAwsjson11_deserializeDocumentNoSuchEntityException(v **types.NoSuchEntit sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "canRetry": if value != nil { @@ -7489,6 +7558,9 @@ func awsAwsjson11_deserializeDocumentNoSuchEntityException(v **types.NoSuchEntit } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7513,7 +7585,13 @@ func awsAwsjson11_deserializeDocumentPreviewGenerationInProgressException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7529,6 +7607,9 @@ func awsAwsjson11_deserializeDocumentPreviewGenerationInProgressException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8090,7 +8171,13 @@ func awsAwsjson11_deserializeDocumentServiceTemporarilyUnavailableException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "canRetry": if value != nil { @@ -8115,6 +8202,9 @@ func awsAwsjson11_deserializeDocumentServiceTemporarilyUnavailableException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8444,7 +8534,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedFeatureException(v **types.Unsup sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "canRetry": if value != nil { @@ -8469,6 +8565,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedFeatureException(v **types.Unsup } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/inspector2/deserializers.go b/service/inspector2/deserializers.go index 97aaa245dd1..414bb8f4434 100644 --- a/service/inspector2/deserializers.go +++ b/service/inspector2/deserializers.go @@ -9734,7 +9734,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9750,6 +9756,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10860,7 +10869,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10876,6 +10891,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12253,7 +12271,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12287,6 +12311,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15889,7 +15916,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15918,6 +15951,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18067,7 +18103,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18083,6 +18125,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18514,7 +18559,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18539,6 +18590,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19273,7 +19327,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19302,6 +19362,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19740,7 +19803,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fields": if err := awsRestjson1_deserializeDocumentValidationExceptionFields(&sv.Fields, value); err != nil { @@ -19770,6 +19839,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/inspectorscan/deserializers.go b/service/inspectorscan/deserializers.go index c91422e3dcf..6d505c8606f 100644 --- a/service/inspectorscan/deserializers.go +++ b/service/inspectorscan/deserializers.go @@ -397,7 +397,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -413,6 +419,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -437,7 +446,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -475,6 +490,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -507,7 +525,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -536,6 +560,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -560,7 +587,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fields": if err := awsRestjson1_deserializeDocumentValidationExceptionFields(&sv.Fields, value); err != nil { @@ -590,6 +623,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/internetmonitor/deserializers.go b/service/internetmonitor/deserializers.go index 79056467929..923d2f19008 100644 --- a/service/internetmonitor/deserializers.go +++ b/service/internetmonitor/deserializers.go @@ -3204,7 +3204,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3220,6 +3226,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3377,7 +3386,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3393,6 +3408,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3574,7 +3592,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3590,6 +3614,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4191,7 +4218,13 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4207,6 +4240,9 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4231,7 +4267,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4247,6 +4289,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4516,7 +4561,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4532,6 +4583,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4902,7 +4956,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4918,6 +4978,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5231,7 +5294,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5247,6 +5316,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5534,7 +5606,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5550,6 +5628,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5574,7 +5655,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5590,6 +5677,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5614,7 +5704,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5630,6 +5726,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/iot/deserializers.go b/service/iot/deserializers.go index a71d45f6b27..c3a3c4cf408 100644 --- a/service/iot/deserializers.go +++ b/service/iot/deserializers.go @@ -45893,7 +45893,13 @@ func awsRestjson1_deserializeDocumentCertificateConflictException(v **types.Cert sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -45909,6 +45915,9 @@ func awsRestjson1_deserializeDocumentCertificateConflictException(v **types.Cert } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -46253,7 +46262,13 @@ func awsRestjson1_deserializeDocumentCertificateStateException(v **types.Certifi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -46269,6 +46284,9 @@ func awsRestjson1_deserializeDocumentCertificateStateException(v **types.Certifi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -46293,7 +46311,13 @@ func awsRestjson1_deserializeDocumentCertificateValidationException(v **types.Ce sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -46309,6 +46333,9 @@ func awsRestjson1_deserializeDocumentCertificateValidationException(v **types.Ce } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -46901,7 +46928,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -46926,6 +46959,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -46950,7 +46986,13 @@ func awsRestjson1_deserializeDocumentConflictingResourceUpdateException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -46966,6 +47008,9 @@ func awsRestjson1_deserializeDocumentConflictingResourceUpdateException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -47049,7 +47094,13 @@ func awsRestjson1_deserializeDocumentDeleteConflictException(v **types.DeleteCon sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -47065,6 +47116,9 @@ func awsRestjson1_deserializeDocumentDeleteConflictException(v **types.DeleteCon } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -49384,7 +49438,13 @@ func awsRestjson1_deserializeDocumentIndexNotReadyException(v **types.IndexNotRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -49400,6 +49460,9 @@ func awsRestjson1_deserializeDocumentIndexNotReadyException(v **types.IndexNotRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -49424,7 +49487,13 @@ func awsRestjson1_deserializeDocumentInternalException(v **types.InternalExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -49440,6 +49509,9 @@ func awsRestjson1_deserializeDocumentInternalException(v **types.InternalExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -49464,7 +49536,13 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -49480,6 +49558,9 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -49504,7 +49585,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -49520,6 +49607,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -49544,7 +49634,13 @@ func awsRestjson1_deserializeDocumentInvalidAggregationException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -49560,6 +49656,9 @@ func awsRestjson1_deserializeDocumentInvalidAggregationException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -49584,7 +49683,13 @@ func awsRestjson1_deserializeDocumentInvalidQueryException(v **types.InvalidQuer sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -49600,6 +49705,9 @@ func awsRestjson1_deserializeDocumentInvalidQueryException(v **types.InvalidQuer } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -49624,7 +49732,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -49640,6 +49754,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -49664,7 +49781,13 @@ func awsRestjson1_deserializeDocumentInvalidResponseException(v **types.InvalidR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -49680,6 +49803,9 @@ func awsRestjson1_deserializeDocumentInvalidResponseException(v **types.InvalidR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -49704,7 +49830,13 @@ func awsRestjson1_deserializeDocumentInvalidStateTransitionException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -49720,6 +49852,9 @@ func awsRestjson1_deserializeDocumentInvalidStateTransitionException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -51524,7 +51659,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -51540,6 +51681,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -51949,7 +52093,13 @@ func awsRestjson1_deserializeDocumentMalformedPolicyException(v **types.Malforme sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -51965,6 +52115,9 @@ func awsRestjson1_deserializeDocumentMalformedPolicyException(v **types.Malforme } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -52963,7 +53116,13 @@ func awsRestjson1_deserializeDocumentNotConfiguredException(v **types.NotConfigu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -52979,6 +53138,9 @@ func awsRestjson1_deserializeDocumentNotConfiguredException(v **types.NotConfigu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -55201,7 +55363,13 @@ func awsRestjson1_deserializeDocumentRegistrationCodeValidationException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -55217,6 +55385,9 @@ func awsRestjson1_deserializeDocumentRegistrationCodeValidationException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -55490,7 +55661,13 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -55524,6 +55701,9 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -55733,7 +55913,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -55749,6 +55935,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -55773,7 +55962,13 @@ func awsRestjson1_deserializeDocumentResourceRegistrationFailureException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -55789,6 +55984,9 @@ func awsRestjson1_deserializeDocumentResourceRegistrationFailureException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -57163,7 +57361,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -57179,6 +57383,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -57203,7 +57410,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -57219,6 +57432,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -57417,7 +57633,13 @@ func awsRestjson1_deserializeDocumentSqlParseException(v **types.SqlParseExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -57433,6 +57655,9 @@ func awsRestjson1_deserializeDocumentSqlParseException(v **types.SqlParseExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -58602,7 +58827,13 @@ func awsRestjson1_deserializeDocumentTaskAlreadyExistsException(v **types.TaskAl sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -58618,6 +58849,9 @@ func awsRestjson1_deserializeDocumentTaskAlreadyExistsException(v **types.TaskAl } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -59885,7 +60119,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -59901,6 +60141,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -60662,7 +60905,13 @@ func awsRestjson1_deserializeDocumentTransferAlreadyCompletedException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -60678,6 +60927,9 @@ func awsRestjson1_deserializeDocumentTransferAlreadyCompletedException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -60702,7 +60954,13 @@ func awsRestjson1_deserializeDocumentTransferConflictException(v **types.Transfe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -60718,6 +60976,9 @@ func awsRestjson1_deserializeDocumentTransferConflictException(v **types.Transfe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -60839,7 +61100,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -60855,6 +61122,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -61116,7 +61386,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -61132,6 +61408,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -61156,7 +61435,13 @@ func awsRestjson1_deserializeDocumentVersionConflictException(v **types.VersionC sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -61172,6 +61457,9 @@ func awsRestjson1_deserializeDocumentVersionConflictException(v **types.VersionC } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -61196,7 +61484,13 @@ func awsRestjson1_deserializeDocumentVersionsLimitExceededException(v **types.Ve sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -61212,6 +61506,9 @@ func awsRestjson1_deserializeDocumentVersionsLimitExceededException(v **types.Ve } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/iot1clickdevicesservice/deserializers.go b/service/iot1clickdevicesservice/deserializers.go index c9ff5fe7b4b..0de6ea30601 100644 --- a/service/iot1clickdevicesservice/deserializers.go +++ b/service/iot1clickdevicesservice/deserializers.go @@ -2710,7 +2710,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -2735,6 +2741,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2759,7 +2768,13 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -2784,6 +2799,9 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2808,7 +2826,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -2833,6 +2857,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2857,7 +2884,13 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -2882,6 +2915,9 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2906,7 +2942,13 @@ func awsRestjson1_deserializeDocumentRangeNotSatisfiableException(v **types.Rang sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -2931,6 +2973,9 @@ func awsRestjson1_deserializeDocumentRangeNotSatisfiableException(v **types.Rang } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2955,7 +3000,13 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -2980,6 +3031,9 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3004,7 +3058,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -3029,6 +3089,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/iot1clickprojects/deserializers.go b/service/iot1clickprojects/deserializers.go index cac0a5bb466..9a04fdafe5d 100644 --- a/service/iot1clickprojects/deserializers.go +++ b/service/iot1clickprojects/deserializers.go @@ -2341,7 +2341,13 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -2366,6 +2372,9 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2390,7 +2399,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -2415,6 +2430,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2937,7 +2955,13 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -2962,6 +2986,9 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2986,7 +3013,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -3011,6 +3044,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3071,7 +3107,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -3096,6 +3138,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/iotanalytics/deserializers.go b/service/iotanalytics/deserializers.go index 31e50628026..cc7e36266c9 100644 --- a/service/iotanalytics/deserializers.go +++ b/service/iotanalytics/deserializers.go @@ -8297,7 +8297,13 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8313,6 +8319,9 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8337,7 +8346,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8353,6 +8368,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8741,7 +8759,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8757,6 +8781,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9636,7 +9663,13 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9670,6 +9703,9 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9747,7 +9783,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9763,6 +9805,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10157,7 +10202,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10173,6 +10224,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10325,7 +10379,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10341,6 +10401,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/iotdataplane/deserializers.go b/service/iotdataplane/deserializers.go index 14b939089a5..9ab026ab193 100644 --- a/service/iotdataplane/deserializers.go +++ b/service/iotdataplane/deserializers.go @@ -1522,7 +1522,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1538,6 +1544,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1562,7 +1571,13 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1578,6 +1593,9 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1602,7 +1620,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1618,6 +1642,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1642,7 +1669,13 @@ func awsRestjson1_deserializeDocumentMethodNotAllowedException(v **types.MethodN sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1658,6 +1691,9 @@ func awsRestjson1_deserializeDocumentMethodNotAllowedException(v **types.MethodN } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1718,7 +1754,13 @@ func awsRestjson1_deserializeDocumentRequestEntityTooLargeException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1734,6 +1776,9 @@ func awsRestjson1_deserializeDocumentRequestEntityTooLargeException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1758,7 +1803,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1774,6 +1825,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1911,7 +1965,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1927,6 +1987,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1951,7 +2014,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1967,6 +2036,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1991,7 +2063,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2007,6 +2085,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2031,7 +2112,13 @@ func awsRestjson1_deserializeDocumentUnsupportedDocumentEncodingException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2047,6 +2134,9 @@ func awsRestjson1_deserializeDocumentUnsupportedDocumentEncodingException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/iotdeviceadvisor/deserializers.go b/service/iotdeviceadvisor/deserializers.go index 7720b33f4f4..c4860e9f6c8 100644 --- a/service/iotdeviceadvisor/deserializers.go +++ b/service/iotdeviceadvisor/deserializers.go @@ -2468,7 +2468,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2484,6 +2490,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2688,7 +2697,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2704,6 +2719,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2728,7 +2746,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2744,6 +2768,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3606,7 +3633,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3622,6 +3655,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/iotevents/deserializers.go b/service/iotevents/deserializers.go index c703a1b6aab..44a1ea46dbe 100644 --- a/service/iotevents/deserializers.go +++ b/service/iotevents/deserializers.go @@ -7107,7 +7107,13 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7123,6 +7129,9 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7147,7 +7156,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7163,6 +7178,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7394,7 +7412,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7410,6 +7434,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7885,7 +7912,13 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7919,6 +7952,9 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7943,7 +7979,13 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7959,6 +8001,9 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7983,7 +8028,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7999,6 +8050,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8106,7 +8160,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8122,6 +8182,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8723,7 +8786,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8739,6 +8808,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8860,7 +8932,13 @@ func awsRestjson1_deserializeDocumentUnsupportedOperationException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8876,6 +8954,9 @@ func awsRestjson1_deserializeDocumentUnsupportedOperationException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/ioteventsdata/deserializers.go b/service/ioteventsdata/deserializers.go index 9ea44f2350a..458ac9aaf30 100644 --- a/service/ioteventsdata/deserializers.go +++ b/service/ioteventsdata/deserializers.go @@ -3354,7 +3354,13 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3370,6 +3376,9 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3394,7 +3403,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3410,6 +3425,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3474,7 +3492,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3490,6 +3514,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3550,7 +3577,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3566,6 +3599,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3786,7 +3822,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3802,6 +3844,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/iotfleethub/deserializers.go b/service/iotfleethub/deserializers.go index 75dae949887..143b741639b 100644 --- a/service/iotfleethub/deserializers.go +++ b/service/iotfleethub/deserializers.go @@ -1553,7 +1553,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1569,6 +1575,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1593,7 +1602,13 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1609,6 +1624,9 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1633,7 +1651,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1649,6 +1673,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1673,7 +1700,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1689,6 +1722,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1713,7 +1749,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1729,6 +1771,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1789,7 +1834,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1805,6 +1856,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/iotfleetwise/deserializers.go b/service/iotfleetwise/deserializers.go index 7264ad76419..fb3771b32b2 100644 --- a/service/iotfleetwise/deserializers.go +++ b/service/iotfleetwise/deserializers.go @@ -6889,7 +6889,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6905,6 +6911,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7932,7 +7941,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7966,6 +7981,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8604,7 +8622,13 @@ func awsAwsjson10_deserializeDocumentDecoderManifestValidationException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "invalidNetworkInterfaces": if err := awsAwsjson10_deserializeDocumentInvalidNetworkInterfaces(&sv.InvalidNetworkInterfaces, value); err != nil { @@ -8630,6 +8654,9 @@ func awsAwsjson10_deserializeDocumentDecoderManifestValidationException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8921,7 +8948,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8950,6 +8983,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9057,7 +9093,13 @@ func awsAwsjson10_deserializeDocumentInvalidNodeException(v **types.InvalidNodeE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "invalidNodes": if err := awsAwsjson10_deserializeDocumentNodes(&sv.InvalidNodes, value); err != nil { @@ -9087,6 +9129,9 @@ func awsAwsjson10_deserializeDocumentInvalidNodeException(v **types.InvalidNodeE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9286,7 +9331,13 @@ func awsAwsjson10_deserializeDocumentInvalidSignalsException(v **types.InvalidSi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "invalidSignals": if err := awsAwsjson10_deserializeDocumentInvalidSignals(&sv.InvalidSignals, value); err != nil { @@ -9307,6 +9358,9 @@ func awsAwsjson10_deserializeDocumentInvalidSignalsException(v **types.InvalidSi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9331,7 +9385,13 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9365,6 +9425,9 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10290,7 +10353,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10324,6 +10393,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11310,7 +11382,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11357,6 +11435,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11787,7 +11868,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsAwsjson10_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -11817,6 +11904,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/iotjobsdataplane/deserializers.go b/service/iotjobsdataplane/deserializers.go index 686d50e8424..1c6c6dff09a 100644 --- a/service/iotjobsdataplane/deserializers.go +++ b/service/iotjobsdataplane/deserializers.go @@ -978,7 +978,13 @@ func awsRestjson1_deserializeDocumentCertificateValidationException(v **types.Ce sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -994,6 +1000,9 @@ func awsRestjson1_deserializeDocumentCertificateValidationException(v **types.Ce } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1054,7 +1063,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1070,6 +1085,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1094,7 +1112,13 @@ func awsRestjson1_deserializeDocumentInvalidStateTransitionException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1110,6 +1134,9 @@ func awsRestjson1_deserializeDocumentInvalidStateTransitionException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1481,7 +1508,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1497,6 +1530,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1521,7 +1557,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1537,6 +1579,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1561,7 +1606,13 @@ func awsRestjson1_deserializeDocumentTerminalStateException(v **types.TerminalSt sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1577,6 +1628,9 @@ func awsRestjson1_deserializeDocumentTerminalStateException(v **types.TerminalSt } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1601,7 +1655,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1630,6 +1690,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/iotsecuretunneling/deserializers.go b/service/iotsecuretunneling/deserializers.go index b0e07240b82..be465ebb840 100644 --- a/service/iotsecuretunneling/deserializers.go +++ b/service/iotsecuretunneling/deserializers.go @@ -1105,7 +1105,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1121,6 +1127,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1145,7 +1154,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1161,6 +1176,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/iotsitewise/deserializers.go b/service/iotsitewise/deserializers.go index 04ff4dfe6e7..528d6adf1ef 100644 --- a/service/iotsitewise/deserializers.go +++ b/service/iotsitewise/deserializers.go @@ -14906,7 +14906,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14922,6 +14928,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19806,7 +19815,13 @@ func awsRestjson1_deserializeDocumentConflictingOperationException(v **types.Con sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19840,6 +19855,9 @@ func awsRestjson1_deserializeDocumentConflictingOperationException(v **types.Con } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21158,7 +21176,13 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21174,6 +21198,9 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21273,7 +21300,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21289,6 +21322,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21441,7 +21477,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21457,6 +21499,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22072,7 +22117,13 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22106,6 +22157,9 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22494,7 +22548,13 @@ func awsRestjson1_deserializeDocumentQueryTimeoutException(v **types.QueryTimeou sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22510,6 +22570,9 @@ func awsRestjson1_deserializeDocumentQueryTimeoutException(v **types.QueryTimeou } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22575,7 +22638,13 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22609,6 +22678,9 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22633,7 +22705,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22649,6 +22727,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22796,7 +22877,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22812,6 +22899,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22952,7 +23042,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22968,6 +23064,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23243,7 +23342,13 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23268,6 +23373,9 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23436,7 +23544,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23452,6 +23566,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23516,7 +23633,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -23532,6 +23655,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/iotthingsgraph/deserializers.go b/service/iotthingsgraph/deserializers.go index e31b86b3f46..693b27301a4 100644 --- a/service/iotthingsgraph/deserializers.go +++ b/service/iotthingsgraph/deserializers.go @@ -5138,7 +5138,13 @@ func awsAwsjson11_deserializeDocumentInternalFailureException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5154,6 +5160,9 @@ func awsAwsjson11_deserializeDocumentInternalFailureException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5178,7 +5187,13 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5194,6 +5209,9 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5218,7 +5236,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5234,6 +5258,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5307,7 +5334,13 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5323,6 +5356,9 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5347,7 +5383,13 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5363,6 +5405,9 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5387,7 +5432,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5403,6 +5454,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6037,7 +6091,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6053,6 +6113,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/iottwinmaker/deserializers.go b/service/iottwinmaker/deserializers.go index db3b8fb73ed..9efa9c12c21 100644 --- a/service/iottwinmaker/deserializers.go +++ b/service/iottwinmaker/deserializers.go @@ -7867,7 +7867,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7883,6 +7889,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8785,7 +8794,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8801,6 +8816,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8825,7 +8843,13 @@ func awsRestjson1_deserializeDocumentConnectorFailureException(v **types.Connect sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8841,6 +8865,9 @@ func awsRestjson1_deserializeDocumentConnectorFailureException(v **types.Connect } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8865,7 +8892,13 @@ func awsRestjson1_deserializeDocumentConnectorTimeoutException(v **types.Connect sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8881,6 +8914,9 @@ func awsRestjson1_deserializeDocumentConnectorTimeoutException(v **types.Connect } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10027,7 +10063,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10043,6 +10085,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11615,7 +11660,13 @@ func awsRestjson1_deserializeDocumentQueryTimeoutException(v **types.QueryTimeou sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11631,6 +11682,9 @@ func awsRestjson1_deserializeDocumentQueryTimeoutException(v **types.QueryTimeou } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11789,7 +11843,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11805,6 +11865,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12265,7 +12328,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12281,6 +12350,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12871,7 +12943,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12887,6 +12965,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12911,7 +12992,13 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12927,6 +13014,9 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12951,7 +13041,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12967,6 +13063,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/iotwireless/deserializers.go b/service/iotwireless/deserializers.go index f563648edb9..154cfeebc70 100644 --- a/service/iotwireless/deserializers.go +++ b/service/iotwireless/deserializers.go @@ -16746,7 +16746,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16762,6 +16768,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17119,7 +17128,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -17153,6 +17168,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18511,7 +18529,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -18527,6 +18551,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21722,7 +21749,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -21756,6 +21789,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22951,7 +22987,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -22967,6 +23009,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22991,7 +23036,13 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -23016,6 +23067,9 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23206,7 +23260,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -23222,6 +23282,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/ivs/deserializers.go b/service/ivs/deserializers.go index e993381288f..b4fae213b7c 100644 --- a/service/ivs/deserializers.go +++ b/service/ivs/deserializers.go @@ -5489,7 +5489,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "exceptionMessage": if value != nil { @@ -5505,6 +5511,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5975,7 +5984,13 @@ func awsRestjson1_deserializeDocumentChannelNotBroadcasting(v **types.ChannelNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "exceptionMessage": if value != nil { @@ -5991,6 +6006,9 @@ func awsRestjson1_deserializeDocumentChannelNotBroadcasting(v **types.ChannelNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6166,7 +6184,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "exceptionMessage": if value != nil { @@ -6182,6 +6206,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6283,7 +6310,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "exceptionMessage": if value != nil { @@ -6299,6 +6332,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6323,7 +6359,13 @@ func awsRestjson1_deserializeDocumentPendingVerification(v **types.PendingVerifi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "exceptionMessage": if value != nil { @@ -6339,6 +6381,9 @@ func awsRestjson1_deserializeDocumentPendingVerification(v **types.PendingVerifi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7040,7 +7085,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "exceptionMessage": if value != nil { @@ -7056,6 +7107,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7120,7 +7174,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "exceptionMessage": if value != nil { @@ -7136,6 +7196,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7923,7 +7986,13 @@ func awsRestjson1_deserializeDocumentStreamUnavailable(v **types.StreamUnavailab sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "exceptionMessage": if value != nil { @@ -7939,6 +8008,9 @@ func awsRestjson1_deserializeDocumentStreamUnavailable(v **types.StreamUnavailab } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7999,7 +8071,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "exceptionMessage": if value != nil { @@ -8015,6 +8093,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8142,7 +8223,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "exceptionMessage": if value != nil { @@ -8158,6 +8245,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/ivschat/deserializers.go b/service/ivschat/deserializers.go index 8d572000261..cdfbba69cc8 100644 --- a/service/ivschat/deserializers.go +++ b/service/ivschat/deserializers.go @@ -3294,7 +3294,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3310,6 +3316,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3374,7 +3383,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3408,6 +3423,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3532,7 +3550,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3548,6 +3572,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3794,7 +3821,13 @@ func awsRestjson1_deserializeDocumentPendingVerification(v **types.PendingVerifi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3810,6 +3843,9 @@ func awsRestjson1_deserializeDocumentPendingVerification(v **types.PendingVerifi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3834,7 +3870,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3868,6 +3910,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4065,7 +4110,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "limit": if value != nil { @@ -4112,6 +4163,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4172,7 +4226,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "limit": if value != nil { @@ -4219,6 +4279,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4243,7 +4306,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -4273,6 +4342,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/ivsrealtime/deserializers.go b/service/ivsrealtime/deserializers.go index a63de8a63f9..fbed3c3b3eb 100644 --- a/service/ivsrealtime/deserializers.go +++ b/service/ivsrealtime/deserializers.go @@ -5647,7 +5647,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "exceptionMessage": if value != nil { @@ -5663,6 +5669,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6008,7 +6017,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "exceptionMessage": if value != nil { @@ -6024,6 +6039,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6980,7 +6998,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "exceptionMessage": if value != nil { @@ -6996,6 +7020,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7631,7 +7658,13 @@ func awsRestjson1_deserializeDocumentPendingVerification(v **types.PendingVerifi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "exceptionMessage": if value != nil { @@ -7647,6 +7680,9 @@ func awsRestjson1_deserializeDocumentPendingVerification(v **types.PendingVerifi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8008,7 +8044,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "exceptionMessage": if value != nil { @@ -8024,6 +8066,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8178,7 +8223,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "exceptionMessage": if value != nil { @@ -8194,6 +8245,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8809,7 +8863,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "exceptionMessage": if value != nil { @@ -8825,6 +8885,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/kafka/deserializers.go b/service/kafka/deserializers.go index c939347bebe..fb230086b35 100644 --- a/service/kafka/deserializers.go +++ b/service/kafka/deserializers.go @@ -10516,7 +10516,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "invalidParameter": if value != nil { @@ -10541,6 +10547,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12200,7 +12209,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "invalidParameter": if value != nil { @@ -12225,6 +12240,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12662,7 +12680,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "invalidParameter": if value != nil { @@ -12687,6 +12711,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12751,7 +12778,13 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "invalidParameter": if value != nil { @@ -12776,6 +12809,9 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13383,7 +13419,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "invalidParameter": if value != nil { @@ -13408,6 +13450,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14404,7 +14449,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "invalidParameter": if value != nil { @@ -14429,6 +14480,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14583,7 +14637,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "invalidParameter": if value != nil { @@ -14608,6 +14668,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14750,7 +14813,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "invalidParameter": if value != nil { @@ -14775,6 +14844,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/kafkaconnect/deserializers.go b/service/kafkaconnect/deserializers.go index c4b2acb88d4..cd4df145d0f 100644 --- a/service/kafkaconnect/deserializers.go +++ b/service/kafkaconnect/deserializers.go @@ -3669,7 +3669,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3685,6 +3691,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3799,7 +3808,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3815,6 +3830,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4342,7 +4360,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4358,6 +4382,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4382,7 +4409,13 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4398,6 +4431,9 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4574,7 +4610,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4590,6 +4632,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4911,7 +4956,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4927,6 +4978,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5036,7 +5090,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5052,6 +5112,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5076,7 +5139,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5092,6 +5161,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/kendra/deserializers.go b/service/kendra/deserializers.go index d9b1138f53d..942475fdfab 100644 --- a/service/kendra/deserializers.go +++ b/service/kendra/deserializers.go @@ -8512,7 +8512,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8528,6 +8534,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9733,7 +9742,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9749,6 +9764,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13480,7 +13498,13 @@ func awsAwsjson11_deserializeDocumentFeaturedResultsConflictException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ConflictingItems": if err := awsAwsjson11_deserializeDocumentConflictingItems(&sv.ConflictingItems, value); err != nil { @@ -13501,6 +13525,9 @@ func awsAwsjson11_deserializeDocumentFeaturedResultsConflictException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14979,7 +15006,13 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14995,6 +15028,9 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15019,7 +15055,13 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15035,6 +15077,9 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16607,7 +16652,13 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistException(v **types.Res sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16623,6 +16674,9 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistException(v **types.Res } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16647,7 +16701,13 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16663,6 +16723,9 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16687,7 +16750,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16703,6 +16772,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16727,7 +16799,13 @@ func awsAwsjson11_deserializeDocumentResourceUnavailableException(v **types.Reso sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16743,6 +16821,9 @@ func awsAwsjson11_deserializeDocumentResourceUnavailableException(v **types.Reso } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18104,7 +18185,13 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -18120,6 +18207,9 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19908,7 +19998,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -19924,6 +20020,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20207,7 +20306,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -20223,6 +20328,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/kendraranking/deserializers.go b/service/kendraranking/deserializers.go index ab0d52a5edc..9973b55ab01 100644 --- a/service/kendraranking/deserializers.go +++ b/service/kendraranking/deserializers.go @@ -1406,7 +1406,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1422,6 +1428,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1490,7 +1499,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1506,6 +1521,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1530,7 +1548,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1546,6 +1570,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1802,7 +1829,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1818,6 +1851,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1842,7 +1878,13 @@ func awsAwsjson10_deserializeDocumentResourceUnavailableException(v **types.Reso sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1858,6 +1900,9 @@ func awsAwsjson10_deserializeDocumentResourceUnavailableException(v **types.Reso } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1882,7 +1927,13 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1898,6 +1949,9 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2005,7 +2059,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2021,6 +2081,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2045,7 +2108,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2061,6 +2130,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/keyspaces/deserializers.go b/service/keyspaces/deserializers.go index e394aba8815..132c1d935d3 100644 --- a/service/keyspaces/deserializers.go +++ b/service/keyspaces/deserializers.go @@ -2501,7 +2501,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2517,6 +2523,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3017,7 +3026,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3033,6 +3048,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3189,7 +3207,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3205,6 +3229,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3659,7 +3686,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3684,6 +3717,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3759,7 +3795,13 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3775,6 +3817,9 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4260,7 +4305,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4276,6 +4327,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/kinesis/deserializers.go b/service/kinesis/deserializers.go index 927565066fd..64c23978837 100644 --- a/service/kinesis/deserializers.go +++ b/service/kinesis/deserializers.go @@ -4258,7 +4258,13 @@ func awsAwsjson11_deserializeDocumentInternalFailureException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4274,6 +4280,9 @@ func awsAwsjson11_deserializeDocumentInternalFailureException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4298,7 +4307,13 @@ func awsAwsjson11_deserializeDocumentKMSAccessDeniedException(v **types.KMSAcces sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4314,6 +4329,9 @@ func awsAwsjson11_deserializeDocumentKMSAccessDeniedException(v **types.KMSAcces } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4338,7 +4356,13 @@ func awsAwsjson11_deserializeDocumentKMSDisabledException(v **types.KMSDisabledE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4354,6 +4378,9 @@ func awsAwsjson11_deserializeDocumentKMSDisabledException(v **types.KMSDisabledE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4378,7 +4405,13 @@ func awsAwsjson11_deserializeDocumentKMSInvalidStateException(v **types.KMSInval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4394,6 +4427,9 @@ func awsAwsjson11_deserializeDocumentKMSInvalidStateException(v **types.KMSInval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4418,7 +4454,13 @@ func awsAwsjson11_deserializeDocumentKMSNotFoundException(v **types.KMSNotFoundE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4434,6 +4476,9 @@ func awsAwsjson11_deserializeDocumentKMSNotFoundException(v **types.KMSNotFoundE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4458,7 +4503,13 @@ func awsAwsjson11_deserializeDocumentKMSOptInRequired(v **types.KMSOptInRequired sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4474,6 +4525,9 @@ func awsAwsjson11_deserializeDocumentKMSOptInRequired(v **types.KMSOptInRequired } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4498,7 +4552,13 @@ func awsAwsjson11_deserializeDocumentKMSThrottlingException(v **types.KMSThrottl sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4514,6 +4574,9 @@ func awsAwsjson11_deserializeDocumentKMSThrottlingException(v **types.KMSThrottl } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4659,7 +4722,13 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4675,6 +4744,9 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4699,7 +4771,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4715,6 +4793,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5430,7 +5511,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5446,6 +5533,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5731,7 +5821,13 @@ func awsAwsjson11_deserializeDocumentExpiredIteratorException(v **types.ExpiredI sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5747,6 +5843,9 @@ func awsAwsjson11_deserializeDocumentExpiredIteratorException(v **types.ExpiredI } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5771,7 +5870,13 @@ func awsAwsjson11_deserializeDocumentExpiredNextTokenException(v **types.Expired sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5787,6 +5892,9 @@ func awsAwsjson11_deserializeDocumentExpiredNextTokenException(v **types.Expired } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5811,7 +5919,13 @@ func awsAwsjson11_deserializeDocumentInvalidArgumentException(v **types.InvalidA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5827,6 +5941,9 @@ func awsAwsjson11_deserializeDocumentInvalidArgumentException(v **types.InvalidA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5851,7 +5968,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5867,6 +5990,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5927,7 +6053,13 @@ func awsAwsjson11_deserializeDocumentProvisionedThroughputExceededException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5943,6 +6075,9 @@ func awsAwsjson11_deserializeDocumentProvisionedThroughputExceededException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6761,7 +6896,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6777,6 +6918,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/kinesisanalytics/deserializers.go b/service/kinesisanalytics/deserializers.go index 5ab702e0e3b..6089882691f 100644 --- a/service/kinesisanalytics/deserializers.go +++ b/service/kinesisanalytics/deserializers.go @@ -3221,7 +3221,13 @@ func awsAwsjson11_deserializeDocumentCodeValidationException(v **types.CodeValid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3237,6 +3243,9 @@ func awsAwsjson11_deserializeDocumentCodeValidationException(v **types.CodeValid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3261,7 +3270,13 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3277,6 +3292,9 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3713,7 +3731,13 @@ func awsAwsjson11_deserializeDocumentInvalidApplicationConfigurationException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3729,6 +3753,9 @@ func awsAwsjson11_deserializeDocumentInvalidApplicationConfigurationException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3753,7 +3780,13 @@ func awsAwsjson11_deserializeDocumentInvalidArgumentException(v **types.InvalidA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3769,6 +3802,9 @@ func awsAwsjson11_deserializeDocumentInvalidArgumentException(v **types.InvalidA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4078,7 +4114,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4094,6 +4136,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4632,7 +4677,13 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4648,6 +4699,9 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4672,7 +4726,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4688,6 +4748,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4712,7 +4775,13 @@ func awsAwsjson11_deserializeDocumentResourceProvisionedThroughputExceededExcept sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4728,6 +4797,9 @@ func awsAwsjson11_deserializeDocumentResourceProvisionedThroughputExceededExcept } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4810,7 +4882,13 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4826,6 +4904,9 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4983,7 +5064,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4999,6 +5086,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5023,7 +5113,13 @@ func awsAwsjson11_deserializeDocumentUnableToDetectSchemaException(v **types.Una sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5049,6 +5145,9 @@ func awsAwsjson11_deserializeDocumentUnableToDetectSchemaException(v **types.Una } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5073,7 +5172,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5089,6 +5194,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/kinesisanalyticsv2/deserializers.go b/service/kinesisanalyticsv2/deserializers.go index 49c0dd3ad9c..65146cb59a4 100644 --- a/service/kinesisanalyticsv2/deserializers.go +++ b/service/kinesisanalyticsv2/deserializers.go @@ -5811,7 +5811,13 @@ func awsAwsjson11_deserializeDocumentCodeValidationException(v **types.CodeValid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5827,6 +5833,9 @@ func awsAwsjson11_deserializeDocumentCodeValidationException(v **types.CodeValid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5851,7 +5860,13 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5867,6 +5882,9 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6634,7 +6652,13 @@ func awsAwsjson11_deserializeDocumentInvalidApplicationConfigurationException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6650,6 +6674,9 @@ func awsAwsjson11_deserializeDocumentInvalidApplicationConfigurationException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6674,7 +6701,13 @@ func awsAwsjson11_deserializeDocumentInvalidArgumentException(v **types.InvalidA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6690,6 +6723,9 @@ func awsAwsjson11_deserializeDocumentInvalidArgumentException(v **types.InvalidA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6714,7 +6750,13 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6730,6 +6772,9 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7039,7 +7084,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7055,6 +7106,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7957,7 +8011,13 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7973,6 +8033,9 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7997,7 +8060,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8013,6 +8082,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8037,7 +8109,13 @@ func awsAwsjson11_deserializeDocumentResourceProvisionedThroughputExceededExcept sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8053,6 +8131,9 @@ func awsAwsjson11_deserializeDocumentResourceProvisionedThroughputExceededExcept } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8377,7 +8458,13 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8393,6 +8480,9 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8753,7 +8843,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8769,6 +8865,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8793,7 +8892,13 @@ func awsAwsjson11_deserializeDocumentUnableToDetectSchemaException(v **types.Una sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8819,6 +8924,9 @@ func awsAwsjson11_deserializeDocumentUnableToDetectSchemaException(v **types.Una } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8843,7 +8951,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8859,6 +8973,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/kinesisvideo/deserializers.go b/service/kinesisvideo/deserializers.go index 993ca72154f..de36e62cd8a 100644 --- a/service/kinesisvideo/deserializers.go +++ b/service/kinesisvideo/deserializers.go @@ -4875,7 +4875,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4891,6 +4897,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4915,7 +4924,13 @@ func awsRestjson1_deserializeDocumentAccountChannelLimitExceededException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4931,6 +4946,9 @@ func awsRestjson1_deserializeDocumentAccountChannelLimitExceededException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4955,7 +4973,13 @@ func awsRestjson1_deserializeDocumentAccountStreamLimitExceededException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4971,6 +4995,9 @@ func awsRestjson1_deserializeDocumentAccountStreamLimitExceededException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5126,7 +5153,13 @@ func awsRestjson1_deserializeDocumentClientLimitExceededException(v **types.Clie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5142,6 +5175,9 @@ func awsRestjson1_deserializeDocumentClientLimitExceededException(v **types.Clie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5224,7 +5260,13 @@ func awsRestjson1_deserializeDocumentDeviceStreamLimitExceededException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5240,6 +5282,9 @@ func awsRestjson1_deserializeDocumentDeviceStreamLimitExceededException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5552,7 +5597,13 @@ func awsRestjson1_deserializeDocumentInvalidArgumentException(v **types.InvalidA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5568,6 +5619,9 @@ func awsRestjson1_deserializeDocumentInvalidArgumentException(v **types.InvalidA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5592,7 +5646,13 @@ func awsRestjson1_deserializeDocumentInvalidDeviceException(v **types.InvalidDev sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5608,6 +5668,9 @@ func awsRestjson1_deserializeDocumentInvalidDeviceException(v **types.InvalidDev } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5632,7 +5695,13 @@ func awsRestjson1_deserializeDocumentInvalidResourceFormatException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5648,6 +5717,9 @@ func awsRestjson1_deserializeDocumentInvalidResourceFormatException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6206,7 +6278,13 @@ func awsRestjson1_deserializeDocumentNoDataRetentionException(v **types.NoDataRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6222,6 +6300,9 @@ func awsRestjson1_deserializeDocumentNoDataRetentionException(v **types.NoDataRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6246,7 +6327,13 @@ func awsRestjson1_deserializeDocumentNotAuthorizedException(v **types.NotAuthori sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6262,6 +6349,9 @@ func awsRestjson1_deserializeDocumentNotAuthorizedException(v **types.NotAuthori } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6495,7 +6585,13 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6511,6 +6607,9 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6535,7 +6634,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6551,6 +6656,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6708,7 +6816,13 @@ func awsRestjson1_deserializeDocumentStreamEdgeConfigurationNotFoundException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6724,6 +6838,9 @@ func awsRestjson1_deserializeDocumentStreamEdgeConfigurationNotFoundException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6905,7 +7022,13 @@ func awsRestjson1_deserializeDocumentTagsPerResourceExceededLimitException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6921,6 +7044,9 @@ func awsRestjson1_deserializeDocumentTagsPerResourceExceededLimitException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6981,7 +7107,13 @@ func awsRestjson1_deserializeDocumentVersionMismatchException(v **types.VersionM sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6997,6 +7129,9 @@ func awsRestjson1_deserializeDocumentVersionMismatchException(v **types.VersionM } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/kinesisvideoarchivedmedia/deserializers.go b/service/kinesisvideoarchivedmedia/deserializers.go index 2c2d08316a0..cae6acd0405 100644 --- a/service/kinesisvideoarchivedmedia/deserializers.go +++ b/service/kinesisvideoarchivedmedia/deserializers.go @@ -1341,7 +1341,13 @@ func awsRestjson1_deserializeDocumentClientLimitExceededException(v **types.Clie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1357,6 +1363,9 @@ func awsRestjson1_deserializeDocumentClientLimitExceededException(v **types.Clie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1612,7 +1621,13 @@ func awsRestjson1_deserializeDocumentInvalidArgumentException(v **types.InvalidA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1628,6 +1643,9 @@ func awsRestjson1_deserializeDocumentInvalidArgumentException(v **types.InvalidA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1652,7 +1670,13 @@ func awsRestjson1_deserializeDocumentInvalidCodecPrivateDataException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1668,6 +1692,9 @@ func awsRestjson1_deserializeDocumentInvalidCodecPrivateDataException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1692,7 +1719,13 @@ func awsRestjson1_deserializeDocumentInvalidMediaFrameException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1708,6 +1741,9 @@ func awsRestjson1_deserializeDocumentInvalidMediaFrameException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1732,7 +1768,13 @@ func awsRestjson1_deserializeDocumentMissingCodecPrivateDataException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1748,6 +1790,9 @@ func awsRestjson1_deserializeDocumentMissingCodecPrivateDataException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1772,7 +1817,13 @@ func awsRestjson1_deserializeDocumentNoDataRetentionException(v **types.NoDataRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1788,6 +1839,9 @@ func awsRestjson1_deserializeDocumentNoDataRetentionException(v **types.NoDataRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1812,7 +1866,13 @@ func awsRestjson1_deserializeDocumentNotAuthorizedException(v **types.NotAuthori sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1828,6 +1888,9 @@ func awsRestjson1_deserializeDocumentNotAuthorizedException(v **types.NotAuthori } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1852,7 +1915,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1868,6 +1937,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1892,7 +1964,13 @@ func awsRestjson1_deserializeDocumentUnsupportedStreamMediaTypeException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1908,6 +1986,9 @@ func awsRestjson1_deserializeDocumentUnsupportedStreamMediaTypeException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/kinesisvideomedia/deserializers.go b/service/kinesisvideomedia/deserializers.go index 3370f89dfe8..9001f8c7c7a 100644 --- a/service/kinesisvideomedia/deserializers.go +++ b/service/kinesisvideomedia/deserializers.go @@ -399,7 +399,13 @@ func awsRestjson1_deserializeDocumentClientLimitExceededException(v **types.Clie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -415,6 +421,9 @@ func awsRestjson1_deserializeDocumentClientLimitExceededException(v **types.Clie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -439,7 +448,13 @@ func awsRestjson1_deserializeDocumentConnectionLimitExceededException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -455,6 +470,9 @@ func awsRestjson1_deserializeDocumentConnectionLimitExceededException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -479,7 +497,13 @@ func awsRestjson1_deserializeDocumentInvalidArgumentException(v **types.InvalidA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -495,6 +519,9 @@ func awsRestjson1_deserializeDocumentInvalidArgumentException(v **types.InvalidA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -519,7 +546,13 @@ func awsRestjson1_deserializeDocumentInvalidEndpointException(v **types.InvalidE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -535,6 +568,9 @@ func awsRestjson1_deserializeDocumentInvalidEndpointException(v **types.InvalidE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -559,7 +595,13 @@ func awsRestjson1_deserializeDocumentNotAuthorizedException(v **types.NotAuthori sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -575,6 +617,9 @@ func awsRestjson1_deserializeDocumentNotAuthorizedException(v **types.NotAuthori } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -599,7 +644,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -615,6 +666,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/kinesisvideosignaling/deserializers.go b/service/kinesisvideosignaling/deserializers.go index 96fddb568c0..8a45f527721 100644 --- a/service/kinesisvideosignaling/deserializers.go +++ b/service/kinesisvideosignaling/deserializers.go @@ -597,7 +597,13 @@ func awsRestjson1_deserializeDocumentClientLimitExceededException(v **types.Clie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -613,6 +619,9 @@ func awsRestjson1_deserializeDocumentClientLimitExceededException(v **types.Clie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -738,7 +747,13 @@ func awsRestjson1_deserializeDocumentInvalidArgumentException(v **types.InvalidA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -754,6 +769,9 @@ func awsRestjson1_deserializeDocumentInvalidArgumentException(v **types.InvalidA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -778,7 +796,13 @@ func awsRestjson1_deserializeDocumentInvalidClientException(v **types.InvalidCli sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -794,6 +818,9 @@ func awsRestjson1_deserializeDocumentInvalidClientException(v **types.InvalidCli } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -818,7 +845,13 @@ func awsRestjson1_deserializeDocumentNotAuthorizedException(v **types.NotAuthori sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -834,6 +867,9 @@ func awsRestjson1_deserializeDocumentNotAuthorizedException(v **types.NotAuthori } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -858,7 +894,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -874,6 +916,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -898,7 +943,13 @@ func awsRestjson1_deserializeDocumentSessionExpiredException(v **types.SessionEx sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -914,6 +965,9 @@ func awsRestjson1_deserializeDocumentSessionExpiredException(v **types.SessionEx } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/kinesisvideowebrtcstorage/deserializers.go b/service/kinesisvideowebrtcstorage/deserializers.go index c6930f6bebb..f6d6b901f2f 100644 --- a/service/kinesisvideowebrtcstorage/deserializers.go +++ b/service/kinesisvideowebrtcstorage/deserializers.go @@ -400,7 +400,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -416,6 +422,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -440,7 +449,13 @@ func awsRestjson1_deserializeDocumentClientLimitExceededException(v **types.Clie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -456,6 +471,9 @@ func awsRestjson1_deserializeDocumentClientLimitExceededException(v **types.Clie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -480,7 +498,13 @@ func awsRestjson1_deserializeDocumentInvalidArgumentException(v **types.InvalidA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -496,6 +520,9 @@ func awsRestjson1_deserializeDocumentInvalidArgumentException(v **types.InvalidA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -520,7 +547,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -536,6 +569,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/kms/deserializers.go b/service/kms/deserializers.go index acd0c603d07..d56d6410f7c 100644 --- a/service/kms/deserializers.go +++ b/service/kms/deserializers.go @@ -8410,7 +8410,13 @@ func awsAwsjson11_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8426,6 +8432,9 @@ func awsAwsjson11_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8450,7 +8459,13 @@ func awsAwsjson11_deserializeDocumentCloudHsmClusterInUseException(v **types.Clo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8466,6 +8481,9 @@ func awsAwsjson11_deserializeDocumentCloudHsmClusterInUseException(v **types.Clo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8490,7 +8508,13 @@ func awsAwsjson11_deserializeDocumentCloudHsmClusterInvalidConfigurationExceptio sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8506,6 +8530,9 @@ func awsAwsjson11_deserializeDocumentCloudHsmClusterInvalidConfigurationExceptio } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8530,7 +8557,13 @@ func awsAwsjson11_deserializeDocumentCloudHsmClusterNotActiveException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8546,6 +8579,9 @@ func awsAwsjson11_deserializeDocumentCloudHsmClusterNotActiveException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8570,7 +8606,13 @@ func awsAwsjson11_deserializeDocumentCloudHsmClusterNotFoundException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8586,6 +8628,9 @@ func awsAwsjson11_deserializeDocumentCloudHsmClusterNotFoundException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8610,7 +8655,13 @@ func awsAwsjson11_deserializeDocumentCloudHsmClusterNotRelatedException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8626,6 +8677,9 @@ func awsAwsjson11_deserializeDocumentCloudHsmClusterNotRelatedException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8650,7 +8704,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8666,6 +8726,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8690,7 +8753,13 @@ func awsAwsjson11_deserializeDocumentCustomKeyStoreHasCMKsException(v **types.Cu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8706,6 +8775,9 @@ func awsAwsjson11_deserializeDocumentCustomKeyStoreHasCMKsException(v **types.Cu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8730,7 +8802,13 @@ func awsAwsjson11_deserializeDocumentCustomKeyStoreInvalidStateException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8746,6 +8824,9 @@ func awsAwsjson11_deserializeDocumentCustomKeyStoreInvalidStateException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8770,7 +8851,13 @@ func awsAwsjson11_deserializeDocumentCustomKeyStoreNameInUseException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8786,6 +8873,9 @@ func awsAwsjson11_deserializeDocumentCustomKeyStoreNameInUseException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8810,7 +8900,13 @@ func awsAwsjson11_deserializeDocumentCustomKeyStoreNotFoundException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8826,6 +8922,9 @@ func awsAwsjson11_deserializeDocumentCustomKeyStoreNotFoundException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8999,7 +9098,13 @@ func awsAwsjson11_deserializeDocumentDependencyTimeoutException(v **types.Depend sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9015,6 +9120,9 @@ func awsAwsjson11_deserializeDocumentDependencyTimeoutException(v **types.Depend } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9039,7 +9147,13 @@ func awsAwsjson11_deserializeDocumentDisabledException(v **types.DisabledExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9055,6 +9169,9 @@ func awsAwsjson11_deserializeDocumentDisabledException(v **types.DisabledExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9079,7 +9196,13 @@ func awsAwsjson11_deserializeDocumentDryRunOperationException(v **types.DryRunOp sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9095,6 +9218,9 @@ func awsAwsjson11_deserializeDocumentDryRunOperationException(v **types.DryRunOp } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9191,7 +9317,13 @@ func awsAwsjson11_deserializeDocumentExpiredImportTokenException(v **types.Expir sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9207,6 +9339,9 @@ func awsAwsjson11_deserializeDocumentExpiredImportTokenException(v **types.Expir } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9453,7 +9588,13 @@ func awsAwsjson11_deserializeDocumentIncorrectKeyException(v **types.IncorrectKe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9469,6 +9610,9 @@ func awsAwsjson11_deserializeDocumentIncorrectKeyException(v **types.IncorrectKe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9493,7 +9637,13 @@ func awsAwsjson11_deserializeDocumentIncorrectKeyMaterialException(v **types.Inc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9509,6 +9659,9 @@ func awsAwsjson11_deserializeDocumentIncorrectKeyMaterialException(v **types.Inc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9533,7 +9686,13 @@ func awsAwsjson11_deserializeDocumentIncorrectTrustAnchorException(v **types.Inc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9549,6 +9708,9 @@ func awsAwsjson11_deserializeDocumentIncorrectTrustAnchorException(v **types.Inc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9573,7 +9735,13 @@ func awsAwsjson11_deserializeDocumentInvalidAliasNameException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9589,6 +9757,9 @@ func awsAwsjson11_deserializeDocumentInvalidAliasNameException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9613,7 +9784,13 @@ func awsAwsjson11_deserializeDocumentInvalidArnException(v **types.InvalidArnExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9629,6 +9806,9 @@ func awsAwsjson11_deserializeDocumentInvalidArnException(v **types.InvalidArnExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9653,7 +9833,13 @@ func awsAwsjson11_deserializeDocumentInvalidCiphertextException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9669,6 +9855,9 @@ func awsAwsjson11_deserializeDocumentInvalidCiphertextException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9693,7 +9882,13 @@ func awsAwsjson11_deserializeDocumentInvalidGrantIdException(v **types.InvalidGr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9709,6 +9904,9 @@ func awsAwsjson11_deserializeDocumentInvalidGrantIdException(v **types.InvalidGr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9733,7 +9931,13 @@ func awsAwsjson11_deserializeDocumentInvalidGrantTokenException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9749,6 +9953,9 @@ func awsAwsjson11_deserializeDocumentInvalidGrantTokenException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9773,7 +9980,13 @@ func awsAwsjson11_deserializeDocumentInvalidImportTokenException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9789,6 +10002,9 @@ func awsAwsjson11_deserializeDocumentInvalidImportTokenException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9813,7 +10029,13 @@ func awsAwsjson11_deserializeDocumentInvalidKeyUsageException(v **types.InvalidK sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9829,6 +10051,9 @@ func awsAwsjson11_deserializeDocumentInvalidKeyUsageException(v **types.InvalidK } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9853,7 +10078,13 @@ func awsAwsjson11_deserializeDocumentInvalidMarkerException(v **types.InvalidMar sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9869,6 +10100,9 @@ func awsAwsjson11_deserializeDocumentInvalidMarkerException(v **types.InvalidMar } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10269,7 +10503,13 @@ func awsAwsjson11_deserializeDocumentKeyUnavailableException(v **types.KeyUnavai sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10285,6 +10525,9 @@ func awsAwsjson11_deserializeDocumentKeyUnavailableException(v **types.KeyUnavai } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10309,7 +10552,13 @@ func awsAwsjson11_deserializeDocumentKMSInternalException(v **types.KMSInternalE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10325,6 +10574,9 @@ func awsAwsjson11_deserializeDocumentKMSInternalException(v **types.KMSInternalE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10349,7 +10601,13 @@ func awsAwsjson11_deserializeDocumentKMSInvalidMacException(v **types.KMSInvalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10365,6 +10623,9 @@ func awsAwsjson11_deserializeDocumentKMSInvalidMacException(v **types.KMSInvalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10389,7 +10650,13 @@ func awsAwsjson11_deserializeDocumentKMSInvalidSignatureException(v **types.KMSI sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10405,6 +10672,9 @@ func awsAwsjson11_deserializeDocumentKMSInvalidSignatureException(v **types.KMSI } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10429,7 +10699,13 @@ func awsAwsjson11_deserializeDocumentKMSInvalidStateException(v **types.KMSInval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10445,6 +10721,9 @@ func awsAwsjson11_deserializeDocumentKMSInvalidStateException(v **types.KMSInval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10469,7 +10748,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10485,6 +10770,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10545,7 +10833,13 @@ func awsAwsjson11_deserializeDocumentMalformedPolicyDocumentException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10561,6 +10855,9 @@ func awsAwsjson11_deserializeDocumentMalformedPolicyDocumentException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10718,7 +11015,13 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10734,6 +11037,9 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10978,7 +11284,13 @@ func awsAwsjson11_deserializeDocumentTagException(v **types.TagException, value sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10994,6 +11306,9 @@ func awsAwsjson11_deserializeDocumentTagException(v **types.TagException, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11052,7 +11367,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11068,6 +11389,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11092,7 +11416,13 @@ func awsAwsjson11_deserializeDocumentXksKeyAlreadyInUseException(v **types.XksKe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11108,6 +11438,9 @@ func awsAwsjson11_deserializeDocumentXksKeyAlreadyInUseException(v **types.XksKe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11172,7 +11505,13 @@ func awsAwsjson11_deserializeDocumentXksKeyInvalidConfigurationException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11188,6 +11527,9 @@ func awsAwsjson11_deserializeDocumentXksKeyInvalidConfigurationException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11212,7 +11554,13 @@ func awsAwsjson11_deserializeDocumentXksKeyNotFoundException(v **types.XksKeyNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11228,6 +11576,9 @@ func awsAwsjson11_deserializeDocumentXksKeyNotFoundException(v **types.XksKeyNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11328,7 +11679,13 @@ func awsAwsjson11_deserializeDocumentXksProxyIncorrectAuthenticationCredentialEx sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11344,6 +11701,9 @@ func awsAwsjson11_deserializeDocumentXksProxyIncorrectAuthenticationCredentialEx } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11368,7 +11728,13 @@ func awsAwsjson11_deserializeDocumentXksProxyInvalidConfigurationException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11384,6 +11750,9 @@ func awsAwsjson11_deserializeDocumentXksProxyInvalidConfigurationException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11408,7 +11777,13 @@ func awsAwsjson11_deserializeDocumentXksProxyInvalidResponseException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11424,6 +11799,9 @@ func awsAwsjson11_deserializeDocumentXksProxyInvalidResponseException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11448,7 +11826,13 @@ func awsAwsjson11_deserializeDocumentXksProxyUriEndpointInUseException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11464,6 +11848,9 @@ func awsAwsjson11_deserializeDocumentXksProxyUriEndpointInUseException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11488,7 +11875,13 @@ func awsAwsjson11_deserializeDocumentXksProxyUriInUseException(v **types.XksProx sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11504,6 +11897,9 @@ func awsAwsjson11_deserializeDocumentXksProxyUriInUseException(v **types.XksProx } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11528,7 +11924,13 @@ func awsAwsjson11_deserializeDocumentXksProxyUriUnreachableException(v **types.X sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11544,6 +11946,9 @@ func awsAwsjson11_deserializeDocumentXksProxyUriUnreachableException(v **types.X } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11568,7 +11973,13 @@ func awsAwsjson11_deserializeDocumentXksProxyVpcEndpointServiceInUseException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11584,6 +11995,9 @@ func awsAwsjson11_deserializeDocumentXksProxyVpcEndpointServiceInUseException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11608,7 +12022,13 @@ func awsAwsjson11_deserializeDocumentXksProxyVpcEndpointServiceInvalidConfigurat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11624,6 +12044,9 @@ func awsAwsjson11_deserializeDocumentXksProxyVpcEndpointServiceInvalidConfigurat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11648,7 +12071,13 @@ func awsAwsjson11_deserializeDocumentXksProxyVpcEndpointServiceNotFoundException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11664,6 +12093,9 @@ func awsAwsjson11_deserializeDocumentXksProxyVpcEndpointServiceNotFoundException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/lakeformation/deserializers.go b/service/lakeformation/deserializers.go index 47af61b1921..8cbd427d59e 100644 --- a/service/lakeformation/deserializers.go +++ b/service/lakeformation/deserializers.go @@ -8738,7 +8738,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8754,6 +8760,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8809,7 +8818,13 @@ func awsRestjson1_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8825,6 +8840,9 @@ func awsRestjson1_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9202,7 +9220,13 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9218,6 +9242,9 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9765,7 +9792,13 @@ func awsRestjson1_deserializeDocumentEntityNotFoundException(v **types.EntityNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9781,6 +9814,9 @@ func awsRestjson1_deserializeDocumentEntityNotFoundException(v **types.EntityNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9924,7 +9960,13 @@ func awsRestjson1_deserializeDocumentExpiredException(v **types.ExpiredException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9940,6 +9982,9 @@ func awsRestjson1_deserializeDocumentExpiredException(v **types.ExpiredException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10043,7 +10088,13 @@ func awsRestjson1_deserializeDocumentGlueEncryptionException(v **types.GlueEncry sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10059,6 +10110,9 @@ func awsRestjson1_deserializeDocumentGlueEncryptionException(v **types.GlueEncry } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10083,7 +10137,13 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10099,6 +10159,9 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10123,7 +10186,13 @@ func awsRestjson1_deserializeDocumentInvalidInputException(v **types.InvalidInpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10139,6 +10208,9 @@ func awsRestjson1_deserializeDocumentInvalidInputException(v **types.InvalidInpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10579,7 +10651,13 @@ func awsRestjson1_deserializeDocumentOperationTimeoutException(v **types.Operati sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10595,6 +10673,9 @@ func awsRestjson1_deserializeDocumentOperationTimeoutException(v **types.Operati } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10838,7 +10919,13 @@ func awsRestjson1_deserializeDocumentPermissionTypeMismatchException(v **types.P sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10854,6 +10941,9 @@ func awsRestjson1_deserializeDocumentPermissionTypeMismatchException(v **types.P } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11339,7 +11429,13 @@ func awsRestjson1_deserializeDocumentResourceNotReadyException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11355,6 +11451,9 @@ func awsRestjson1_deserializeDocumentResourceNotReadyException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11379,7 +11478,13 @@ func awsRestjson1_deserializeDocumentResourceNumberLimitExceededException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11395,6 +11500,9 @@ func awsRestjson1_deserializeDocumentResourceNumberLimitExceededException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11536,7 +11644,13 @@ func awsRestjson1_deserializeDocumentStatisticsNotReadyYetException(v **types.St sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11552,6 +11666,9 @@ func awsRestjson1_deserializeDocumentStatisticsNotReadyYetException(v **types.St } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12138,7 +12255,13 @@ func awsRestjson1_deserializeDocumentThrottledException(v **types.ThrottledExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12154,6 +12277,9 @@ func awsRestjson1_deserializeDocumentThrottledException(v **types.ThrottledExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12178,7 +12304,13 @@ func awsRestjson1_deserializeDocumentTransactionCanceledException(v **types.Tran sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12194,6 +12326,9 @@ func awsRestjson1_deserializeDocumentTransactionCanceledException(v **types.Tran } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12218,7 +12353,13 @@ func awsRestjson1_deserializeDocumentTransactionCommitInProgressException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12234,6 +12375,9 @@ func awsRestjson1_deserializeDocumentTransactionCommitInProgressException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12258,7 +12402,13 @@ func awsRestjson1_deserializeDocumentTransactionCommittedException(v **types.Tra sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12274,6 +12424,9 @@ func awsRestjson1_deserializeDocumentTransactionCommittedException(v **types.Tra } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12549,7 +12702,13 @@ func awsRestjson1_deserializeDocumentWorkUnitsNotReadyYetException(v **types.Wor sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12565,6 +12724,9 @@ func awsRestjson1_deserializeDocumentWorkUnitsNotReadyYetException(v **types.Wor } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/lambda/deserializers.go b/service/lambda/deserializers.go index 8df4b43d147..97f59de1e10 100644 --- a/service/lambda/deserializers.go +++ b/service/lambda/deserializers.go @@ -16123,7 +16123,13 @@ func awsRestjson1_deserializeDocumentCodeSigningConfigNotFoundException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16148,6 +16154,9 @@ func awsRestjson1_deserializeDocumentCodeSigningConfigNotFoundException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16212,7 +16221,13 @@ func awsRestjson1_deserializeDocumentCodeStorageExceededException(v **types.Code sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16237,6 +16252,9 @@ func awsRestjson1_deserializeDocumentCodeStorageExceededException(v **types.Code } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16261,7 +16279,13 @@ func awsRestjson1_deserializeDocumentCodeVerificationFailedException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16286,6 +16310,9 @@ func awsRestjson1_deserializeDocumentCodeVerificationFailedException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16638,7 +16665,13 @@ func awsRestjson1_deserializeDocumentEC2AccessDeniedException(v **types.EC2Acces sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16663,6 +16696,9 @@ func awsRestjson1_deserializeDocumentEC2AccessDeniedException(v **types.EC2Acces } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16687,7 +16723,13 @@ func awsRestjson1_deserializeDocumentEC2ThrottledException(v **types.EC2Throttle sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16712,6 +16754,9 @@ func awsRestjson1_deserializeDocumentEC2ThrottledException(v **types.EC2Throttle } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16736,7 +16781,13 @@ func awsRestjson1_deserializeDocumentEC2UnexpectedException(v **types.EC2Unexpec sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "EC2ErrorCode": if value != nil { @@ -16770,6 +16821,9 @@ func awsRestjson1_deserializeDocumentEC2UnexpectedException(v **types.EC2Unexpec } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16794,7 +16848,13 @@ func awsRestjson1_deserializeDocumentEFSIOException(v **types.EFSIOException, va sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16819,6 +16879,9 @@ func awsRestjson1_deserializeDocumentEFSIOException(v **types.EFSIOException, va } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16843,7 +16906,13 @@ func awsRestjson1_deserializeDocumentEFSMountConnectivityException(v **types.EFS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16868,6 +16937,9 @@ func awsRestjson1_deserializeDocumentEFSMountConnectivityException(v **types.EFS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16892,7 +16964,13 @@ func awsRestjson1_deserializeDocumentEFSMountFailureException(v **types.EFSMount sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16917,6 +16995,9 @@ func awsRestjson1_deserializeDocumentEFSMountFailureException(v **types.EFSMount } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16941,7 +17022,13 @@ func awsRestjson1_deserializeDocumentEFSMountTimeoutException(v **types.EFSMount sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16966,6 +17053,9 @@ func awsRestjson1_deserializeDocumentEFSMountTimeoutException(v **types.EFSMount } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17060,7 +17150,13 @@ func awsRestjson1_deserializeDocumentENILimitReachedException(v **types.ENILimit sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -17085,6 +17181,9 @@ func awsRestjson1_deserializeDocumentENILimitReachedException(v **types.ENILimit } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18759,7 +18858,13 @@ func awsRestjson1_deserializeDocumentInvalidCodeSignatureException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -18784,6 +18889,9 @@ func awsRestjson1_deserializeDocumentInvalidCodeSignatureException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18808,7 +18916,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18833,6 +18947,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18857,7 +18974,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestContentException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18882,6 +19005,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestContentException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18906,7 +19032,13 @@ func awsRestjson1_deserializeDocumentInvalidRuntimeException(v **types.InvalidRu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -18931,6 +19063,9 @@ func awsRestjson1_deserializeDocumentInvalidRuntimeException(v **types.InvalidRu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18955,7 +19090,13 @@ func awsRestjson1_deserializeDocumentInvalidSecurityGroupIDException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -18980,6 +19121,9 @@ func awsRestjson1_deserializeDocumentInvalidSecurityGroupIDException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19004,7 +19148,13 @@ func awsRestjson1_deserializeDocumentInvalidSubnetIDException(v **types.InvalidS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -19029,6 +19179,9 @@ func awsRestjson1_deserializeDocumentInvalidSubnetIDException(v **types.InvalidS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19053,7 +19206,13 @@ func awsRestjson1_deserializeDocumentInvalidZipFileException(v **types.InvalidZi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -19078,6 +19237,9 @@ func awsRestjson1_deserializeDocumentInvalidZipFileException(v **types.InvalidZi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19102,7 +19264,13 @@ func awsRestjson1_deserializeDocumentKMSAccessDeniedException(v **types.KMSAcces sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -19127,6 +19295,9 @@ func awsRestjson1_deserializeDocumentKMSAccessDeniedException(v **types.KMSAcces } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19151,7 +19322,13 @@ func awsRestjson1_deserializeDocumentKMSDisabledException(v **types.KMSDisabledE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -19176,6 +19353,9 @@ func awsRestjson1_deserializeDocumentKMSDisabledException(v **types.KMSDisabledE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19200,7 +19380,13 @@ func awsRestjson1_deserializeDocumentKMSInvalidStateException(v **types.KMSInval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -19225,6 +19411,9 @@ func awsRestjson1_deserializeDocumentKMSInvalidStateException(v **types.KMSInval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19249,7 +19438,13 @@ func awsRestjson1_deserializeDocumentKMSNotFoundException(v **types.KMSNotFoundE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -19274,6 +19469,9 @@ func awsRestjson1_deserializeDocumentKMSNotFoundException(v **types.KMSNotFoundE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19842,7 +20040,13 @@ func awsRestjson1_deserializeDocumentPolicyLengthExceededException(v **types.Pol sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19867,6 +20071,9 @@ func awsRestjson1_deserializeDocumentPolicyLengthExceededException(v **types.Pol } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19891,7 +20098,13 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19916,6 +20129,9 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20080,7 +20296,13 @@ func awsRestjson1_deserializeDocumentProvisionedConcurrencyConfigNotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20105,6 +20327,9 @@ func awsRestjson1_deserializeDocumentProvisionedConcurrencyConfigNotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20165,7 +20390,13 @@ func awsRestjson1_deserializeDocumentRecursiveInvocationException(v **types.Recu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -20190,6 +20421,9 @@ func awsRestjson1_deserializeDocumentRecursiveInvocationException(v **types.Recu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20214,7 +20448,13 @@ func awsRestjson1_deserializeDocumentRequestTooLargeException(v **types.RequestT sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20239,6 +20479,9 @@ func awsRestjson1_deserializeDocumentRequestTooLargeException(v **types.RequestT } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20263,7 +20506,13 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20288,6 +20537,9 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20312,7 +20564,13 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -20337,6 +20595,9 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20361,7 +20622,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -20386,6 +20653,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20410,7 +20680,13 @@ func awsRestjson1_deserializeDocumentResourceNotReadyException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20435,6 +20711,9 @@ func awsRestjson1_deserializeDocumentResourceNotReadyException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20709,7 +20988,13 @@ func awsRestjson1_deserializeDocumentServiceException(v **types.ServiceException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -20734,6 +21019,9 @@ func awsRestjson1_deserializeDocumentServiceException(v **types.ServiceException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20794,7 +21082,13 @@ func awsRestjson1_deserializeDocumentSnapStartException(v **types.SnapStartExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -20819,6 +21113,9 @@ func awsRestjson1_deserializeDocumentSnapStartException(v **types.SnapStartExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20843,7 +21140,13 @@ func awsRestjson1_deserializeDocumentSnapStartNotReadyException(v **types.SnapSt sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -20868,6 +21171,9 @@ func awsRestjson1_deserializeDocumentSnapStartNotReadyException(v **types.SnapSt } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20941,7 +21247,13 @@ func awsRestjson1_deserializeDocumentSnapStartTimeoutException(v **types.SnapSta sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -20966,6 +21278,9 @@ func awsRestjson1_deserializeDocumentSnapStartTimeoutException(v **types.SnapSta } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21145,7 +21460,13 @@ func awsRestjson1_deserializeDocumentSubnetIPAddressLimitReachedException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -21170,6 +21491,9 @@ func awsRestjson1_deserializeDocumentSubnetIPAddressLimitReachedException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21279,7 +21603,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21322,6 +21652,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21422,7 +21755,13 @@ func awsRestjson1_deserializeDocumentUnsupportedMediaTypeException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21447,6 +21786,9 @@ func awsRestjson1_deserializeDocumentUnsupportedMediaTypeException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/launchwizard/deserializers.go b/service/launchwizard/deserializers.go index 69004a95ab4..05f30730905 100644 --- a/service/launchwizard/deserializers.go +++ b/service/launchwizard/deserializers.go @@ -2625,7 +2625,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2641,6 +2647,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2665,7 +2674,13 @@ func awsRestjson1_deserializeDocumentResourceLimitException(v **types.ResourceLi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2681,6 +2696,9 @@ func awsRestjson1_deserializeDocumentResourceLimitException(v **types.ResourceLi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2705,7 +2723,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2721,6 +2745,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2815,7 +2842,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2831,6 +2864,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/lexmodelbuildingservice/deserializers.go b/service/lexmodelbuildingservice/deserializers.go index 8c127c8c23f..edf657dfb89 100644 --- a/service/lexmodelbuildingservice/deserializers.go +++ b/service/lexmodelbuildingservice/deserializers.go @@ -8448,7 +8448,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8464,6 +8470,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8488,7 +8497,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8504,6 +8519,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9274,7 +9292,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9290,6 +9314,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9841,7 +9868,13 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9857,6 +9890,9 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9939,7 +9975,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9964,6 +10006,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10616,7 +10661,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10632,6 +10683,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10756,7 +10810,13 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10772,6 +10832,9 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10854,7 +10917,13 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "exampleReference": if err := awsRestjson1_deserializeDocumentResourceReference(&sv.ExampleReference, value); err != nil { @@ -10875,6 +10944,9 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/lexmodelsv2/deserializers.go b/service/lexmodelsv2/deserializers.go index b0350b8ea36..f5a8ace4a8e 100644 --- a/service/lexmodelsv2/deserializers.go +++ b/service/lexmodelsv2/deserializers.go @@ -26546,7 +26546,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -26562,6 +26568,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30048,7 +30057,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -30064,6 +30079,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -31229,7 +31247,13 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -31245,6 +31269,9 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -31724,7 +31751,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -31740,6 +31773,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -32321,7 +32357,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -32337,6 +32379,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -35633,7 +35678,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -35662,6 +35713,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -36813,7 +36867,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -36829,6 +36889,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/lexruntimeservice/deserializers.go b/service/lexruntimeservice/deserializers.go index 38e2c2ffecd..51992c77883 100644 --- a/service/lexruntimeservice/deserializers.go +++ b/service/lexruntimeservice/deserializers.go @@ -1737,7 +1737,13 @@ func awsRestjson1_deserializeDocumentBadGatewayException(v **types.BadGatewayExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1753,6 +1759,9 @@ func awsRestjson1_deserializeDocumentBadGatewayException(v **types.BadGatewayExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1777,7 +1786,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1793,6 +1808,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1866,7 +1884,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1882,6 +1906,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1906,7 +1933,13 @@ func awsRestjson1_deserializeDocumentDependencyFailedException(v **types.Depende sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1922,6 +1955,9 @@ func awsRestjson1_deserializeDocumentDependencyFailedException(v **types.Depende } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2365,7 +2401,13 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2381,6 +2423,9 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2405,7 +2450,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2430,6 +2481,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2488,7 +2542,13 @@ func awsRestjson1_deserializeDocumentLoopDetectedException(v **types.LoopDetecte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2504,6 +2564,9 @@ func awsRestjson1_deserializeDocumentLoopDetectedException(v **types.LoopDetecte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2528,7 +2591,13 @@ func awsRestjson1_deserializeDocumentNotAcceptableException(v **types.NotAccepta sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2544,6 +2613,9 @@ func awsRestjson1_deserializeDocumentNotAcceptableException(v **types.NotAccepta } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2568,7 +2640,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2584,6 +2662,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2658,7 +2739,13 @@ func awsRestjson1_deserializeDocumentRequestTimeoutException(v **types.RequestTi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2674,6 +2761,9 @@ func awsRestjson1_deserializeDocumentRequestTimeoutException(v **types.RequestTi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2837,7 +2927,13 @@ func awsRestjson1_deserializeDocumentUnsupportedMediaTypeException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2853,6 +2949,9 @@ func awsRestjson1_deserializeDocumentUnsupportedMediaTypeException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/lexruntimev2/deserializers.go b/service/lexruntimev2/deserializers.go index f071462b7a6..85f194b0e26 100644 --- a/service/lexruntimev2/deserializers.go +++ b/service/lexruntimev2/deserializers.go @@ -1713,7 +1713,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1729,6 +1735,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1992,7 +2001,13 @@ func awsRestjson1_deserializeDocumentBadGatewayException(v **types.BadGatewayExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2008,6 +2023,9 @@ func awsRestjson1_deserializeDocumentBadGatewayException(v **types.BadGatewayExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2180,7 +2198,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2196,6 +2220,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2220,7 +2247,13 @@ func awsRestjson1_deserializeDocumentDependencyFailedException(v **types.Depende sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2236,6 +2269,9 @@ func awsRestjson1_deserializeDocumentDependencyFailedException(v **types.Depende } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2612,7 +2648,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2628,6 +2670,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2936,7 +2981,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2952,6 +3003,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3680,7 +3734,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3696,6 +3756,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3769,7 +3832,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3785,6 +3854,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/licensemanager/deserializers.go b/service/licensemanager/deserializers.go index 96f94d96748..d7c91e8f6ab 100644 --- a/service/licensemanager/deserializers.go +++ b/service/licensemanager/deserializers.go @@ -7028,7 +7028,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7044,6 +7050,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7140,7 +7149,13 @@ func awsAwsjson11_deserializeDocumentAuthorizationException(v **types.Authorizat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7156,6 +7171,9 @@ func awsAwsjson11_deserializeDocumentAuthorizationException(v **types.Authorizat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7280,7 +7298,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7296,6 +7320,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7721,7 +7748,13 @@ func awsAwsjson11_deserializeDocumentEntitlementNotAllowedException(v **types.En sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7737,6 +7770,9 @@ func awsAwsjson11_deserializeDocumentEntitlementNotAllowedException(v **types.En } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7862,7 +7898,13 @@ func awsAwsjson11_deserializeDocumentFailedDependencyException(v **types.FailedD sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -7887,6 +7929,9 @@ func awsAwsjson11_deserializeDocumentFailedDependencyException(v **types.FailedD } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7911,7 +7956,13 @@ func awsAwsjson11_deserializeDocumentFilterLimitExceededException(v **types.Filt sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7927,6 +7978,9 @@ func awsAwsjson11_deserializeDocumentFilterLimitExceededException(v **types.Filt } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8283,7 +8337,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterValueException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8299,6 +8359,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterValueException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8323,7 +8386,13 @@ func awsAwsjson11_deserializeDocumentInvalidResourceStateException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8339,6 +8408,9 @@ func awsAwsjson11_deserializeDocumentInvalidResourceStateException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9494,7 +9566,13 @@ func awsAwsjson11_deserializeDocumentLicenseUsageException(v **types.LicenseUsag sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9510,6 +9588,9 @@ func awsAwsjson11_deserializeDocumentLicenseUsageException(v **types.LicenseUsag } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9740,7 +9821,13 @@ func awsAwsjson11_deserializeDocumentNoEntitlementsAllowedException(v **types.No sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9756,6 +9843,9 @@ func awsAwsjson11_deserializeDocumentNoEntitlementsAllowedException(v **types.No } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10071,7 +10161,13 @@ func awsAwsjson11_deserializeDocumentRateLimitExceededException(v **types.RateLi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10087,6 +10183,9 @@ func awsAwsjson11_deserializeDocumentRateLimitExceededException(v **types.RateLi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10165,7 +10264,13 @@ func awsAwsjson11_deserializeDocumentRedirectException(v **types.RedirectExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Location": if value != nil { @@ -10190,6 +10295,9 @@ func awsAwsjson11_deserializeDocumentRedirectException(v **types.RedirectExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10620,7 +10728,13 @@ func awsAwsjson11_deserializeDocumentResourceLimitExceededException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10636,6 +10750,9 @@ func awsAwsjson11_deserializeDocumentResourceLimitExceededException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10660,7 +10777,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10676,6 +10799,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10749,7 +10875,13 @@ func awsAwsjson11_deserializeDocumentServerInternalException(v **types.ServerInt sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10765,6 +10897,9 @@ func awsAwsjson11_deserializeDocumentServerInternalException(v **types.ServerInt } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11028,7 +11163,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedDigitalSignatureMethodException( sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11044,6 +11185,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedDigitalSignatureMethodException( } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11068,7 +11212,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11084,6 +11234,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/licensemanagerlinuxsubscriptions/deserializers.go b/service/licensemanagerlinuxsubscriptions/deserializers.go index 8dca85cf005..43ab57114e9 100644 --- a/service/licensemanagerlinuxsubscriptions/deserializers.go +++ b/service/licensemanagerlinuxsubscriptions/deserializers.go @@ -2092,7 +2092,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2108,6 +2114,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2332,7 +2341,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2348,6 +2363,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2576,7 +2594,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2592,6 +2616,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2616,7 +2643,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2632,6 +2665,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/licensemanagerusersubscriptions/deserializers.go b/service/licensemanagerusersubscriptions/deserializers.go index 6d9bf1ffd12..cccf947f601 100644 --- a/service/licensemanagerusersubscriptions/deserializers.go +++ b/service/licensemanagerusersubscriptions/deserializers.go @@ -2198,7 +2198,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2214,6 +2220,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2278,7 +2287,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2294,6 +2309,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2699,7 +2717,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2715,6 +2739,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2872,7 +2899,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2888,6 +2921,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2912,7 +2948,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2928,6 +2970,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3069,7 +3114,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3085,6 +3136,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3109,7 +3163,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3125,6 +3185,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/lightsail/deserializers.go b/service/lightsail/deserializers.go index d3069548182..2a2fc61af32 100644 --- a/service/lightsail/deserializers.go +++ b/service/lightsail/deserializers.go @@ -20773,7 +20773,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -20816,6 +20822,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21175,7 +21184,13 @@ func awsAwsjson11_deserializeDocumentAccountSetupInProgressException(v **types.A sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -21218,6 +21233,9 @@ func awsAwsjson11_deserializeDocumentAccountSetupInProgressException(v **types.A } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -28378,7 +28396,13 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -28421,6 +28445,9 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30358,7 +30385,13 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -30401,6 +30434,9 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30610,7 +30646,13 @@ func awsAwsjson11_deserializeDocumentOperationFailureException(v **types.Operati sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -30653,6 +30695,9 @@ func awsAwsjson11_deserializeDocumentOperationFailureException(v **types.Operati } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -32941,7 +32986,13 @@ func awsAwsjson11_deserializeDocumentServiceException(v **types.ServiceException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -32984,6 +33035,9 @@ func awsAwsjson11_deserializeDocumentServiceException(v **types.ServiceException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -33869,7 +33923,13 @@ func awsAwsjson11_deserializeDocumentUnauthenticatedException(v **types.Unauthen sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -33912,6 +33972,9 @@ func awsAwsjson11_deserializeDocumentUnauthenticatedException(v **types.Unauthen } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/location/deserializers.go b/service/location/deserializers.go index c5ff03e5f8e..81447e46c5e 100644 --- a/service/location/deserializers.go +++ b/service/location/deserializers.go @@ -10603,7 +10603,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10619,6 +10625,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11738,7 +11747,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11754,6 +11769,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12368,7 +12386,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12384,6 +12408,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14236,7 +14263,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14252,6 +14285,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15102,7 +15138,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15118,6 +15160,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15334,7 +15379,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15350,6 +15401,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15427,7 +15481,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -15457,6 +15517,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/lookoutequipment/deserializers.go b/service/lookoutequipment/deserializers.go index fb79e7fcc62..d02570dabde 100644 --- a/service/lookoutequipment/deserializers.go +++ b/service/lookoutequipment/deserializers.go @@ -6162,7 +6162,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6178,6 +6184,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6255,7 +6264,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6271,6 +6286,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7684,7 +7702,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7700,6 +7724,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8914,7 +8941,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8930,6 +8963,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9337,7 +9373,13 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9353,6 +9395,9 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9460,7 +9505,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9476,6 +9527,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9544,7 +9598,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9560,6 +9620,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/lookoutmetrics/deserializers.go b/service/lookoutmetrics/deserializers.go index 47a993811c1..dfe99f7c74e 100644 --- a/service/lookoutmetrics/deserializers.go +++ b/service/lookoutmetrics/deserializers.go @@ -5062,7 +5062,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5078,6 +5084,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6380,7 +6389,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6414,6 +6429,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7867,7 +7885,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7883,6 +7907,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8972,7 +8999,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9006,6 +9039,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9189,7 +9225,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9241,6 +9283,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9719,7 +9764,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9735,6 +9786,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9759,7 +9813,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Fields": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.Fields, value); err != nil { @@ -9789,6 +9849,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/lookoutvision/deserializers.go b/service/lookoutvision/deserializers.go index 3dda9d931d5..d66d2319604 100644 --- a/service/lookoutvision/deserializers.go +++ b/service/lookoutvision/deserializers.go @@ -3898,7 +3898,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3914,6 +3920,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4017,7 +4026,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4051,6 +4066,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4692,7 +4710,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4721,6 +4745,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5868,7 +5895,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5902,6 +5935,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5975,7 +6011,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6027,6 +6069,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6192,7 +6237,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6239,6 +6290,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6263,7 +6317,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6279,6 +6339,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/m2/deserializers.go b/service/m2/deserializers.go index 0d319139085..12dc9d5095b 100644 --- a/service/m2/deserializers.go +++ b/service/m2/deserializers.go @@ -6388,7 +6388,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6404,6 +6410,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7236,7 +7245,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7270,6 +7285,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8174,7 +8192,13 @@ func awsRestjson1_deserializeDocumentExecutionTimeoutException(v **types.Executi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8190,6 +8214,9 @@ func awsRestjson1_deserializeDocumentExecutionTimeoutException(v **types.Executi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8458,7 +8485,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8487,6 +8520,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9120,7 +9156,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9154,6 +9196,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9357,7 +9402,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9409,6 +9460,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9433,7 +9487,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9449,6 +9509,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9627,7 +9690,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9674,6 +9743,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9698,7 +9770,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -9728,6 +9806,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/machinelearning/deserializers.go b/service/machinelearning/deserializers.go index b4d7e697577..60fd15475fa 100644 --- a/service/machinelearning/deserializers.go +++ b/service/machinelearning/deserializers.go @@ -4372,7 +4372,13 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatchException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -4401,6 +4407,9 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatchException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4425,7 +4434,13 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -4454,6 +4469,9 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4478,7 +4496,13 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -4507,6 +4531,9 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4531,7 +4558,13 @@ func awsAwsjson11_deserializeDocumentInvalidTagException(v **types.InvalidTagExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4547,6 +4580,9 @@ func awsAwsjson11_deserializeDocumentInvalidTagException(v **types.InvalidTagExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4571,7 +4607,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -4600,6 +4642,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5076,7 +5121,13 @@ func awsAwsjson11_deserializeDocumentPredictorNotMountedException(v **types.Pred sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5092,6 +5143,9 @@ func awsAwsjson11_deserializeDocumentPredictorNotMountedException(v **types.Pred } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5427,7 +5481,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -5456,6 +5516,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5590,7 +5653,13 @@ func awsAwsjson11_deserializeDocumentTagLimitExceededException(v **types.TagLimi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5606,6 +5675,9 @@ func awsAwsjson11_deserializeDocumentTagLimitExceededException(v **types.TagLimi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/macie2/deserializers.go b/service/macie2/deserializers.go index 97827c44733..1e3ac7746ce 100644 --- a/service/macie2/deserializers.go +++ b/service/macie2/deserializers.go @@ -14566,7 +14566,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14582,6 +14588,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16638,7 +16647,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16654,6 +16669,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17990,7 +18008,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18006,6 +18030,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19861,7 +19888,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19877,6 +19910,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21386,7 +21422,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -21402,6 +21444,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22185,7 +22230,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22201,6 +22252,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22225,7 +22279,13 @@ func awsRestjson1_deserializeDocumentUnprocessableEntityException(v **types.Unpr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22241,6 +22301,9 @@ func awsRestjson1_deserializeDocumentUnprocessableEntityException(v **types.Unpr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22709,7 +22772,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22725,6 +22794,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/mailmanager/deserializers.go b/service/mailmanager/deserializers.go index 2d0f307b09f..3bff9703dc2 100644 --- a/service/mailmanager/deserializers.go +++ b/service/mailmanager/deserializers.go @@ -5744,7 +5744,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5760,6 +5766,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6608,7 +6617,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6624,6 +6639,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8358,7 +8376,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8374,6 +8398,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10096,7 +10123,13 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10112,6 +10145,9 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10291,7 +10327,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10307,6 +10349,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10423,7 +10468,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10439,6 +10490,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/managedblockchain/deserializers.go b/service/managedblockchain/deserializers.go index 4846832a96d..55b75df7478 100644 --- a/service/managedblockchain/deserializers.go +++ b/service/managedblockchain/deserializers.go @@ -4345,7 +4345,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4361,6 +4367,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4677,7 +4686,13 @@ func awsRestjson1_deserializeDocumentIllegalActionException(v **types.IllegalAct sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4693,6 +4708,9 @@ func awsRestjson1_deserializeDocumentIllegalActionException(v **types.IllegalAct } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4717,13 +4735,22 @@ func awsRestjson1_deserializeDocumentInternalServiceErrorException(v **types.Int sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4748,7 +4775,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4764,6 +4797,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6852,7 +6888,13 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6868,6 +6910,9 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6892,7 +6937,13 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6908,6 +6959,9 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6932,7 +6986,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6957,6 +7017,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6981,7 +7044,13 @@ func awsRestjson1_deserializeDocumentResourceNotReadyException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6997,6 +7066,9 @@ func awsRestjson1_deserializeDocumentResourceNotReadyException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7021,13 +7093,22 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7052,7 +7133,13 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7077,6 +7164,9 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/managedblockchainquery/deserializers.go b/service/managedblockchainquery/deserializers.go index 984603738da..22e84c8f615 100644 --- a/service/managedblockchainquery/deserializers.go +++ b/service/managedblockchainquery/deserializers.go @@ -1891,7 +1891,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1907,6 +1913,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2378,7 +2387,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2407,6 +2422,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2471,7 +2489,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2505,6 +2529,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2529,7 +2556,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2581,6 +2614,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2605,7 +2641,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2652,6 +2694,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3388,7 +3433,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -3418,6 +3469,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/marketplaceagreement/deserializers.go b/service/marketplaceagreement/deserializers.go index 2a99064ceeb..1070bf44548 100644 --- a/service/marketplaceagreement/deserializers.go +++ b/service/marketplaceagreement/deserializers.go @@ -802,7 +802,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -827,6 +833,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1720,7 +1729,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1745,6 +1760,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2237,7 +2255,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2280,6 +2304,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2526,7 +2553,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2551,6 +2584,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2699,7 +2735,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fields": if err := awsAwsjson10_deserializeDocumentValidationExceptionFieldList(&sv.Fields, value); err != nil { @@ -2738,6 +2780,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/marketplacecatalog/deserializers.go b/service/marketplacecatalog/deserializers.go index 04172722199..349a97540a4 100644 --- a/service/marketplacecatalog/deserializers.go +++ b/service/marketplacecatalog/deserializers.go @@ -2409,7 +2409,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2425,6 +2431,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3308,7 +3317,13 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3324,6 +3339,9 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3689,7 +3707,13 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3705,6 +3729,9 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3729,7 +3756,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3745,6 +3778,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3769,7 +3805,13 @@ func awsRestjson1_deserializeDocumentResourceNotSupportedException(v **types.Res sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3785,6 +3827,9 @@ func awsRestjson1_deserializeDocumentResourceNotSupportedException(v **types.Res } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3858,7 +3903,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3874,6 +3925,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3981,7 +4035,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3997,6 +4057,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4021,7 +4084,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4037,6 +4106,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/marketplacecommerceanalytics/deserializers.go b/service/marketplacecommerceanalytics/deserializers.go index 4611bee1f64..0c04210eee3 100644 --- a/service/marketplacecommerceanalytics/deserializers.go +++ b/service/marketplacecommerceanalytics/deserializers.go @@ -306,7 +306,13 @@ func awsAwsjson11_deserializeDocumentMarketplaceCommerceAnalyticsException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -322,6 +328,9 @@ func awsAwsjson11_deserializeDocumentMarketplaceCommerceAnalyticsException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/marketplacedeployment/deserializers.go b/service/marketplacedeployment/deserializers.go index aedd7369f0e..8c785fac7b8 100644 --- a/service/marketplacedeployment/deserializers.go +++ b/service/marketplacedeployment/deserializers.go @@ -868,7 +868,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -884,6 +890,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -908,7 +917,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -933,6 +948,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -957,7 +975,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -973,6 +997,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -997,7 +1024,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1013,6 +1046,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1037,7 +1073,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1053,6 +1095,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1149,7 +1194,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1165,6 +1216,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1189,7 +1243,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldName": if value != nil { @@ -1214,6 +1274,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/marketplaceentitlementservice/deserializers.go b/service/marketplaceentitlementservice/deserializers.go index 6896bd70f26..2aba4dd6e4d 100644 --- a/service/marketplaceentitlementservice/deserializers.go +++ b/service/marketplaceentitlementservice/deserializers.go @@ -481,7 +481,13 @@ func awsAwsjson11_deserializeDocumentInternalServiceErrorException(v **types.Int sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -497,6 +503,9 @@ func awsAwsjson11_deserializeDocumentInternalServiceErrorException(v **types.Int } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -521,7 +530,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -537,6 +552,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -561,7 +579,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -577,6 +601,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/marketplacemetering/deserializers.go b/service/marketplacemetering/deserializers.go index a87f2835733..afeb01d04e3 100644 --- a/service/marketplacemetering/deserializers.go +++ b/service/marketplacemetering/deserializers.go @@ -1172,7 +1172,13 @@ func awsAwsjson11_deserializeDocumentCustomerNotEntitledException(v **types.Cust sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1188,6 +1194,9 @@ func awsAwsjson11_deserializeDocumentCustomerNotEntitledException(v **types.Cust } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1212,7 +1221,13 @@ func awsAwsjson11_deserializeDocumentDisabledApiException(v **types.DisabledApiE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1228,6 +1243,9 @@ func awsAwsjson11_deserializeDocumentDisabledApiException(v **types.DisabledApiE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1252,7 +1270,13 @@ func awsAwsjson11_deserializeDocumentDuplicateRequestException(v **types.Duplica sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1268,6 +1292,9 @@ func awsAwsjson11_deserializeDocumentDuplicateRequestException(v **types.Duplica } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1292,7 +1319,13 @@ func awsAwsjson11_deserializeDocumentExpiredTokenException(v **types.ExpiredToke sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1308,6 +1341,9 @@ func awsAwsjson11_deserializeDocumentExpiredTokenException(v **types.ExpiredToke } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1332,7 +1368,13 @@ func awsAwsjson11_deserializeDocumentInternalServiceErrorException(v **types.Int sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1348,6 +1390,9 @@ func awsAwsjson11_deserializeDocumentInternalServiceErrorException(v **types.Int } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1372,7 +1417,13 @@ func awsAwsjson11_deserializeDocumentInvalidCustomerIdentifierException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1388,6 +1439,9 @@ func awsAwsjson11_deserializeDocumentInvalidCustomerIdentifierException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1412,7 +1466,13 @@ func awsAwsjson11_deserializeDocumentInvalidEndpointRegionException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1428,6 +1488,9 @@ func awsAwsjson11_deserializeDocumentInvalidEndpointRegionException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1452,7 +1515,13 @@ func awsAwsjson11_deserializeDocumentInvalidProductCodeException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1468,6 +1537,9 @@ func awsAwsjson11_deserializeDocumentInvalidProductCodeException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1492,7 +1564,13 @@ func awsAwsjson11_deserializeDocumentInvalidPublicKeyVersionException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1508,6 +1586,9 @@ func awsAwsjson11_deserializeDocumentInvalidPublicKeyVersionException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1532,7 +1613,13 @@ func awsAwsjson11_deserializeDocumentInvalidRegionException(v **types.InvalidReg sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1548,6 +1635,9 @@ func awsAwsjson11_deserializeDocumentInvalidRegionException(v **types.InvalidReg } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1572,7 +1662,13 @@ func awsAwsjson11_deserializeDocumentInvalidTagException(v **types.InvalidTagExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1588,6 +1684,9 @@ func awsAwsjson11_deserializeDocumentInvalidTagException(v **types.InvalidTagExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1612,7 +1711,13 @@ func awsAwsjson11_deserializeDocumentInvalidTokenException(v **types.InvalidToke sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1628,6 +1733,9 @@ func awsAwsjson11_deserializeDocumentInvalidTokenException(v **types.InvalidToke } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1652,7 +1760,13 @@ func awsAwsjson11_deserializeDocumentInvalidUsageAllocationsException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1668,6 +1782,9 @@ func awsAwsjson11_deserializeDocumentInvalidUsageAllocationsException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1692,7 +1809,13 @@ func awsAwsjson11_deserializeDocumentInvalidUsageDimensionException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1708,6 +1831,9 @@ func awsAwsjson11_deserializeDocumentInvalidUsageDimensionException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1732,7 +1858,13 @@ func awsAwsjson11_deserializeDocumentPlatformNotSupportedException(v **types.Pla sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1748,6 +1880,9 @@ func awsAwsjson11_deserializeDocumentPlatformNotSupportedException(v **types.Pla } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1855,7 +1990,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1871,6 +2012,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1895,7 +2039,13 @@ func awsAwsjson11_deserializeDocumentTimestampOutOfBoundsException(v **types.Tim sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1911,6 +2061,9 @@ func awsAwsjson11_deserializeDocumentTimestampOutOfBoundsException(v **types.Tim } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/marketplacereporting/deserializers.go b/service/marketplacereporting/deserializers.go index 76999e59728..f22cc0e5ce2 100644 --- a/service/marketplacereporting/deserializers.go +++ b/service/marketplacereporting/deserializers.go @@ -372,7 +372,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -388,6 +394,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -412,7 +421,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -428,6 +443,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -488,7 +506,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -504,6 +528,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -528,7 +555,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -544,6 +577,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/mediaconnect/deserializers.go b/service/mediaconnect/deserializers.go index b98723b4d61..8c9ca84e9b9 100644 --- a/service/mediaconnect/deserializers.go +++ b/service/mediaconnect/deserializers.go @@ -10296,7 +10296,13 @@ func awsRestjson1_deserializeDocumentAddFlowOutputs420Exception(v **types.AddFlo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10312,6 +10318,9 @@ func awsRestjson1_deserializeDocumentAddFlowOutputs420Exception(v **types.AddFlo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10336,7 +10345,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10352,6 +10367,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10849,7 +10867,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10865,6 +10889,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10889,7 +10916,13 @@ func awsRestjson1_deserializeDocumentCreateBridge420Exception(v **types.CreateBr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10905,6 +10938,9 @@ func awsRestjson1_deserializeDocumentCreateBridge420Exception(v **types.CreateBr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10929,7 +10965,13 @@ func awsRestjson1_deserializeDocumentCreateFlow420Exception(v **types.CreateFlow sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10945,6 +10987,9 @@ func awsRestjson1_deserializeDocumentCreateFlow420Exception(v **types.CreateFlow } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10969,7 +11014,13 @@ func awsRestjson1_deserializeDocumentCreateGateway420Exception(v **types.CreateG sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10985,6 +11036,9 @@ func awsRestjson1_deserializeDocumentCreateGateway420Exception(v **types.CreateG } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11696,7 +11750,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11712,6 +11772,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12063,7 +12126,13 @@ func awsRestjson1_deserializeDocumentGrantFlowEntitlements420Exception(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12079,6 +12148,9 @@ func awsRestjson1_deserializeDocumentGrantFlowEntitlements420Exception(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12267,7 +12339,13 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12283,6 +12361,9 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13130,7 +13211,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13146,6 +13233,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13637,7 +13727,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13653,6 +13749,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13955,7 +14054,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13971,6 +14076,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/mediaconvert/deserializers.go b/service/mediaconvert/deserializers.go index e71ab525f3e..4632313018d 100644 --- a/service/mediaconvert/deserializers.go +++ b/service/mediaconvert/deserializers.go @@ -8294,7 +8294,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8310,6 +8316,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10143,7 +10152,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10159,6 +10174,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12815,7 +12833,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12831,6 +12855,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16231,7 +16258,13 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16247,6 +16280,9 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20013,7 +20049,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20029,6 +20071,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22216,7 +22261,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -22232,6 +22283,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/medialive/deserializers.go b/service/medialive/deserializers.go index ef614bd3d23..f51a8e5db3c 100644 --- a/service/medialive/deserializers.go +++ b/service/medialive/deserializers.go @@ -27974,7 +27974,13 @@ func awsRestjson1_deserializeDocumentBadGatewayException(v **types.BadGatewayExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -27990,6 +27996,9 @@ func awsRestjson1_deserializeDocumentBadGatewayException(v **types.BadGatewayExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -28014,7 +28023,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -28030,6 +28045,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30153,7 +30171,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -30169,6 +30193,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -32723,7 +32750,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -32739,6 +32772,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -33009,7 +33045,13 @@ func awsRestjson1_deserializeDocumentGatewayTimeoutException(v **types.GatewayTi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -33025,6 +33067,9 @@ func awsRestjson1_deserializeDocumentGatewayTimeoutException(v **types.GatewayTi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -37470,7 +37515,13 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -37486,6 +37537,9 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -41465,7 +41519,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -41481,6 +41541,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -45781,7 +45844,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -45797,6 +45866,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -46085,7 +46157,13 @@ func awsRestjson1_deserializeDocumentUnprocessableEntityException(v **types.Unpr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -46106,6 +46184,9 @@ func awsRestjson1_deserializeDocumentUnprocessableEntityException(v **types.Unpr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/mediapackage/deserializers.go b/service/mediapackage/deserializers.go index 5cb9a806b79..128b6bd4356 100644 --- a/service/mediapackage/deserializers.go +++ b/service/mediapackage/deserializers.go @@ -4904,7 +4904,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4920,6 +4926,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5535,7 +5544,13 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5551,6 +5566,9 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5678,7 +5696,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5694,6 +5718,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5940,7 +5967,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5956,6 +5989,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6159,7 +6195,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6175,6 +6217,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6199,7 +6244,13 @@ func awsRestjson1_deserializeDocumentUnprocessableEntityException(v **types.Unpr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6215,6 +6266,9 @@ func awsRestjson1_deserializeDocumentUnprocessableEntityException(v **types.Unpr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/mediapackagev2/deserializers.go b/service/mediapackagev2/deserializers.go index af08f4ea784..d6c4fe6d4bb 100644 --- a/service/mediapackagev2/deserializers.go +++ b/service/mediapackagev2/deserializers.go @@ -5518,7 +5518,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5534,6 +5540,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5824,7 +5833,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ConflictExceptionType": if value != nil { @@ -5849,6 +5864,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7410,7 +7428,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7426,6 +7450,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7888,7 +7915,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7913,6 +7946,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8228,7 +8264,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8244,6 +8286,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8446,7 +8491,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8462,6 +8513,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8486,7 +8540,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8511,6 +8571,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/mediapackagevod/deserializers.go b/service/mediapackagevod/deserializers.go index 7595e0e3bc8..2e2f5d82df0 100644 --- a/service/mediapackagevod/deserializers.go +++ b/service/mediapackagevod/deserializers.go @@ -4184,7 +4184,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4200,6 +4206,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4435,7 +4444,13 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4451,6 +4466,9 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4610,7 +4628,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4626,6 +4650,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4837,7 +4864,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4853,6 +4886,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5038,7 +5074,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5054,6 +5096,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5078,7 +5123,13 @@ func awsRestjson1_deserializeDocumentUnprocessableEntityException(v **types.Unpr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5094,6 +5145,9 @@ func awsRestjson1_deserializeDocumentUnprocessableEntityException(v **types.Unpr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/mediastore/deserializers.go b/service/mediastore/deserializers.go index f67d92fb704..bdea5a22467 100644 --- a/service/mediastore/deserializers.go +++ b/service/mediastore/deserializers.go @@ -2931,7 +2931,13 @@ func awsAwsjson11_deserializeDocumentContainerInUseException(v **types.Container sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2947,6 +2953,9 @@ func awsAwsjson11_deserializeDocumentContainerInUseException(v **types.Container } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3005,7 +3014,13 @@ func awsAwsjson11_deserializeDocumentContainerNotFoundException(v **types.Contai sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3021,6 +3036,9 @@ func awsAwsjson11_deserializeDocumentContainerNotFoundException(v **types.Contai } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3079,7 +3097,13 @@ func awsAwsjson11_deserializeDocumentCorsPolicyNotFoundException(v **types.CorsP sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3095,6 +3119,9 @@ func awsAwsjson11_deserializeDocumentCorsPolicyNotFoundException(v **types.CorsP } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3219,7 +3246,13 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3235,6 +3268,9 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3259,7 +3295,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3275,6 +3317,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3427,7 +3472,13 @@ func awsAwsjson11_deserializeDocumentPolicyNotFoundException(v **types.PolicyNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3443,6 +3494,9 @@ func awsAwsjson11_deserializeDocumentPolicyNotFoundException(v **types.PolicyNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/mediastoredata/deserializers.go b/service/mediastoredata/deserializers.go index 1dd49a98b89..e86efe5270e 100644 --- a/service/mediastoredata/deserializers.go +++ b/service/mediastoredata/deserializers.go @@ -932,7 +932,13 @@ func awsRestjson1_deserializeDocumentContainerNotFoundException(v **types.Contai sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -948,6 +954,9 @@ func awsRestjson1_deserializeDocumentContainerNotFoundException(v **types.Contai } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -972,7 +981,13 @@ func awsRestjson1_deserializeDocumentInternalServerError(v **types.InternalServe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -988,6 +1003,9 @@ func awsRestjson1_deserializeDocumentInternalServerError(v **types.InternalServe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1142,7 +1160,13 @@ func awsRestjson1_deserializeDocumentObjectNotFoundException(v **types.ObjectNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1158,6 +1182,9 @@ func awsRestjson1_deserializeDocumentObjectNotFoundException(v **types.ObjectNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1182,7 +1209,13 @@ func awsRestjson1_deserializeDocumentRequestedRangeNotSatisfiableException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1198,6 +1231,9 @@ func awsRestjson1_deserializeDocumentRequestedRangeNotSatisfiableException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/mediatailor/deserializers.go b/service/mediatailor/deserializers.go index 5ae2af8b57a..c9d81a04dee 100644 --- a/service/mediatailor/deserializers.go +++ b/service/mediatailor/deserializers.go @@ -8739,7 +8739,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8755,6 +8761,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/medicalimaging/deserializers.go b/service/medicalimaging/deserializers.go index 91c367dd1a1..fad413b952f 100644 --- a/service/medicalimaging/deserializers.go +++ b/service/medicalimaging/deserializers.go @@ -3451,7 +3451,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3467,6 +3473,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3491,7 +3500,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3507,6 +3522,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4748,7 +4766,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4764,6 +4788,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4828,7 +4855,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4844,6 +4877,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4868,7 +4904,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4884,6 +4926,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4993,7 +5038,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5009,6 +5060,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5033,7 +5087,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5049,6 +5109,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/memorydb/deserializers.go b/service/memorydb/deserializers.go index dee6ee0392f..48f96ad8c49 100644 --- a/service/memorydb/deserializers.go +++ b/service/memorydb/deserializers.go @@ -6736,7 +6736,13 @@ func awsAwsjson11_deserializeDocumentACLAlreadyExistsFault(v **types.ACLAlreadyE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6752,6 +6758,9 @@ func awsAwsjson11_deserializeDocumentACLAlreadyExistsFault(v **types.ACLAlreadyE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6882,7 +6891,13 @@ func awsAwsjson11_deserializeDocumentACLNotFoundFault(v **types.ACLNotFoundFault sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6898,6 +6913,9 @@ func awsAwsjson11_deserializeDocumentACLNotFoundFault(v **types.ACLNotFoundFault } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6963,7 +6981,13 @@ func awsAwsjson11_deserializeDocumentACLQuotaExceededFault(v **types.ACLQuotaExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6979,6 +7003,9 @@ func awsAwsjson11_deserializeDocumentACLQuotaExceededFault(v **types.ACLQuotaExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7043,7 +7070,13 @@ func awsAwsjson11_deserializeDocumentAPICallRateForCustomerExceededFault(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7059,6 +7092,9 @@ func awsAwsjson11_deserializeDocumentAPICallRateForCustomerExceededFault(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7442,7 +7478,13 @@ func awsAwsjson11_deserializeDocumentClusterAlreadyExistsFault(v **types.Cluster sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7458,6 +7500,9 @@ func awsAwsjson11_deserializeDocumentClusterAlreadyExistsFault(v **types.Cluster } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7690,7 +7735,13 @@ func awsAwsjson11_deserializeDocumentClusterNotFoundFault(v **types.ClusterNotFo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7706,6 +7757,9 @@ func awsAwsjson11_deserializeDocumentClusterNotFoundFault(v **types.ClusterNotFo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7776,7 +7830,13 @@ func awsAwsjson11_deserializeDocumentClusterQuotaForCustomerExceededFault(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7792,6 +7852,9 @@ func awsAwsjson11_deserializeDocumentClusterQuotaForCustomerExceededFault(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7816,7 +7879,13 @@ func awsAwsjson11_deserializeDocumentDefaultUserRequired(v **types.DefaultUserRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7832,6 +7901,9 @@ func awsAwsjson11_deserializeDocumentDefaultUserRequired(v **types.DefaultUserRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7856,7 +7928,13 @@ func awsAwsjson11_deserializeDocumentDuplicateUserNameFault(v **types.DuplicateU sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7872,6 +7950,9 @@ func awsAwsjson11_deserializeDocumentDuplicateUserNameFault(v **types.DuplicateU } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8158,7 +8239,13 @@ func awsAwsjson11_deserializeDocumentInsufficientClusterCapacityFault(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8174,6 +8261,9 @@ func awsAwsjson11_deserializeDocumentInsufficientClusterCapacityFault(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8198,7 +8288,13 @@ func awsAwsjson11_deserializeDocumentInvalidACLStateFault(v **types.InvalidACLSt sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8214,6 +8310,9 @@ func awsAwsjson11_deserializeDocumentInvalidACLStateFault(v **types.InvalidACLSt } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8238,7 +8337,13 @@ func awsAwsjson11_deserializeDocumentInvalidARNFault(v **types.InvalidARNFault, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8254,6 +8359,9 @@ func awsAwsjson11_deserializeDocumentInvalidARNFault(v **types.InvalidARNFault, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8278,7 +8386,13 @@ func awsAwsjson11_deserializeDocumentInvalidClusterStateFault(v **types.InvalidC sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8294,6 +8408,9 @@ func awsAwsjson11_deserializeDocumentInvalidClusterStateFault(v **types.InvalidC } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8318,7 +8435,13 @@ func awsAwsjson11_deserializeDocumentInvalidCredentialsException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8334,6 +8457,9 @@ func awsAwsjson11_deserializeDocumentInvalidCredentialsException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8358,7 +8484,13 @@ func awsAwsjson11_deserializeDocumentInvalidKMSKeyFault(v **types.InvalidKMSKeyF sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8374,6 +8506,9 @@ func awsAwsjson11_deserializeDocumentInvalidKMSKeyFault(v **types.InvalidKMSKeyF } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8398,7 +8533,13 @@ func awsAwsjson11_deserializeDocumentInvalidNodeStateFault(v **types.InvalidNode sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8414,6 +8555,9 @@ func awsAwsjson11_deserializeDocumentInvalidNodeStateFault(v **types.InvalidNode } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8438,7 +8582,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterCombinationException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8454,6 +8604,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterCombinationException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8478,7 +8631,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterGroupStateFault(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8494,6 +8653,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterGroupStateFault(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8518,7 +8680,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterValueException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8534,6 +8702,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterValueException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8558,7 +8729,13 @@ func awsAwsjson11_deserializeDocumentInvalidSnapshotStateFault(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8574,6 +8751,9 @@ func awsAwsjson11_deserializeDocumentInvalidSnapshotStateFault(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8598,7 +8778,13 @@ func awsAwsjson11_deserializeDocumentInvalidSubnet(v **types.InvalidSubnet, valu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8614,6 +8800,9 @@ func awsAwsjson11_deserializeDocumentInvalidSubnet(v **types.InvalidSubnet, valu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8638,7 +8827,13 @@ func awsAwsjson11_deserializeDocumentInvalidUserStateFault(v **types.InvalidUser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8654,6 +8849,9 @@ func awsAwsjson11_deserializeDocumentInvalidUserStateFault(v **types.InvalidUser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8678,7 +8876,13 @@ func awsAwsjson11_deserializeDocumentInvalidVPCNetworkStateFault(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8694,6 +8898,9 @@ func awsAwsjson11_deserializeDocumentInvalidVPCNetworkStateFault(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8831,7 +9038,13 @@ func awsAwsjson11_deserializeDocumentNodeQuotaForClusterExceededFault(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8847,6 +9060,9 @@ func awsAwsjson11_deserializeDocumentNodeQuotaForClusterExceededFault(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8871,7 +9087,13 @@ func awsAwsjson11_deserializeDocumentNodeQuotaForCustomerExceededFault(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8887,6 +9109,9 @@ func awsAwsjson11_deserializeDocumentNodeQuotaForCustomerExceededFault(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8947,7 +9172,13 @@ func awsAwsjson11_deserializeDocumentNoOperationFault(v **types.NoOperationFault sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8963,6 +9194,9 @@ func awsAwsjson11_deserializeDocumentNoOperationFault(v **types.NoOperationFault } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9139,7 +9373,13 @@ func awsAwsjson11_deserializeDocumentParameterGroupAlreadyExistsFault(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9155,6 +9395,9 @@ func awsAwsjson11_deserializeDocumentParameterGroupAlreadyExistsFault(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9213,7 +9456,13 @@ func awsAwsjson11_deserializeDocumentParameterGroupNotFoundFault(v **types.Param sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9229,6 +9478,9 @@ func awsAwsjson11_deserializeDocumentParameterGroupNotFoundFault(v **types.Param } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9253,7 +9505,13 @@ func awsAwsjson11_deserializeDocumentParameterGroupQuotaExceededFault(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9269,6 +9527,9 @@ func awsAwsjson11_deserializeDocumentParameterGroupQuotaExceededFault(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9684,7 +9945,13 @@ func awsAwsjson11_deserializeDocumentReservedNodeAlreadyExistsFault(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9700,6 +9967,9 @@ func awsAwsjson11_deserializeDocumentReservedNodeAlreadyExistsFault(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9758,7 +10028,13 @@ func awsAwsjson11_deserializeDocumentReservedNodeNotFoundFault(v **types.Reserve sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9774,6 +10050,9 @@ func awsAwsjson11_deserializeDocumentReservedNodeNotFoundFault(v **types.Reserve } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9798,7 +10077,13 @@ func awsAwsjson11_deserializeDocumentReservedNodeQuotaExceededFault(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9814,6 +10099,9 @@ func awsAwsjson11_deserializeDocumentReservedNodeQuotaExceededFault(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9982,7 +10270,13 @@ func awsAwsjson11_deserializeDocumentReservedNodesOfferingNotFoundFault(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9998,6 +10292,9 @@ func awsAwsjson11_deserializeDocumentReservedNodesOfferingNotFoundFault(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10141,7 +10438,13 @@ func awsAwsjson11_deserializeDocumentServiceLinkedRoleNotFoundFault(v **types.Se sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10157,6 +10460,9 @@ func awsAwsjson11_deserializeDocumentServiceLinkedRoleNotFoundFault(v **types.Se } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10341,7 +10647,13 @@ func awsAwsjson11_deserializeDocumentServiceUpdateNotFoundFault(v **types.Servic sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10357,6 +10669,9 @@ func awsAwsjson11_deserializeDocumentServiceUpdateNotFoundFault(v **types.Servic } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10648,7 +10963,13 @@ func awsAwsjson11_deserializeDocumentShardNotFoundFault(v **types.ShardNotFoundF sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10664,6 +10985,9 @@ func awsAwsjson11_deserializeDocumentShardNotFoundFault(v **types.ShardNotFoundF } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10688,7 +11012,13 @@ func awsAwsjson11_deserializeDocumentShardsPerClusterQuotaExceededFault(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10704,6 +11034,9 @@ func awsAwsjson11_deserializeDocumentShardsPerClusterQuotaExceededFault(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10883,7 +11216,13 @@ func awsAwsjson11_deserializeDocumentSnapshotAlreadyExistsFault(v **types.Snapsh sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10899,6 +11238,9 @@ func awsAwsjson11_deserializeDocumentSnapshotAlreadyExistsFault(v **types.Snapsh } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10957,7 +11299,13 @@ func awsAwsjson11_deserializeDocumentSnapshotNotFoundFault(v **types.SnapshotNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10973,6 +11321,9 @@ func awsAwsjson11_deserializeDocumentSnapshotNotFoundFault(v **types.SnapshotNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10997,7 +11348,13 @@ func awsAwsjson11_deserializeDocumentSnapshotQuotaExceededFault(v **types.Snapsh sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11013,6 +11370,9 @@ func awsAwsjson11_deserializeDocumentSnapshotQuotaExceededFault(v **types.Snapsh } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11154,7 +11514,13 @@ func awsAwsjson11_deserializeDocumentSubnetGroupAlreadyExistsFault(v **types.Sub sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11170,6 +11536,9 @@ func awsAwsjson11_deserializeDocumentSubnetGroupAlreadyExistsFault(v **types.Sub } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11194,7 +11563,13 @@ func awsAwsjson11_deserializeDocumentSubnetGroupInUseFault(v **types.SubnetGroup sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11210,6 +11585,9 @@ func awsAwsjson11_deserializeDocumentSubnetGroupInUseFault(v **types.SubnetGroup } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11268,7 +11646,13 @@ func awsAwsjson11_deserializeDocumentSubnetGroupNotFoundFault(v **types.SubnetGr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11284,6 +11668,9 @@ func awsAwsjson11_deserializeDocumentSubnetGroupNotFoundFault(v **types.SubnetGr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11308,7 +11695,13 @@ func awsAwsjson11_deserializeDocumentSubnetGroupQuotaExceededFault(v **types.Sub sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11324,6 +11717,9 @@ func awsAwsjson11_deserializeDocumentSubnetGroupQuotaExceededFault(v **types.Sub } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11348,7 +11744,13 @@ func awsAwsjson11_deserializeDocumentSubnetInUse(v **types.SubnetInUse, value in sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11364,6 +11766,9 @@ func awsAwsjson11_deserializeDocumentSubnetInUse(v **types.SubnetInUse, value in } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11422,7 +11827,13 @@ func awsAwsjson11_deserializeDocumentSubnetNotAllowedFault(v **types.SubnetNotAl sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11438,6 +11849,9 @@ func awsAwsjson11_deserializeDocumentSubnetNotAllowedFault(v **types.SubnetNotAl } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11462,7 +11876,13 @@ func awsAwsjson11_deserializeDocumentSubnetQuotaExceededFault(v **types.SubnetQu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11478,6 +11898,9 @@ func awsAwsjson11_deserializeDocumentSubnetQuotaExceededFault(v **types.SubnetQu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11585,7 +12008,13 @@ func awsAwsjson11_deserializeDocumentTagNotFoundFault(v **types.TagNotFoundFault sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11601,6 +12030,9 @@ func awsAwsjson11_deserializeDocumentTagNotFoundFault(v **types.TagNotFoundFault } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11625,7 +12057,13 @@ func awsAwsjson11_deserializeDocumentTagQuotaPerResourceExceeded(v **types.TagQu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11641,6 +12079,9 @@ func awsAwsjson11_deserializeDocumentTagQuotaPerResourceExceeded(v **types.TagQu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11665,7 +12106,13 @@ func awsAwsjson11_deserializeDocumentTestFailoverNotAvailableFault(v **types.Tes sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11681,6 +12128,9 @@ func awsAwsjson11_deserializeDocumentTestFailoverNotAvailableFault(v **types.Tes } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11883,7 +12333,13 @@ func awsAwsjson11_deserializeDocumentUserAlreadyExistsFault(v **types.UserAlread sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11899,6 +12355,9 @@ func awsAwsjson11_deserializeDocumentUserAlreadyExistsFault(v **types.UserAlread } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11993,7 +12452,13 @@ func awsAwsjson11_deserializeDocumentUserNotFoundFault(v **types.UserNotFoundFau sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12009,6 +12474,9 @@ func awsAwsjson11_deserializeDocumentUserNotFoundFault(v **types.UserNotFoundFau } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12033,7 +12501,13 @@ func awsAwsjson11_deserializeDocumentUserQuotaExceededFault(v **types.UserQuotaE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12049,6 +12523,9 @@ func awsAwsjson11_deserializeDocumentUserQuotaExceededFault(v **types.UserQuotaE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/mgn/deserializers.go b/service/mgn/deserializers.go index ccfa78610d8..49371f654a9 100644 --- a/service/mgn/deserializers.go +++ b/service/mgn/deserializers.go @@ -13468,7 +13468,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -13493,6 +13499,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13735,7 +13744,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -13783,6 +13798,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15634,7 +15652,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15663,6 +15687,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17695,7 +17722,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -17738,6 +17771,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17820,7 +17856,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -17894,6 +17936,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18920,7 +18965,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18963,6 +19014,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18987,7 +19041,13 @@ func awsRestjson1_deserializeDocumentUninitializedAccountException(v **types.Uni sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -19012,6 +19072,9 @@ func awsRestjson1_deserializeDocumentUninitializedAccountException(v **types.Uni } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19036,7 +19099,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -19075,6 +19144,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/migrationhub/deserializers.go b/service/migrationhub/deserializers.go index ba09741d759..a163f4f4b15 100644 --- a/service/migrationhub/deserializers.go +++ b/service/migrationhub/deserializers.go @@ -2655,7 +2655,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2671,6 +2677,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2960,7 +2969,13 @@ func awsAwsjson11_deserializeDocumentDryRunOperation(v **types.DryRunOperation, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2976,6 +2991,9 @@ func awsAwsjson11_deserializeDocumentDryRunOperation(v **types.DryRunOperation, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3000,7 +3018,13 @@ func awsAwsjson11_deserializeDocumentHomeRegionNotSetException(v **types.HomeReg sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3016,6 +3040,9 @@ func awsAwsjson11_deserializeDocumentHomeRegionNotSetException(v **types.HomeReg } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3040,7 +3067,13 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3056,6 +3089,9 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3080,7 +3116,13 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3096,6 +3138,9 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3359,7 +3404,13 @@ func awsAwsjson11_deserializeDocumentPolicyErrorException(v **types.PolicyErrorE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3375,6 +3426,9 @@ func awsAwsjson11_deserializeDocumentPolicyErrorException(v **types.PolicyErrorE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3522,7 +3576,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3538,6 +3598,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3562,7 +3625,13 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3578,6 +3647,9 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3664,7 +3736,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3693,6 +3771,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3717,7 +3798,13 @@ func awsAwsjson11_deserializeDocumentUnauthorizedOperation(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3733,6 +3820,9 @@ func awsAwsjson11_deserializeDocumentUnauthorizedOperation(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/migrationhubconfig/deserializers.go b/service/migrationhubconfig/deserializers.go index 272af32bdd4..05894657cf1 100644 --- a/service/migrationhubconfig/deserializers.go +++ b/service/migrationhubconfig/deserializers.go @@ -754,7 +754,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -770,6 +776,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -794,7 +803,13 @@ func awsAwsjson11_deserializeDocumentDryRunOperation(v **types.DryRunOperation, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -810,6 +825,9 @@ func awsAwsjson11_deserializeDocumentDryRunOperation(v **types.DryRunOperation, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -938,7 +956,13 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -954,6 +978,9 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -978,7 +1005,13 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -994,6 +1027,9 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1018,7 +1054,13 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1034,6 +1076,9 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1107,7 +1152,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1136,6 +1187,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/migrationhuborchestrator/deserializers.go b/service/migrationhuborchestrator/deserializers.go index c868f750a2c..7c4ab7d4980 100644 --- a/service/migrationhuborchestrator/deserializers.go +++ b/service/migrationhuborchestrator/deserializers.go @@ -6367,7 +6367,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6383,6 +6389,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6407,7 +6416,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6423,6 +6438,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6447,7 +6465,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6463,6 +6487,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6917,7 +6944,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6933,6 +6966,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7757,7 +7793,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7773,6 +7815,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7880,7 +7925,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7896,6 +7947,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/migrationhubrefactorspaces/deserializers.go b/service/migrationhubrefactorspaces/deserializers.go index f89a73b3f25..83cc307d345 100644 --- a/service/migrationhubrefactorspaces/deserializers.go +++ b/service/migrationhubrefactorspaces/deserializers.go @@ -5402,7 +5402,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5418,6 +5424,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5944,7 +5953,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5978,6 +5993,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6436,7 +6454,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6452,6 +6476,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6476,7 +6503,13 @@ func awsRestjson1_deserializeDocumentInvalidResourcePolicyException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6492,6 +6525,9 @@ func awsRestjson1_deserializeDocumentInvalidResourcePolicyException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6672,7 +6708,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6706,6 +6748,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6955,7 +7000,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7007,6 +7058,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7283,7 +7337,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7330,6 +7390,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7573,7 +7636,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7589,6 +7658,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/migrationhubstrategy/deserializers.go b/service/migrationhubstrategy/deserializers.go index ccb97218392..f929fcdcdd0 100644 --- a/service/migrationhubstrategy/deserializers.go +++ b/service/migrationhubstrategy/deserializers.go @@ -3923,7 +3923,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3939,6 +3945,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5543,7 +5552,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5559,6 +5574,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5861,7 +5879,13 @@ func awsRestjson1_deserializeDocumentDependencyException(v **types.DependencyExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5877,6 +5901,9 @@ func awsRestjson1_deserializeDocumentDependencyException(v **types.DependencyExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6197,7 +6224,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6213,6 +6246,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7193,7 +7229,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7209,6 +7251,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7904,7 +7949,13 @@ func awsRestjson1_deserializeDocumentServiceLinkedRoleLockClientException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7920,6 +7971,9 @@ func awsRestjson1_deserializeDocumentServiceLinkedRoleLockClientException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7944,7 +7998,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7960,6 +8020,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8233,7 +8296,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8249,6 +8318,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8331,7 +8403,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8347,6 +8425,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/mq/deserializers.go b/service/mq/deserializers.go index 9403eae452e..2e4e5911691 100644 --- a/service/mq/deserializers.go +++ b/service/mq/deserializers.go @@ -4943,7 +4943,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorAttribute": if value != nil { @@ -4968,6 +4974,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5553,7 +5562,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorAttribute": if value != nil { @@ -5578,6 +5593,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5785,7 +5803,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorAttribute": if value != nil { @@ -5810,6 +5834,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5834,7 +5861,13 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorAttribute": if value != nil { @@ -5859,6 +5892,9 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6121,7 +6157,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorAttribute": if value != nil { @@ -6146,6 +6188,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6277,7 +6322,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorAttribute": if value != nil { @@ -6302,6 +6353,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/mturk/deserializers.go b/service/mturk/deserializers.go index ddd27d89542..10b0e04d353 100644 --- a/service/mturk/deserializers.go +++ b/service/mturk/deserializers.go @@ -6127,7 +6127,13 @@ func awsAwsjson11_deserializeDocumentRequestError(v **types.RequestError, value sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6152,6 +6158,9 @@ func awsAwsjson11_deserializeDocumentRequestError(v **types.RequestError, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6525,7 +6534,13 @@ func awsAwsjson11_deserializeDocumentServiceFault(v **types.ServiceFault, value sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6550,6 +6565,9 @@ func awsAwsjson11_deserializeDocumentServiceFault(v **types.ServiceFault, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/mwaa/deserializers.go b/service/mwaa/deserializers.go index 9caff0659e7..6f9532f3470 100644 --- a/service/mwaa/deserializers.go +++ b/service/mwaa/deserializers.go @@ -1978,7 +1978,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1994,6 +2000,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2434,7 +2443,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2450,6 +2465,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2699,7 +2717,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2715,6 +2739,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2739,7 +2766,13 @@ func awsRestjson1_deserializeDocumentRestApiClientException(v **types.RestApiCli sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "RestApiResponse": if err := awsRestjson1_deserializeDocumentRestApiResponse(&sv.RestApiResponse, value); err != nil { @@ -2764,6 +2797,9 @@ func awsRestjson1_deserializeDocumentRestApiClientException(v **types.RestApiCli } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2796,7 +2832,13 @@ func awsRestjson1_deserializeDocumentRestApiServerException(v **types.RestApiSer sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "RestApiResponse": if err := awsRestjson1_deserializeDocumentRestApiResponse(&sv.RestApiResponse, value); err != nil { @@ -2821,6 +2863,9 @@ func awsRestjson1_deserializeDocumentRestApiServerException(v **types.RestApiSer } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3002,7 +3047,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3018,6 +3069,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/neptunedata/deserializers.go b/service/neptunedata/deserializers.go index a59e1c12322..1fee35af674 100644 --- a/service/neptunedata/deserializers.go +++ b/service/neptunedata/deserializers.go @@ -9961,7 +9961,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -9995,6 +10001,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10019,7 +10028,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -10053,6 +10068,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10077,7 +10095,13 @@ func awsRestjson1_deserializeDocumentBulkLoadIdNotFoundException(v **types.BulkL sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -10111,6 +10135,9 @@ func awsRestjson1_deserializeDocumentBulkLoadIdNotFoundException(v **types.BulkL } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10135,7 +10162,13 @@ func awsRestjson1_deserializeDocumentCancelledByUserException(v **types.Cancelle sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -10169,6 +10202,9 @@ func awsRestjson1_deserializeDocumentCancelledByUserException(v **types.Cancelle } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10229,7 +10265,13 @@ func awsRestjson1_deserializeDocumentClientTimeoutException(v **types.ClientTime sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -10263,6 +10305,9 @@ func awsRestjson1_deserializeDocumentClientTimeoutException(v **types.ClientTime } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10287,7 +10332,13 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -10321,6 +10372,9 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10345,7 +10399,13 @@ func awsRestjson1_deserializeDocumentConstraintViolationException(v **types.Cons sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -10379,6 +10439,9 @@ func awsRestjson1_deserializeDocumentConstraintViolationException(v **types.Cons } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10641,7 +10704,13 @@ func awsRestjson1_deserializeDocumentExpiredStreamException(v **types.ExpiredStr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -10675,6 +10744,9 @@ func awsRestjson1_deserializeDocumentExpiredStreamException(v **types.ExpiredStr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10699,7 +10771,13 @@ func awsRestjson1_deserializeDocumentFailureByQueryException(v **types.FailureBy sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -10733,6 +10811,9 @@ func awsRestjson1_deserializeDocumentFailureByQueryException(v **types.FailureBy } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10943,7 +11024,13 @@ func awsRestjson1_deserializeDocumentIllegalArgumentException(v **types.IllegalA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -10977,6 +11064,9 @@ func awsRestjson1_deserializeDocumentIllegalArgumentException(v **types.IllegalA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11001,7 +11091,13 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -11035,6 +11131,9 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11059,7 +11158,13 @@ func awsRestjson1_deserializeDocumentInvalidArgumentException(v **types.InvalidA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -11093,6 +11198,9 @@ func awsRestjson1_deserializeDocumentInvalidArgumentException(v **types.InvalidA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11117,7 +11225,13 @@ func awsRestjson1_deserializeDocumentInvalidNumericDataException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -11151,6 +11265,9 @@ func awsRestjson1_deserializeDocumentInvalidNumericDataException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11175,7 +11292,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -11209,6 +11332,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11269,7 +11395,13 @@ func awsRestjson1_deserializeDocumentLoadUrlAccessDeniedException(v **types.Load sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -11303,6 +11435,9 @@ func awsRestjson1_deserializeDocumentLoadUrlAccessDeniedException(v **types.Load } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11399,7 +11534,13 @@ func awsRestjson1_deserializeDocumentMalformedQueryException(v **types.Malformed sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -11433,6 +11574,9 @@ func awsRestjson1_deserializeDocumentMalformedQueryException(v **types.Malformed } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11457,7 +11601,13 @@ func awsRestjson1_deserializeDocumentMemoryLimitExceededException(v **types.Memo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -11491,6 +11641,9 @@ func awsRestjson1_deserializeDocumentMemoryLimitExceededException(v **types.Memo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11515,7 +11668,13 @@ func awsRestjson1_deserializeDocumentMethodNotAllowedException(v **types.MethodN sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -11549,6 +11708,9 @@ func awsRestjson1_deserializeDocumentMethodNotAllowedException(v **types.MethodN } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11573,7 +11735,13 @@ func awsRestjson1_deserializeDocumentMissingParameterException(v **types.Missing sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -11607,6 +11775,9 @@ func awsRestjson1_deserializeDocumentMissingParameterException(v **types.Missing } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11799,7 +11970,13 @@ func awsRestjson1_deserializeDocumentMLResourceNotFoundException(v **types.MLRes sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -11833,6 +12010,9 @@ func awsRestjson1_deserializeDocumentMLResourceNotFoundException(v **types.MLRes } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12121,7 +12301,13 @@ func awsRestjson1_deserializeDocumentParsingException(v **types.ParsingException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -12155,6 +12341,9 @@ func awsRestjson1_deserializeDocumentParsingException(v **types.ParsingException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12179,7 +12368,13 @@ func awsRestjson1_deserializeDocumentPreconditionsFailedException(v **types.Prec sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -12213,6 +12408,9 @@ func awsRestjson1_deserializeDocumentPreconditionsFailedException(v **types.Prec } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12794,7 +12992,13 @@ func awsRestjson1_deserializeDocumentQueryLimitExceededException(v **types.Query sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -12828,6 +13032,9 @@ func awsRestjson1_deserializeDocumentQueryLimitExceededException(v **types.Query } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12852,7 +13059,13 @@ func awsRestjson1_deserializeDocumentQueryLimitException(v **types.QueryLimitExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -12886,6 +13099,9 @@ func awsRestjson1_deserializeDocumentQueryLimitException(v **types.QueryLimitExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12910,7 +13126,13 @@ func awsRestjson1_deserializeDocumentQueryTooLargeException(v **types.QueryTooLa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -12944,6 +13166,9 @@ func awsRestjson1_deserializeDocumentQueryTooLargeException(v **types.QueryTooLa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13124,7 +13349,13 @@ func awsRestjson1_deserializeDocumentReadOnlyViolationException(v **types.ReadOn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -13158,6 +13389,9 @@ func awsRestjson1_deserializeDocumentReadOnlyViolationException(v **types.ReadOn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13222,7 +13456,13 @@ func awsRestjson1_deserializeDocumentS3Exception(v **types.S3Exception, value in sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -13256,6 +13496,9 @@ func awsRestjson1_deserializeDocumentS3Exception(v **types.S3Exception, value in } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13280,7 +13523,13 @@ func awsRestjson1_deserializeDocumentServerShutdownException(v **types.ServerShu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -13314,6 +13563,9 @@ func awsRestjson1_deserializeDocumentServerShutdownException(v **types.ServerShu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13569,7 +13821,13 @@ func awsRestjson1_deserializeDocumentStatisticsNotAvailableException(v **types.S sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -13603,6 +13861,9 @@ func awsRestjson1_deserializeDocumentStatisticsNotAvailableException(v **types.S } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13697,7 +13958,13 @@ func awsRestjson1_deserializeDocumentStreamRecordsNotFoundException(v **types.St sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -13731,6 +13998,9 @@ func awsRestjson1_deserializeDocumentStreamRecordsNotFoundException(v **types.St } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13910,7 +14180,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -13944,6 +14220,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13968,7 +14247,13 @@ func awsRestjson1_deserializeDocumentTimeLimitExceededException(v **types.TimeLi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -14002,6 +14287,9 @@ func awsRestjson1_deserializeDocumentTimeLimitExceededException(v **types.TimeLi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14026,7 +14314,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -14060,6 +14354,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14084,7 +14381,13 @@ func awsRestjson1_deserializeDocumentUnsupportedOperationException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -14118,6 +14421,9 @@ func awsRestjson1_deserializeDocumentUnsupportedOperationException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/neptunegraph/deserializers.go b/service/neptunegraph/deserializers.go index 174a2e8c490..4145bea1691 100644 --- a/service/neptunegraph/deserializers.go +++ b/service/neptunegraph/deserializers.go @@ -6133,7 +6133,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6149,6 +6155,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6173,7 +6182,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6198,6 +6213,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7129,7 +7147,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7145,6 +7169,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7719,7 +7746,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7735,6 +7768,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7759,7 +7795,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7811,6 +7853,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7907,7 +7952,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7923,6 +7974,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7947,7 +8001,13 @@ func awsRestjson1_deserializeDocumentUnprocessableException(v **types.Unprocessa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7972,6 +8032,9 @@ func awsRestjson1_deserializeDocumentUnprocessableException(v **types.Unprocessa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7996,7 +8059,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8021,6 +8090,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/networkfirewall/deserializers.go b/service/networkfirewall/deserializers.go index 97edb3f1316..afca41250ab 100644 --- a/service/networkfirewall/deserializers.go +++ b/service/networkfirewall/deserializers.go @@ -6268,7 +6268,13 @@ func awsAwsjson10_deserializeDocumentInsufficientCapacityException(v **types.Ins sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6284,6 +6290,9 @@ func awsAwsjson10_deserializeDocumentInsufficientCapacityException(v **types.Ins } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6308,7 +6317,13 @@ func awsAwsjson10_deserializeDocumentInternalServerError(v **types.InternalServe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6324,6 +6339,9 @@ func awsAwsjson10_deserializeDocumentInternalServerError(v **types.InternalServe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6348,7 +6366,13 @@ func awsAwsjson10_deserializeDocumentInvalidOperationException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6364,6 +6388,9 @@ func awsAwsjson10_deserializeDocumentInvalidOperationException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6388,7 +6415,13 @@ func awsAwsjson10_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6404,6 +6437,9 @@ func awsAwsjson10_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6428,7 +6464,13 @@ func awsAwsjson10_deserializeDocumentInvalidResourcePolicyException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6444,6 +6486,9 @@ func awsAwsjson10_deserializeDocumentInvalidResourcePolicyException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6468,7 +6513,13 @@ func awsAwsjson10_deserializeDocumentInvalidTokenException(v **types.InvalidToke sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6484,6 +6535,9 @@ func awsAwsjson10_deserializeDocumentInvalidTokenException(v **types.InvalidToke } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6733,7 +6787,13 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6749,6 +6809,9 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6897,7 +6960,13 @@ func awsAwsjson10_deserializeDocumentLogDestinationPermissionException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6913,6 +6982,9 @@ func awsAwsjson10_deserializeDocumentLogDestinationPermissionException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7393,7 +7465,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7409,6 +7487,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7433,7 +7514,13 @@ func awsAwsjson10_deserializeDocumentResourceOwnerCheckException(v **types.Resou sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7449,6 +7536,9 @@ func awsAwsjson10_deserializeDocumentResourceOwnerCheckException(v **types.Resou } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9433,7 +9523,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9449,6 +9545,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9784,7 +9883,13 @@ func awsAwsjson10_deserializeDocumentUnsupportedOperationException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9800,6 +9905,9 @@ func awsAwsjson10_deserializeDocumentUnsupportedOperationException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/networkmanager/deserializers.go b/service/networkmanager/deserializers.go index 24300866b84..bb5d54fa4bb 100644 --- a/service/networkmanager/deserializers.go +++ b/service/networkmanager/deserializers.go @@ -14407,7 +14407,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14423,6 +14429,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14957,7 +14966,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14991,6 +15006,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16916,7 +16934,13 @@ func awsRestjson1_deserializeDocumentCoreNetworkPolicyException(v **types.CoreNe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Errors": if err := awsRestjson1_deserializeDocumentCoreNetworkPolicyErrorList(&sv.Errors, value); err != nil { @@ -16937,6 +16961,9 @@ func awsRestjson1_deserializeDocumentCoreNetworkPolicyException(v **types.CoreNe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17960,7 +17987,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -17989,6 +18022,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19855,7 +19891,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Context": if err := awsRestjson1_deserializeDocumentExceptionContextMap(&sv.Context, value); err != nil { @@ -19894,6 +19936,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20326,7 +20371,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "LimitCode": if value != nil { @@ -20378,6 +20429,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20702,7 +20756,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -20731,6 +20791,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21110,7 +21173,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Fields": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.Fields, value); err != nil { @@ -21140,6 +21209,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/networkmonitor/deserializers.go b/service/networkmonitor/deserializers.go index 66eff62c455..36e8b2d293a 100644 --- a/service/networkmonitor/deserializers.go +++ b/service/networkmonitor/deserializers.go @@ -2590,7 +2590,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2606,6 +2612,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2630,7 +2639,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2646,6 +2661,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2670,7 +2688,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2686,6 +2710,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3020,7 +3047,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3036,6 +3069,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3060,7 +3096,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3076,6 +3118,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3136,7 +3181,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3152,6 +3203,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3176,7 +3230,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3192,6 +3252,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/oam/deserializers.go b/service/oam/deserializers.go index e0da09f8058..34cdc1e3087 100644 --- a/service/oam/deserializers.go +++ b/service/oam/deserializers.go @@ -2870,7 +2870,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "amznErrorType": if value != nil { @@ -2895,6 +2901,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2919,7 +2928,13 @@ func awsRestjson1_deserializeDocumentInternalServiceFault(v **types.InternalServ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "amznErrorType": if value != nil { @@ -2944,6 +2959,9 @@ func awsRestjson1_deserializeDocumentInternalServiceFault(v **types.InternalServ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2968,7 +2986,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "amznErrorType": if value != nil { @@ -2993,6 +3017,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3424,7 +3451,13 @@ func awsRestjson1_deserializeDocumentMissingRequiredParameterException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "amznErrorType": if value != nil { @@ -3449,6 +3482,9 @@ func awsRestjson1_deserializeDocumentMissingRequiredParameterException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3473,7 +3509,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "amznErrorType": if value != nil { @@ -3498,6 +3540,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3558,7 +3603,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "amznErrorType": if value != nil { @@ -3583,6 +3634,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3643,7 +3697,13 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3659,6 +3719,9 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3683,7 +3746,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3699,6 +3768,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/omics/deserializers.go b/service/omics/deserializers.go index f0cfaf894ad..afcf8afad8d 100644 --- a/service/omics/deserializers.go +++ b/service/omics/deserializers.go @@ -16232,7 +16232,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16248,6 +16254,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17117,7 +17126,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17133,6 +17148,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18138,7 +18156,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18154,6 +18178,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18342,7 +18369,13 @@ func awsRestjson1_deserializeDocumentNotSupportedOperationException(v **types.No sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18358,6 +18391,9 @@ func awsRestjson1_deserializeDocumentNotSupportedOperationException(v **types.No } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18382,7 +18418,13 @@ func awsRestjson1_deserializeDocumentRangeNotSatisfiableException(v **types.Rang sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18398,6 +18440,9 @@ func awsRestjson1_deserializeDocumentRangeNotSatisfiableException(v **types.Rang } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19399,7 +19444,13 @@ func awsRestjson1_deserializeDocumentRequestTimeoutException(v **types.RequestTi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19415,6 +19466,9 @@ func awsRestjson1_deserializeDocumentRequestTimeoutException(v **types.RequestTi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19439,7 +19493,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19455,6 +19515,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20242,7 +20305,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20258,6 +20327,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20798,7 +20870,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20814,6 +20892,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20974,7 +21055,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20990,6 +21077,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/opensearch/deserializers.go b/service/opensearch/deserializers.go index 158751d876b..293ae1487c6 100644 --- a/service/opensearch/deserializers.go +++ b/service/opensearch/deserializers.go @@ -12144,7 +12144,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12160,6 +12166,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13583,7 +13592,13 @@ func awsRestjson1_deserializeDocumentBaseException(v **types.BaseException, valu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13599,6 +13614,9 @@ func awsRestjson1_deserializeDocumentBaseException(v **types.BaseException, valu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14465,7 +14483,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14481,6 +14505,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14810,7 +14837,13 @@ func awsRestjson1_deserializeDocumentDependencyFailureException(v **types.Depend sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14826,6 +14859,9 @@ func awsRestjson1_deserializeDocumentDependencyFailureException(v **types.Depend } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14850,7 +14886,13 @@ func awsRestjson1_deserializeDocumentDisabledOperationException(v **types.Disabl sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14866,6 +14908,9 @@ func awsRestjson1_deserializeDocumentDisabledOperationException(v **types.Disabl } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17172,7 +17217,13 @@ func awsRestjson1_deserializeDocumentInternalException(v **types.InternalExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17188,6 +17239,9 @@ func awsRestjson1_deserializeDocumentInternalException(v **types.InternalExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17212,7 +17266,13 @@ func awsRestjson1_deserializeDocumentInvalidPaginationTokenException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17228,6 +17288,9 @@ func awsRestjson1_deserializeDocumentInvalidPaginationTokenException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17252,7 +17315,13 @@ func awsRestjson1_deserializeDocumentInvalidTypeException(v **types.InvalidTypeE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17268,6 +17337,9 @@ func awsRestjson1_deserializeDocumentInvalidTypeException(v **types.InvalidTypeE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17440,7 +17512,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17456,6 +17534,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19376,7 +19457,13 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19392,6 +19479,9 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19416,7 +19506,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19432,6 +19528,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19995,7 +20094,13 @@ func awsRestjson1_deserializeDocumentSlotNotAvailableException(v **types.SlotNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20016,6 +20121,9 @@ func awsRestjson1_deserializeDocumentSlotNotAvailableException(v **types.SlotNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20718,7 +20826,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -20734,6 +20848,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/opensearchserverless/deserializers.go b/service/opensearchserverless/deserializers.go index 5e778d3d007..a472cee5378 100644 --- a/service/opensearchserverless/deserializers.go +++ b/service/opensearchserverless/deserializers.go @@ -5377,7 +5377,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5393,6 +5399,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6025,7 +6034,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6041,6 +6056,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6469,7 +6487,13 @@ func awsAwsjson10_deserializeDocumentOcuLimitExceededException(v **types.OcuLimi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6485,6 +6509,9 @@ func awsAwsjson10_deserializeDocumentOcuLimitExceededException(v **types.OcuLimi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6509,7 +6536,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6525,6 +6558,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7212,7 +7248,13 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7264,6 +7306,9 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7599,7 +7644,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7615,6 +7666,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/opsworks/deserializers.go b/service/opsworks/deserializers.go index 6f11c1022eb..638de02cf7c 100644 --- a/service/opsworks/deserializers.go +++ b/service/opsworks/deserializers.go @@ -11500,7 +11500,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11516,6 +11522,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12675,7 +12684,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12691,6 +12706,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/opsworkscm/deserializers.go b/service/opsworkscm/deserializers.go index b9fc9f7c72f..820b6392aa5 100644 --- a/service/opsworkscm/deserializers.go +++ b/service/opsworkscm/deserializers.go @@ -2940,7 +2940,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2956,6 +2962,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2980,7 +2989,13 @@ func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2996,6 +3011,9 @@ func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3020,7 +3038,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3036,6 +3060,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3060,7 +3087,13 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3076,6 +3109,9 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3100,7 +3136,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3116,6 +3158,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3647,7 +3692,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3663,6 +3714,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/organizations/deserializers.go b/service/organizations/deserializers.go index 3a0af7f39a1..26f1d0057c9 100644 --- a/service/organizations/deserializers.go +++ b/service/organizations/deserializers.go @@ -8612,7 +8612,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8628,6 +8634,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8652,7 +8661,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedForDependencyException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8677,6 +8692,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedForDependencyException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8802,7 +8820,13 @@ func awsAwsjson11_deserializeDocumentAccountAlreadyClosedException(v **types.Acc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8818,6 +8842,9 @@ func awsAwsjson11_deserializeDocumentAccountAlreadyClosedException(v **types.Acc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8842,7 +8869,13 @@ func awsAwsjson11_deserializeDocumentAccountAlreadyRegisteredException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8858,6 +8891,9 @@ func awsAwsjson11_deserializeDocumentAccountAlreadyRegisteredException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8882,7 +8918,13 @@ func awsAwsjson11_deserializeDocumentAccountNotFoundException(v **types.AccountN sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8898,6 +8940,9 @@ func awsAwsjson11_deserializeDocumentAccountNotFoundException(v **types.AccountN } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8922,7 +8967,13 @@ func awsAwsjson11_deserializeDocumentAccountNotRegisteredException(v **types.Acc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8938,6 +8989,9 @@ func awsAwsjson11_deserializeDocumentAccountNotRegisteredException(v **types.Acc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8962,7 +9016,13 @@ func awsAwsjson11_deserializeDocumentAccountOwnerNotVerifiedException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8978,6 +9038,9 @@ func awsAwsjson11_deserializeDocumentAccountOwnerNotVerifiedException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9036,7 +9099,13 @@ func awsAwsjson11_deserializeDocumentAlreadyInOrganizationException(v **types.Al sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9052,6 +9121,9 @@ func awsAwsjson11_deserializeDocumentAlreadyInOrganizationException(v **types.Al } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9076,7 +9148,13 @@ func awsAwsjson11_deserializeDocumentAWSOrganizationsNotInUseException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9092,6 +9170,9 @@ func awsAwsjson11_deserializeDocumentAWSOrganizationsNotInUseException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9165,7 +9246,13 @@ func awsAwsjson11_deserializeDocumentChildNotFoundException(v **types.ChildNotFo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9181,6 +9268,9 @@ func awsAwsjson11_deserializeDocumentChildNotFoundException(v **types.ChildNotFo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9239,7 +9329,13 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9255,6 +9351,9 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9279,7 +9378,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9295,6 +9400,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9319,7 +9427,13 @@ func awsAwsjson11_deserializeDocumentConstraintViolationException(v **types.Cons sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9344,6 +9458,9 @@ func awsAwsjson11_deserializeDocumentConstraintViolationException(v **types.Cons } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9519,7 +9636,13 @@ func awsAwsjson11_deserializeDocumentCreateAccountStatusNotFoundException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9535,6 +9658,9 @@ func awsAwsjson11_deserializeDocumentCreateAccountStatusNotFoundException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9800,7 +9926,13 @@ func awsAwsjson11_deserializeDocumentDestinationParentNotFoundException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9816,6 +9948,9 @@ func awsAwsjson11_deserializeDocumentDestinationParentNotFoundException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9840,7 +9975,13 @@ func awsAwsjson11_deserializeDocumentDuplicateAccountException(v **types.Duplica sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9856,6 +9997,9 @@ func awsAwsjson11_deserializeDocumentDuplicateAccountException(v **types.Duplica } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9880,7 +10024,13 @@ func awsAwsjson11_deserializeDocumentDuplicateHandshakeException(v **types.Dupli sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9896,6 +10046,9 @@ func awsAwsjson11_deserializeDocumentDuplicateHandshakeException(v **types.Dupli } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9920,7 +10073,13 @@ func awsAwsjson11_deserializeDocumentDuplicateOrganizationalUnitException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9936,6 +10095,9 @@ func awsAwsjson11_deserializeDocumentDuplicateOrganizationalUnitException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9960,7 +10122,13 @@ func awsAwsjson11_deserializeDocumentDuplicatePolicyAttachmentException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9976,6 +10144,9 @@ func awsAwsjson11_deserializeDocumentDuplicatePolicyAttachmentException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10000,7 +10171,13 @@ func awsAwsjson11_deserializeDocumentDuplicatePolicyException(v **types.Duplicat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10016,6 +10193,9 @@ func awsAwsjson11_deserializeDocumentDuplicatePolicyException(v **types.Duplicat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10114,7 +10294,13 @@ func awsAwsjson11_deserializeDocumentEffectivePolicyNotFoundException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10130,6 +10316,9 @@ func awsAwsjson11_deserializeDocumentEffectivePolicyNotFoundException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10244,7 +10433,13 @@ func awsAwsjson11_deserializeDocumentFinalizingOrganizationException(v **types.F sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10260,6 +10455,9 @@ func awsAwsjson11_deserializeDocumentFinalizingOrganizationException(v **types.F } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10393,7 +10591,13 @@ func awsAwsjson11_deserializeDocumentHandshakeAlreadyInStateException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10409,6 +10613,9 @@ func awsAwsjson11_deserializeDocumentHandshakeAlreadyInStateException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10433,7 +10640,13 @@ func awsAwsjson11_deserializeDocumentHandshakeConstraintViolationException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10458,6 +10671,9 @@ func awsAwsjson11_deserializeDocumentHandshakeConstraintViolationException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10482,7 +10698,13 @@ func awsAwsjson11_deserializeDocumentHandshakeNotFoundException(v **types.Handsh sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10498,6 +10720,9 @@ func awsAwsjson11_deserializeDocumentHandshakeNotFoundException(v **types.Handsh } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10727,7 +10952,13 @@ func awsAwsjson11_deserializeDocumentInvalidHandshakeTransitionException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10743,6 +10974,9 @@ func awsAwsjson11_deserializeDocumentInvalidHandshakeTransitionException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10767,7 +11001,13 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10792,6 +11032,9 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10816,7 +11059,13 @@ func awsAwsjson11_deserializeDocumentMalformedPolicyDocumentException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10832,6 +11081,9 @@ func awsAwsjson11_deserializeDocumentMalformedPolicyDocumentException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10856,7 +11108,13 @@ func awsAwsjson11_deserializeDocumentMasterCannotLeaveOrganizationException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10872,6 +11130,9 @@ func awsAwsjson11_deserializeDocumentMasterCannotLeaveOrganizationException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11044,7 +11305,13 @@ func awsAwsjson11_deserializeDocumentOrganizationalUnitNotEmptyException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11060,6 +11327,9 @@ func awsAwsjson11_deserializeDocumentOrganizationalUnitNotEmptyException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11084,7 +11354,13 @@ func awsAwsjson11_deserializeDocumentOrganizationalUnitNotFoundException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11100,6 +11376,9 @@ func awsAwsjson11_deserializeDocumentOrganizationalUnitNotFoundException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11158,7 +11437,13 @@ func awsAwsjson11_deserializeDocumentOrganizationNotEmptyException(v **types.Org sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11174,6 +11459,9 @@ func awsAwsjson11_deserializeDocumentOrganizationNotEmptyException(v **types.Org } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11247,7 +11535,13 @@ func awsAwsjson11_deserializeDocumentParentNotFoundException(v **types.ParentNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11263,6 +11557,9 @@ func awsAwsjson11_deserializeDocumentParentNotFoundException(v **types.ParentNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11400,7 +11697,13 @@ func awsAwsjson11_deserializeDocumentPolicyChangesInProgressException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11416,6 +11719,9 @@ func awsAwsjson11_deserializeDocumentPolicyChangesInProgressException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11440,7 +11746,13 @@ func awsAwsjson11_deserializeDocumentPolicyInUseException(v **types.PolicyInUseE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11456,6 +11768,9 @@ func awsAwsjson11_deserializeDocumentPolicyInUseException(v **types.PolicyInUseE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11480,7 +11795,13 @@ func awsAwsjson11_deserializeDocumentPolicyNotAttachedException(v **types.Policy sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11496,6 +11817,9 @@ func awsAwsjson11_deserializeDocumentPolicyNotAttachedException(v **types.Policy } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11520,7 +11844,13 @@ func awsAwsjson11_deserializeDocumentPolicyNotFoundException(v **types.PolicyNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11536,6 +11866,9 @@ func awsAwsjson11_deserializeDocumentPolicyNotFoundException(v **types.PolicyNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11746,7 +12079,13 @@ func awsAwsjson11_deserializeDocumentPolicyTypeAlreadyEnabledException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11762,6 +12101,9 @@ func awsAwsjson11_deserializeDocumentPolicyTypeAlreadyEnabledException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11786,7 +12128,13 @@ func awsAwsjson11_deserializeDocumentPolicyTypeNotAvailableForOrganizationExcept sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11802,6 +12150,9 @@ func awsAwsjson11_deserializeDocumentPolicyTypeNotAvailableForOrganizationExcept } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11826,7 +12177,13 @@ func awsAwsjson11_deserializeDocumentPolicyTypeNotEnabledException(v **types.Pol sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11842,6 +12199,9 @@ func awsAwsjson11_deserializeDocumentPolicyTypeNotEnabledException(v **types.Pol } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11994,7 +12354,13 @@ func awsAwsjson11_deserializeDocumentResourcePolicyNotFoundException(v **types.R sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12010,6 +12376,9 @@ func awsAwsjson11_deserializeDocumentResourcePolicyNotFoundException(v **types.R } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12146,7 +12515,13 @@ func awsAwsjson11_deserializeDocumentRootNotFoundException(v **types.RootNotFoun sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12162,6 +12537,9 @@ func awsAwsjson11_deserializeDocumentRootNotFoundException(v **types.RootNotFoun } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12220,7 +12598,13 @@ func awsAwsjson11_deserializeDocumentServiceException(v **types.ServiceException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12236,6 +12620,9 @@ func awsAwsjson11_deserializeDocumentServiceException(v **types.ServiceException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12260,7 +12647,13 @@ func awsAwsjson11_deserializeDocumentSourceParentNotFoundException(v **types.Sou sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12276,6 +12669,9 @@ func awsAwsjson11_deserializeDocumentSourceParentNotFoundException(v **types.Sou } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12383,7 +12779,13 @@ func awsAwsjson11_deserializeDocumentTargetNotFoundException(v **types.TargetNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12399,6 +12801,9 @@ func awsAwsjson11_deserializeDocumentTargetNotFoundException(v **types.TargetNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12423,7 +12828,13 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12448,6 +12859,9 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12472,7 +12886,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedAPIEndpointException(v **types.U sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12488,6 +12908,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedAPIEndpointException(v **types.U } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/osis/deserializers.go b/service/osis/deserializers.go index 7c5490eb745..00c987a4047 100644 --- a/service/osis/deserializers.go +++ b/service/osis/deserializers.go @@ -2522,7 +2522,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2538,6 +2544,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2858,7 +2867,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2874,6 +2889,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2898,7 +2916,13 @@ func awsRestjson1_deserializeDocumentDisabledOperationException(v **types.Disabl sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2914,6 +2938,9 @@ func awsRestjson1_deserializeDocumentDisabledOperationException(v **types.Disabl } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3014,7 +3041,13 @@ func awsRestjson1_deserializeDocumentInternalException(v **types.InternalExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3030,6 +3063,9 @@ func awsRestjson1_deserializeDocumentInternalException(v **types.InternalExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3054,7 +3090,13 @@ func awsRestjson1_deserializeDocumentInvalidPaginationTokenException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3070,6 +3112,9 @@ func awsRestjson1_deserializeDocumentInvalidPaginationTokenException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3094,7 +3139,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3110,6 +3161,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3841,7 +3895,13 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3857,6 +3917,9 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3881,7 +3944,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3897,6 +3966,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4159,7 +4231,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4175,6 +4253,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/outposts/deserializers.go b/service/outposts/deserializers.go index 91e4e4c9a3a..bdc2d518735 100644 --- a/service/outposts/deserializers.go +++ b/service/outposts/deserializers.go @@ -5226,7 +5226,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5242,6 +5248,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5996,7 +6005,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6030,6 +6045,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6403,7 +6421,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6419,6 +6443,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6731,7 +6758,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6747,6 +6780,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7346,7 +7382,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7362,6 +7404,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7703,7 +7748,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7719,6 +7770,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/panorama/deserializers.go b/service/panorama/deserializers.go index e9c7d033c7f..4039cdb124c 100644 --- a/service/panorama/deserializers.go +++ b/service/panorama/deserializers.go @@ -6495,7 +6495,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6511,6 +6517,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6781,7 +6790,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorArguments": if err := awsRestjson1_deserializeDocumentConflictExceptionErrorArgumentList(&sv.ErrorArguments, value); err != nil { @@ -6829,6 +6844,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7421,7 +7439,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7450,6 +7474,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9414,7 +9441,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9448,6 +9481,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9530,7 +9566,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9582,6 +9624,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9817,7 +9862,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorArguments": if err := awsRestjson1_deserializeDocumentValidationExceptionErrorArgumentList(&sv.ErrorArguments, value); err != nil { @@ -9861,6 +9912,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/paymentcryptography/deserializers.go b/service/paymentcryptography/deserializers.go index 04fa111db8f..48c8420a2d6 100644 --- a/service/paymentcryptography/deserializers.go +++ b/service/paymentcryptography/deserializers.go @@ -2918,7 +2918,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2934,6 +2940,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3041,7 +3050,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3057,6 +3072,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3081,7 +3099,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3097,6 +3121,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3590,7 +3617,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ResourceId": if value != nil { @@ -3606,6 +3639,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3630,7 +3666,13 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3646,6 +3688,9 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3670,7 +3715,13 @@ func awsAwsjson10_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3686,6 +3737,9 @@ func awsAwsjson10_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3793,7 +3847,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3809,6 +3869,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3833,7 +3896,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3849,6 +3918,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/paymentcryptographydata/deserializers.go b/service/paymentcryptographydata/deserializers.go index 65d9cfa7a3e..20da9e421b0 100644 --- a/service/paymentcryptographydata/deserializers.go +++ b/service/paymentcryptographydata/deserializers.go @@ -2573,7 +2573,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2589,6 +2595,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2613,7 +2622,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2629,6 +2644,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2707,7 +2725,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ResourceId": if value != nil { @@ -2723,6 +2747,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2747,7 +2774,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2763,6 +2796,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2787,7 +2823,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -2808,6 +2850,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2915,7 +2960,13 @@ func awsRestjson1_deserializeDocumentVerificationFailedException(v **types.Verif sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2940,6 +2991,9 @@ func awsRestjson1_deserializeDocumentVerificationFailedException(v **types.Verif } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/pcaconnectorad/deserializers.go b/service/pcaconnectorad/deserializers.go index 04fb3d6041f..576f2f94f5b 100644 --- a/service/pcaconnectorad/deserializers.go +++ b/service/pcaconnectorad/deserializers.go @@ -4078,7 +4078,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4094,6 +4100,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4339,7 +4348,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4373,6 +4388,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5441,7 +5459,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5457,6 +5481,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6124,7 +6151,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6158,6 +6191,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6450,7 +6486,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6502,6 +6544,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7605,7 +7650,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7639,6 +7690,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7663,7 +7717,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7688,6 +7748,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/pcaconnectorscep/deserializers.go b/service/pcaconnectorscep/deserializers.go index a99e3d9fc12..46f7ac96fa8 100644 --- a/service/pcaconnectorscep/deserializers.go +++ b/service/pcaconnectorscep/deserializers.go @@ -2118,7 +2118,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2134,6 +2140,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2158,7 +2167,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2174,6 +2189,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2484,7 +2502,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2518,6 +2542,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2830,7 +2857,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2846,6 +2879,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3017,7 +3053,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3051,6 +3093,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3075,7 +3120,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3118,6 +3169,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3178,7 +3232,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3194,6 +3254,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3218,7 +3281,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3243,6 +3312,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/pcs/deserializers.go b/service/pcs/deserializers.go index 5850668ab77..e7e3c11fe75 100644 --- a/service/pcs/deserializers.go +++ b/service/pcs/deserializers.go @@ -2474,7 +2474,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2490,6 +2496,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3232,7 +3241,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3266,6 +3281,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3597,7 +3615,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3613,6 +3637,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3926,7 +3953,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3960,6 +3993,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4162,7 +4198,13 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4214,6 +4256,9 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4446,7 +4491,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4475,6 +4526,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4499,7 +4553,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsAwsjson10_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -4529,6 +4589,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/personalize/deserializers.go b/service/personalize/deserializers.go index dd3b7f11d79..be87bcf1055 100644 --- a/service/personalize/deserializers.go +++ b/service/personalize/deserializers.go @@ -13457,7 +13457,13 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13473,6 +13479,9 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13497,7 +13506,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13513,6 +13528,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13537,7 +13555,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13553,6 +13577,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14757,7 +14784,13 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14773,6 +14806,9 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14833,7 +14869,13 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14849,6 +14891,9 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14873,7 +14918,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14889,6 +14940,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15975,7 +16029,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagKeysException(v **types.TooManyTa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15991,6 +16051,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagKeysException(v **types.TooManyTa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16015,7 +16078,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16031,6 +16100,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/personalizeevents/deserializers.go b/service/personalizeevents/deserializers.go index 24af7681919..80bc821963c 100644 --- a/service/personalizeevents/deserializers.go +++ b/service/personalizeevents/deserializers.go @@ -652,7 +652,13 @@ func awsRestjson1_deserializeDocumentInvalidInputException(v **types.InvalidInpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -668,6 +674,9 @@ func awsRestjson1_deserializeDocumentInvalidInputException(v **types.InvalidInpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -692,7 +701,13 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -708,6 +723,9 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -732,7 +750,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -748,6 +772,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/personalizeruntime/deserializers.go b/service/personalizeruntime/deserializers.go index b657ea9d8d8..cb21ca43fd8 100644 --- a/service/personalizeruntime/deserializers.go +++ b/service/personalizeruntime/deserializers.go @@ -648,7 +648,13 @@ func awsRestjson1_deserializeDocumentInvalidInputException(v **types.InvalidInpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -664,6 +670,9 @@ func awsRestjson1_deserializeDocumentInvalidInputException(v **types.InvalidInpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -961,7 +970,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -977,6 +992,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/pi/deserializers.go b/service/pi/deserializers.go index fc08d149a25..97a5e40f401 100644 --- a/service/pi/deserializers.go +++ b/service/pi/deserializers.go @@ -2846,7 +2846,13 @@ func awsAwsjson11_deserializeDocumentInternalServiceError(v **types.InternalServ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2862,6 +2868,9 @@ func awsAwsjson11_deserializeDocumentInternalServiceError(v **types.InternalServ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2886,7 +2895,13 @@ func awsAwsjson11_deserializeDocumentInvalidArgumentException(v **types.InvalidA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2902,6 +2917,9 @@ func awsAwsjson11_deserializeDocumentInvalidArgumentException(v **types.InvalidA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3141,7 +3159,13 @@ func awsAwsjson11_deserializeDocumentNotAuthorizedException(v **types.NotAuthori sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3157,6 +3181,9 @@ func awsAwsjson11_deserializeDocumentNotAuthorizedException(v **types.NotAuthori } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/pinpoint/deserializers.go b/service/pinpoint/deserializers.go index fe080cbdb91..0cedbfc8fea 100644 --- a/service/pinpoint/deserializers.go +++ b/service/pinpoint/deserializers.go @@ -22510,7 +22510,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -22535,6 +22541,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23969,7 +23978,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -23994,6 +24009,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26036,7 +26054,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -26061,6 +26085,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27368,7 +27395,13 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -27393,6 +27426,9 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30685,7 +30721,13 @@ func awsRestjson1_deserializeDocumentMethodNotAllowedException(v **types.MethodN sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -30710,6 +30752,9 @@ func awsRestjson1_deserializeDocumentMethodNotAllowedException(v **types.MethodN } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30903,7 +30948,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -30928,6 +30979,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -31267,7 +31321,13 @@ func awsRestjson1_deserializeDocumentPayloadTooLargeException(v **types.PayloadT sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -31292,6 +31352,9 @@ func awsRestjson1_deserializeDocumentPayloadTooLargeException(v **types.PayloadT } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -33747,7 +33810,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -33772,6 +33841,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/pinpointemail/deserializers.go b/service/pinpointemail/deserializers.go index 3b9a48486e0..5ea6ba1a4dc 100644 --- a/service/pinpointemail/deserializers.go +++ b/service/pinpointemail/deserializers.go @@ -5957,7 +5957,13 @@ func awsRestjson1_deserializeDocumentAccountSuspendedException(v **types.Account sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5973,6 +5979,9 @@ func awsRestjson1_deserializeDocumentAccountSuspendedException(v **types.Account } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5997,7 +6006,13 @@ func awsRestjson1_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6013,6 +6028,9 @@ func awsRestjson1_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6037,7 +6055,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6053,6 +6077,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6338,7 +6365,13 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6354,6 +6387,9 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7939,7 +7975,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7955,6 +7997,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8073,7 +8118,13 @@ func awsRestjson1_deserializeDocumentMailFromDomainNotVerifiedException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8089,6 +8140,9 @@ func awsRestjson1_deserializeDocumentMailFromDomainNotVerifiedException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8113,7 +8167,13 @@ func awsRestjson1_deserializeDocumentMessageRejected(v **types.MessageRejected, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8129,6 +8189,9 @@ func awsRestjson1_deserializeDocumentMessageRejected(v **types.MessageRejected, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8153,7 +8216,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8169,6 +8238,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8605,7 +8677,13 @@ func awsRestjson1_deserializeDocumentSendingPausedException(v **types.SendingPau sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8621,6 +8699,9 @@ func awsRestjson1_deserializeDocumentSendingPausedException(v **types.SendingPau } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8901,7 +8982,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8917,6 +9004,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/pinpointsmsvoice/deserializers.go b/service/pinpointsmsvoice/deserializers.go index c66808fbc09..60531436798 100644 --- a/service/pinpointsmsvoice/deserializers.go +++ b/service/pinpointsmsvoice/deserializers.go @@ -1249,7 +1249,13 @@ func awsRestjson1_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1265,6 +1271,9 @@ func awsRestjson1_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1289,7 +1298,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1305,6 +1320,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1553,7 +1571,13 @@ func awsRestjson1_deserializeDocumentInternalServiceErrorException(v **types.Int sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1569,6 +1593,9 @@ func awsRestjson1_deserializeDocumentInternalServiceErrorException(v **types.Int } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1642,7 +1669,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1658,6 +1691,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1682,7 +1718,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1698,6 +1740,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1762,7 +1807,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1778,6 +1829,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/pinpointsmsvoicev2/deserializers.go b/service/pinpointsmsvoicev2/deserializers.go index 6f91b71a7cc..f277a56b2df 100644 --- a/service/pinpointsmsvoicev2/deserializers.go +++ b/service/pinpointsmsvoicev2/deserializers.go @@ -10863,7 +10863,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10888,6 +10894,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11275,7 +11284,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11318,6 +11333,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11481,7 +11499,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11506,6 +11530,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14039,7 +14066,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14073,6 +14106,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14420,7 +14456,13 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14445,6 +14487,9 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14940,7 +14985,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14956,6 +15007,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14980,7 +15034,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Fields": if err := awsAwsjson10_deserializeDocumentValidationExceptionFieldList(&sv.Fields, value); err != nil { @@ -15010,6 +15070,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/pipes/deserializers.go b/service/pipes/deserializers.go index ca022048d4e..ae859ca17ea 100644 --- a/service/pipes/deserializers.go +++ b/service/pipes/deserializers.go @@ -2887,7 +2887,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2921,6 +2927,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3926,7 +3935,13 @@ func awsRestjson1_deserializeDocumentInternalException(v **types.InternalExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3955,6 +3970,9 @@ func awsRestjson1_deserializeDocumentInternalException(v **types.InternalExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4318,7 +4336,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4334,6 +4358,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6851,7 +6878,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6903,6 +6936,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7282,7 +7318,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7329,6 +7371,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7353,7 +7398,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -7374,6 +7425,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/polly/deserializers.go b/service/polly/deserializers.go index def8cf7f96d..e0246aab0a2 100644 --- a/service/polly/deserializers.go +++ b/service/polly/deserializers.go @@ -2186,7 +2186,13 @@ func awsRestjson1_deserializeDocumentEngineNotSupportedException(v **types.Engin sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2202,6 +2208,9 @@ func awsRestjson1_deserializeDocumentEngineNotSupportedException(v **types.Engin } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2226,7 +2235,13 @@ func awsRestjson1_deserializeDocumentInvalidLexiconException(v **types.InvalidLe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2242,6 +2257,9 @@ func awsRestjson1_deserializeDocumentInvalidLexiconException(v **types.InvalidLe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2266,7 +2284,13 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2282,6 +2306,9 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2306,7 +2333,13 @@ func awsRestjson1_deserializeDocumentInvalidS3BucketException(v **types.InvalidS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2322,6 +2355,9 @@ func awsRestjson1_deserializeDocumentInvalidS3BucketException(v **types.InvalidS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2346,7 +2382,13 @@ func awsRestjson1_deserializeDocumentInvalidS3KeyException(v **types.InvalidS3Ke sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2362,6 +2404,9 @@ func awsRestjson1_deserializeDocumentInvalidS3KeyException(v **types.InvalidS3Ke } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2386,7 +2431,13 @@ func awsRestjson1_deserializeDocumentInvalidSampleRateException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2402,6 +2453,9 @@ func awsRestjson1_deserializeDocumentInvalidSampleRateException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2426,7 +2480,13 @@ func awsRestjson1_deserializeDocumentInvalidSnsTopicArnException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2442,6 +2502,9 @@ func awsRestjson1_deserializeDocumentInvalidSnsTopicArnException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2466,7 +2529,13 @@ func awsRestjson1_deserializeDocumentInvalidSsmlException(v **types.InvalidSsmlE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2482,6 +2551,9 @@ func awsRestjson1_deserializeDocumentInvalidSsmlException(v **types.InvalidSsmlE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2506,7 +2578,13 @@ func awsRestjson1_deserializeDocumentInvalidTaskIdException(v **types.InvalidTas sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2522,6 +2600,9 @@ func awsRestjson1_deserializeDocumentInvalidTaskIdException(v **types.InvalidTas } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2582,7 +2663,13 @@ func awsRestjson1_deserializeDocumentLanguageNotSupportedException(v **types.Lan sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2598,6 +2685,9 @@ func awsRestjson1_deserializeDocumentLanguageNotSupportedException(v **types.Lan } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2886,7 +2976,13 @@ func awsRestjson1_deserializeDocumentLexiconNotFoundException(v **types.LexiconN sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2902,6 +2998,9 @@ func awsRestjson1_deserializeDocumentLexiconNotFoundException(v **types.LexiconN } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2926,7 +3025,13 @@ func awsRestjson1_deserializeDocumentLexiconSizeExceededException(v **types.Lexi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2942,6 +3047,9 @@ func awsRestjson1_deserializeDocumentLexiconSizeExceededException(v **types.Lexi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2966,7 +3074,13 @@ func awsRestjson1_deserializeDocumentMarksNotSupportedForFormatException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2982,6 +3096,9 @@ func awsRestjson1_deserializeDocumentMarksNotSupportedForFormatException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3006,7 +3123,13 @@ func awsRestjson1_deserializeDocumentMaxLexemeLengthExceededException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3022,6 +3145,9 @@ func awsRestjson1_deserializeDocumentMaxLexemeLengthExceededException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3046,7 +3172,13 @@ func awsRestjson1_deserializeDocumentMaxLexiconsNumberExceededException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3062,6 +3194,9 @@ func awsRestjson1_deserializeDocumentMaxLexiconsNumberExceededException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3086,7 +3221,13 @@ func awsRestjson1_deserializeDocumentServiceFailureException(v **types.ServiceFa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3102,6 +3243,9 @@ func awsRestjson1_deserializeDocumentServiceFailureException(v **types.ServiceFa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3162,7 +3306,13 @@ func awsRestjson1_deserializeDocumentSsmlMarksNotSupportedForTextTypeException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3178,6 +3328,9 @@ func awsRestjson1_deserializeDocumentSsmlMarksNotSupportedForTextTypeException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3371,7 +3524,13 @@ func awsRestjson1_deserializeDocumentSynthesisTaskNotFoundException(v **types.Sy sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3387,6 +3546,9 @@ func awsRestjson1_deserializeDocumentSynthesisTaskNotFoundException(v **types.Sy } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3445,7 +3607,13 @@ func awsRestjson1_deserializeDocumentTextLengthExceededException(v **types.TextL sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3461,6 +3629,9 @@ func awsRestjson1_deserializeDocumentTextLengthExceededException(v **types.TextL } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3485,7 +3656,13 @@ func awsRestjson1_deserializeDocumentUnsupportedPlsAlphabetException(v **types.U sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3501,6 +3678,9 @@ func awsRestjson1_deserializeDocumentUnsupportedPlsAlphabetException(v **types.U } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3525,7 +3705,13 @@ func awsRestjson1_deserializeDocumentUnsupportedPlsLanguageException(v **types.U sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3541,6 +3727,9 @@ func awsRestjson1_deserializeDocumentUnsupportedPlsLanguageException(v **types.U } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/pricing/deserializers.go b/service/pricing/deserializers.go index eb4d6840812..fbf396fa61c 100644 --- a/service/pricing/deserializers.go +++ b/service/pricing/deserializers.go @@ -965,7 +965,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -981,6 +987,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1115,7 +1124,13 @@ func awsAwsjson11_deserializeDocumentExpiredNextTokenException(v **types.Expired sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1131,6 +1146,9 @@ func awsAwsjson11_deserializeDocumentExpiredNextTokenException(v **types.Expired } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1191,7 +1209,13 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1207,6 +1231,9 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1231,7 +1258,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1247,6 +1280,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1271,7 +1307,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1287,6 +1329,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1311,7 +1356,13 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1327,6 +1378,9 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1484,7 +1538,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1500,6 +1560,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1603,7 +1666,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1619,6 +1688,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/privatenetworks/deserializers.go b/service/privatenetworks/deserializers.go index a3add3e6489..3da9497afc3 100644 --- a/service/privatenetworks/deserializers.go +++ b/service/privatenetworks/deserializers.go @@ -4384,7 +4384,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4400,6 +4406,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4815,7 +4824,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4844,6 +4859,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4868,7 +4886,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4884,6 +4908,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5978,7 +6005,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6012,6 +6045,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6176,7 +6212,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6192,6 +6234,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6290,7 +6335,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -6320,6 +6371,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/proton/deserializers.go b/service/proton/deserializers.go index 5a42d020659..fa64dfb79e6 100644 --- a/service/proton/deserializers.go +++ b/service/proton/deserializers.go @@ -11133,7 +11133,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11149,6 +11155,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11826,7 +11835,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11842,6 +11857,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13898,7 +13916,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13914,6 +13938,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14757,7 +14784,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14773,6 +14806,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15944,7 +15980,13 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15960,6 +16002,9 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17265,7 +17310,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17281,6 +17332,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17305,7 +17359,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17321,6 +17381,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/qapps/deserializers.go b/service/qapps/deserializers.go index 9de943f0ad8..c6d9a7e5e3d 100644 --- a/service/qapps/deserializers.go +++ b/service/qapps/deserializers.go @@ -4630,7 +4630,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4646,6 +4652,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5291,7 +5300,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5325,6 +5340,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5349,7 +5367,13 @@ func awsRestjson1_deserializeDocumentContentTooLargeException(v **types.ContentT sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5383,6 +5407,9 @@ func awsRestjson1_deserializeDocumentContentTooLargeException(v **types.ContentT } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5784,7 +5811,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5813,6 +5846,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6422,7 +6458,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6456,6 +6498,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6480,7 +6525,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6532,6 +6583,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6749,7 +6803,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6796,6 +6856,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6820,7 +6883,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6836,6 +6905,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7001,7 +7073,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7017,6 +7095,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/qbusiness/deserializers.go b/service/qbusiness/deserializers.go index 4c57f9cb4f2..4c37b5fd2af 100644 --- a/service/qbusiness/deserializers.go +++ b/service/qbusiness/deserializers.go @@ -10379,7 +10379,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10395,6 +10401,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11161,7 +11170,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11195,6 +11210,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13301,7 +13319,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13317,6 +13341,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13381,7 +13408,13 @@ func awsRestjson1_deserializeDocumentLicenseNotFoundException(v **types.LicenseN sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13397,6 +13430,9 @@ func awsRestjson1_deserializeDocumentLicenseNotFoundException(v **types.LicenseN } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14063,7 +14099,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14097,6 +14139,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14612,7 +14657,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14646,6 +14697,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14967,7 +15021,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14983,6 +15043,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15305,7 +15368,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fields": if err := awsRestjson1_deserializeDocumentValidationExceptionFields(&sv.Fields, value); err != nil { @@ -15335,6 +15404,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/qconnect/deserializers.go b/service/qconnect/deserializers.go index ca0ccae5d1b..884642cba25 100644 --- a/service/qconnect/deserializers.go +++ b/service/qconnect/deserializers.go @@ -10265,7 +10265,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10281,6 +10287,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12464,7 +12473,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12480,6 +12495,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15405,7 +15423,13 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15421,6 +15445,9 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16653,7 +16680,13 @@ func awsRestjson1_deserializeDocumentRequestTimeoutException(v **types.RequestTi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16669,6 +16702,9 @@ func awsRestjson1_deserializeDocumentRequestTimeoutException(v **types.RequestTi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16693,7 +16729,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16718,6 +16760,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17140,7 +17185,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17156,6 +17207,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17742,7 +17796,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17758,6 +17818,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17782,7 +17845,13 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17807,6 +17876,9 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17903,7 +17975,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17919,6 +17997,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/qldb/deserializers.go b/service/qldb/deserializers.go index ab8601a8bb4..1be38d24649 100644 --- a/service/qldb/deserializers.go +++ b/service/qldb/deserializers.go @@ -3464,7 +3464,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3489,6 +3495,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4070,7 +4079,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4095,6 +4110,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4119,7 +4137,13 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4153,6 +4177,9 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4177,7 +4204,13 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4211,6 +4244,9 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4235,7 +4271,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4269,6 +4311,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4293,7 +4338,13 @@ func awsRestjson1_deserializeDocumentResourcePreconditionNotMetException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4327,6 +4378,9 @@ func awsRestjson1_deserializeDocumentResourcePreconditionNotMetException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/qldbsession/deserializers.go b/service/qldbsession/deserializers.go index abea8458a06..88230e71a58 100644 --- a/service/qldbsession/deserializers.go +++ b/service/qldbsession/deserializers.go @@ -422,7 +422,13 @@ func awsAwsjson10_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -447,6 +453,9 @@ func awsAwsjson10_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -471,7 +480,13 @@ func awsAwsjson10_deserializeDocumentCapacityExceededException(v **types.Capacit sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -487,6 +502,9 @@ func awsAwsjson10_deserializeDocumentCapacityExceededException(v **types.Capacit } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -702,7 +720,13 @@ func awsAwsjson10_deserializeDocumentInvalidSessionException(v **types.InvalidSe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -727,6 +751,9 @@ func awsAwsjson10_deserializeDocumentInvalidSessionException(v **types.InvalidSe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -808,7 +835,13 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -824,6 +857,9 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -848,7 +884,13 @@ func awsAwsjson10_deserializeDocumentOccConflictException(v **types.OccConflictE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -864,6 +906,9 @@ func awsAwsjson10_deserializeDocumentOccConflictException(v **types.OccConflictE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -933,7 +978,13 @@ func awsAwsjson10_deserializeDocumentRateExceededException(v **types.RateExceede sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -949,6 +1000,9 @@ func awsAwsjson10_deserializeDocumentRateExceededException(v **types.RateExceede } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/quicksight/deserializers.go b/service/quicksight/deserializers.go index ef90b7f725b..bbd93d19adb 100644 --- a/service/quicksight/deserializers.go +++ b/service/quicksight/deserializers.go @@ -37840,7 +37840,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -37865,6 +37871,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -48999,7 +49008,13 @@ func awsRestjson1_deserializeDocumentConcurrentUpdatingException(v **types.Concu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -49024,6 +49039,9 @@ func awsRestjson1_deserializeDocumentConcurrentUpdatingException(v **types.Concu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -49421,7 +49439,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -49446,6 +49470,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -50281,7 +50308,13 @@ func awsRestjson1_deserializeDocumentCustomerManagedKeyUnavailableException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -50306,6 +50339,9 @@ func awsRestjson1_deserializeDocumentCustomerManagedKeyUnavailableException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -56468,7 +56504,13 @@ func awsRestjson1_deserializeDocumentDomainNotWhitelistedException(v **types.Dom sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -56493,6 +56535,9 @@ func awsRestjson1_deserializeDocumentDomainNotWhitelistedException(v **types.Dom } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -64595,7 +64640,13 @@ func awsRestjson1_deserializeDocumentIdentityTypeNotSupportedException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -64620,6 +64671,9 @@ func awsRestjson1_deserializeDocumentIdentityTypeNotSupportedException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -65506,7 +65560,13 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -65531,6 +65591,9 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -65555,7 +65618,13 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -65580,6 +65649,9 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -65604,7 +65676,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -65629,6 +65707,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -65653,7 +65734,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -65678,6 +65765,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -67013,7 +67103,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -67047,6 +67143,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -74056,7 +74155,13 @@ func awsRestjson1_deserializeDocumentPreconditionNotMetException(v **types.Preco sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -74081,6 +74186,9 @@ func awsRestjson1_deserializeDocumentPreconditionNotMetException(v **types.Preco } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -74488,7 +74596,13 @@ func awsRestjson1_deserializeDocumentQuickSightUserNotFoundException(v **types.Q sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -74513,6 +74627,9 @@ func awsRestjson1_deserializeDocumentQuickSightUserNotFoundException(v **types.Q } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -76371,7 +76488,13 @@ func awsRestjson1_deserializeDocumentResourceExistsException(v **types.ResourceE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -76405,6 +76528,9 @@ func awsRestjson1_deserializeDocumentResourceExistsException(v **types.ResourceE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -76429,7 +76555,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -76463,6 +76595,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -76566,7 +76701,13 @@ func awsRestjson1_deserializeDocumentResourceUnavailableException(v **types.Reso sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -76600,6 +76741,9 @@ func awsRestjson1_deserializeDocumentResourceUnavailableException(v **types.Reso } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -78910,7 +79054,13 @@ func awsRestjson1_deserializeDocumentSessionLifetimeInMinutesInvalidException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -78935,6 +79085,9 @@ func awsRestjson1_deserializeDocumentSessionLifetimeInMinutesInvalidException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -85725,7 +85878,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -85750,6 +85909,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -90470,7 +90632,13 @@ func awsRestjson1_deserializeDocumentUnsupportedPricingPlanException(v **types.U sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -90495,6 +90663,9 @@ func awsRestjson1_deserializeDocumentUnsupportedPricingPlanException(v **types.U } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -90519,7 +90690,13 @@ func awsRestjson1_deserializeDocumentUnsupportedUserEditionException(v **types.U sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -90544,6 +90721,9 @@ func awsRestjson1_deserializeDocumentUnsupportedUserEditionException(v **types.U } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/ram/deserializers.go b/service/ram/deserializers.go index 009d325dd3d..0e628d29294 100644 --- a/service/ram/deserializers.go +++ b/service/ram/deserializers.go @@ -7218,7 +7218,13 @@ func awsRestjson1_deserializeDocumentIdempotentParameterMismatchException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7234,6 +7240,9 @@ func awsRestjson1_deserializeDocumentIdempotentParameterMismatchException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7258,7 +7267,13 @@ func awsRestjson1_deserializeDocumentInvalidClientTokenException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7274,6 +7289,9 @@ func awsRestjson1_deserializeDocumentInvalidClientTokenException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7298,7 +7316,13 @@ func awsRestjson1_deserializeDocumentInvalidMaxResultsException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7314,6 +7338,9 @@ func awsRestjson1_deserializeDocumentInvalidMaxResultsException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7338,7 +7365,13 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7354,6 +7387,9 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7378,7 +7414,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7394,6 +7436,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7418,7 +7463,13 @@ func awsRestjson1_deserializeDocumentInvalidPolicyException(v **types.InvalidPol sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7434,6 +7485,9 @@ func awsRestjson1_deserializeDocumentInvalidPolicyException(v **types.InvalidPol } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7458,7 +7512,13 @@ func awsRestjson1_deserializeDocumentInvalidResourceTypeException(v **types.Inva sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7474,6 +7534,9 @@ func awsRestjson1_deserializeDocumentInvalidResourceTypeException(v **types.Inva } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7498,7 +7561,13 @@ func awsRestjson1_deserializeDocumentInvalidStateTransitionException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7514,6 +7583,9 @@ func awsRestjson1_deserializeDocumentInvalidStateTransitionException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7538,7 +7610,13 @@ func awsRestjson1_deserializeDocumentMalformedArnException(v **types.MalformedAr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7554,6 +7632,9 @@ func awsRestjson1_deserializeDocumentMalformedArnException(v **types.MalformedAr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7578,7 +7659,13 @@ func awsRestjson1_deserializeDocumentMalformedPolicyTemplateException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7594,6 +7681,9 @@ func awsRestjson1_deserializeDocumentMalformedPolicyTemplateException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7618,7 +7708,13 @@ func awsRestjson1_deserializeDocumentMissingRequiredParameterException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7634,6 +7730,9 @@ func awsRestjson1_deserializeDocumentMissingRequiredParameterException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7658,7 +7757,13 @@ func awsRestjson1_deserializeDocumentOperationNotPermittedException(v **types.Op sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7674,6 +7779,9 @@ func awsRestjson1_deserializeDocumentOperationNotPermittedException(v **types.Op } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7698,7 +7806,13 @@ func awsRestjson1_deserializeDocumentPermissionAlreadyExistsException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7714,6 +7828,9 @@ func awsRestjson1_deserializeDocumentPermissionAlreadyExistsException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7738,7 +7855,13 @@ func awsRestjson1_deserializeDocumentPermissionLimitExceededException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7754,6 +7877,9 @@ func awsRestjson1_deserializeDocumentPermissionLimitExceededException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7778,7 +7904,13 @@ func awsRestjson1_deserializeDocumentPermissionVersionsLimitExceededException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7794,6 +7926,9 @@ func awsRestjson1_deserializeDocumentPermissionVersionsLimitExceededException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8264,7 +8399,13 @@ func awsRestjson1_deserializeDocumentResourceArnNotFoundException(v **types.Reso sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8280,6 +8421,9 @@ func awsRestjson1_deserializeDocumentResourceArnNotFoundException(v **types.Reso } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8744,7 +8888,13 @@ func awsRestjson1_deserializeDocumentResourceShareInvitationAlreadyAcceptedExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8760,6 +8910,9 @@ func awsRestjson1_deserializeDocumentResourceShareInvitationAlreadyAcceptedExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8784,7 +8937,13 @@ func awsRestjson1_deserializeDocumentResourceShareInvitationAlreadyRejectedExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8800,6 +8959,9 @@ func awsRestjson1_deserializeDocumentResourceShareInvitationAlreadyRejectedExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8824,7 +8986,13 @@ func awsRestjson1_deserializeDocumentResourceShareInvitationArnNotFoundException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8840,6 +9008,9 @@ func awsRestjson1_deserializeDocumentResourceShareInvitationArnNotFoundException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8864,7 +9035,13 @@ func awsRestjson1_deserializeDocumentResourceShareInvitationExpiredException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8880,6 +9057,9 @@ func awsRestjson1_deserializeDocumentResourceShareInvitationExpiredException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8938,7 +9118,13 @@ func awsRestjson1_deserializeDocumentResourceShareLimitExceededException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8954,6 +9140,9 @@ func awsRestjson1_deserializeDocumentResourceShareLimitExceededException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9353,7 +9542,13 @@ func awsRestjson1_deserializeDocumentServerInternalException(v **types.ServerInt sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9369,6 +9564,9 @@ func awsRestjson1_deserializeDocumentServerInternalException(v **types.ServerInt } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9485,7 +9683,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9501,6 +9705,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9574,7 +9781,13 @@ func awsRestjson1_deserializeDocumentTagLimitExceededException(v **types.TagLimi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9590,6 +9803,9 @@ func awsRestjson1_deserializeDocumentTagLimitExceededException(v **types.TagLimi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9648,7 +9864,13 @@ func awsRestjson1_deserializeDocumentTagPolicyViolationException(v **types.TagPo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9664,6 +9886,9 @@ func awsRestjson1_deserializeDocumentTagPolicyViolationException(v **types.TagPo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9688,7 +9913,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9704,6 +9935,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9728,7 +9962,13 @@ func awsRestjson1_deserializeDocumentUnknownResourceException(v **types.UnknownR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9744,6 +9984,9 @@ func awsRestjson1_deserializeDocumentUnknownResourceException(v **types.UnknownR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9768,7 +10011,13 @@ func awsRestjson1_deserializeDocumentUnmatchedPolicyPermissionException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9784,6 +10033,9 @@ func awsRestjson1_deserializeDocumentUnmatchedPolicyPermissionException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/rbin/deserializers.go b/service/rbin/deserializers.go index 93646abdb24..194d60cb461 100644 --- a/service/rbin/deserializers.go +++ b/service/rbin/deserializers.go @@ -2009,7 +2009,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2034,6 +2040,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2058,7 +2067,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2074,6 +2089,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2134,7 +2152,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2159,6 +2183,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2425,7 +2452,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2450,6 +2483,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2610,7 +2646,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2635,6 +2677,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/rdsdata/deserializers.go b/service/rdsdata/deserializers.go index 8e23dfa6624..8069544d57d 100644 --- a/service/rdsdata/deserializers.go +++ b/service/rdsdata/deserializers.go @@ -1655,7 +1655,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1671,6 +1677,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1829,7 +1838,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1845,6 +1860,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2082,7 +2100,13 @@ func awsRestjson1_deserializeDocumentDatabaseErrorException(v **types.DatabaseEr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2098,6 +2122,9 @@ func awsRestjson1_deserializeDocumentDatabaseErrorException(v **types.DatabaseEr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2122,7 +2149,13 @@ func awsRestjson1_deserializeDocumentDatabaseNotFoundException(v **types.Databas sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2138,6 +2171,9 @@ func awsRestjson1_deserializeDocumentDatabaseNotFoundException(v **types.Databas } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2162,13 +2198,22 @@ func awsRestjson1_deserializeDocumentDatabaseUnavailableException(v **types.Data sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2429,7 +2474,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2445,6 +2496,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2469,7 +2523,13 @@ func awsRestjson1_deserializeDocumentHttpEndpointNotEnabledException(v **types.H sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2485,6 +2545,9 @@ func awsRestjson1_deserializeDocumentHttpEndpointNotEnabledException(v **types.H } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2509,13 +2572,22 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2540,7 +2612,13 @@ func awsRestjson1_deserializeDocumentInvalidSecretException(v **types.InvalidSec sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2556,6 +2634,9 @@ func awsRestjson1_deserializeDocumentInvalidSecretException(v **types.InvalidSec } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2654,7 +2735,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2670,6 +2757,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2886,7 +2976,13 @@ func awsRestjson1_deserializeDocumentSecretsErrorException(v **types.SecretsErro sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2902,6 +2998,9 @@ func awsRestjson1_deserializeDocumentSecretsErrorException(v **types.SecretsErro } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2926,13 +3025,22 @@ func awsRestjson1_deserializeDocumentServiceUnavailableError(v **types.ServiceUn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3072,7 +3180,13 @@ func awsRestjson1_deserializeDocumentStatementTimeoutException(v **types.Stateme sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "dbConnectionId": if value != nil { @@ -3101,6 +3215,9 @@ func awsRestjson1_deserializeDocumentStatementTimeoutException(v **types.Stateme } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3197,7 +3314,13 @@ func awsRestjson1_deserializeDocumentTransactionNotFoundException(v **types.Tran sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3213,6 +3336,9 @@ func awsRestjson1_deserializeDocumentTransactionNotFoundException(v **types.Tran } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3237,7 +3363,13 @@ func awsRestjson1_deserializeDocumentUnsupportedResultException(v **types.Unsupp sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3253,6 +3385,9 @@ func awsRestjson1_deserializeDocumentUnsupportedResultException(v **types.Unsupp } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/redshiftdata/deserializers.go b/service/redshiftdata/deserializers.go index f7f4f0543db..dba401016fc 100644 --- a/service/redshiftdata/deserializers.go +++ b/service/redshiftdata/deserializers.go @@ -1677,7 +1677,13 @@ func awsAwsjson11_deserializeDocumentActiveSessionsExceededException(v **types.A sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1693,6 +1699,9 @@ func awsAwsjson11_deserializeDocumentActiveSessionsExceededException(v **types.A } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1717,7 +1726,13 @@ func awsAwsjson11_deserializeDocumentActiveStatementsExceededException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1733,6 +1748,9 @@ func awsAwsjson11_deserializeDocumentActiveStatementsExceededException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1757,7 +1775,13 @@ func awsAwsjson11_deserializeDocumentBatchExecuteStatementException(v **types.Ba sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1782,6 +1806,9 @@ func awsAwsjson11_deserializeDocumentBatchExecuteStatementException(v **types.Ba } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2038,7 +2065,13 @@ func awsAwsjson11_deserializeDocumentDatabaseConnectionException(v **types.Datab sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2054,6 +2087,9 @@ func awsAwsjson11_deserializeDocumentDatabaseConnectionException(v **types.Datab } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2150,7 +2186,13 @@ func awsAwsjson11_deserializeDocumentExecuteStatementException(v **types.Execute sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2175,6 +2217,9 @@ func awsAwsjson11_deserializeDocumentExecuteStatementException(v **types.Execute } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2398,7 +2443,13 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2414,6 +2465,9 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2480,7 +2534,13 @@ func awsAwsjson11_deserializeDocumentQueryTimeoutException(v **types.QueryTimeou sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2496,6 +2556,9 @@ func awsAwsjson11_deserializeDocumentQueryTimeoutException(v **types.QueryTimeou } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2520,7 +2583,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2545,6 +2614,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3221,7 +3293,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3237,6 +3315,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/redshiftserverless/deserializers.go b/service/redshiftserverless/deserializers.go index d93ca19a254..81a283d9cf5 100644 --- a/service/redshiftserverless/deserializers.go +++ b/service/redshiftserverless/deserializers.go @@ -7074,7 +7074,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -7099,6 +7105,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7347,7 +7356,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7363,6 +7378,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7699,7 +7717,13 @@ func awsAwsjson11_deserializeDocumentInsufficientCapacityException(v **types.Ins sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7715,6 +7739,9 @@ func awsAwsjson11_deserializeDocumentInsufficientCapacityException(v **types.Ins } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7739,7 +7766,13 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7755,6 +7788,9 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7779,7 +7815,13 @@ func awsAwsjson11_deserializeDocumentInvalidPaginationException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7795,6 +7837,9 @@ func awsAwsjson11_deserializeDocumentInvalidPaginationException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7819,7 +7864,13 @@ func awsAwsjson11_deserializeDocumentIpv6CidrBlockNotFoundException(v **types.Ip sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7835,6 +7886,9 @@ func awsAwsjson11_deserializeDocumentIpv6CidrBlockNotFoundException(v **types.Ip } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8427,7 +8481,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8452,6 +8512,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8837,7 +8900,13 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8853,6 +8922,9 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9762,7 +9834,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -9787,6 +9865,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9811,7 +9892,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9836,6 +9923,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9992,7 +10082,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10008,6 +10104,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/rekognition/deserializers.go b/service/rekognition/deserializers.go index 058d938fa41..b9dbf7d92aa 100644 --- a/service/rekognition/deserializers.go +++ b/service/rekognition/deserializers.go @@ -10678,7 +10678,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -10712,6 +10718,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12104,7 +12113,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -12138,6 +12153,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15498,7 +15516,13 @@ func awsAwsjson11_deserializeDocumentHumanLoopQuotaExceededException(v **types.H sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -15559,6 +15583,9 @@ func awsAwsjson11_deserializeDocumentHumanLoopQuotaExceededException(v **types.H } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15583,7 +15610,13 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatchException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -15617,6 +15650,9 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatchException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15740,7 +15776,13 @@ func awsAwsjson11_deserializeDocumentImageTooLargeException(v **types.ImageTooLa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -15774,6 +15816,9 @@ func awsAwsjson11_deserializeDocumentImageTooLargeException(v **types.ImageTooLa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15907,7 +15952,13 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -15941,6 +15992,9 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15965,7 +16019,13 @@ func awsAwsjson11_deserializeDocumentInvalidImageFormatException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -15999,6 +16059,9 @@ func awsAwsjson11_deserializeDocumentInvalidImageFormatException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16023,7 +16086,13 @@ func awsAwsjson11_deserializeDocumentInvalidManifestException(v **types.InvalidM sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -16057,6 +16126,9 @@ func awsAwsjson11_deserializeDocumentInvalidManifestException(v **types.InvalidM } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16081,7 +16153,13 @@ func awsAwsjson11_deserializeDocumentInvalidPaginationTokenException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -16115,6 +16193,9 @@ func awsAwsjson11_deserializeDocumentInvalidPaginationTokenException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16139,7 +16220,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -16173,6 +16260,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16197,7 +16287,13 @@ func awsAwsjson11_deserializeDocumentInvalidPolicyRevisionIdException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -16231,6 +16327,9 @@ func awsAwsjson11_deserializeDocumentInvalidPolicyRevisionIdException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16255,7 +16354,13 @@ func awsAwsjson11_deserializeDocumentInvalidS3ObjectException(v **types.InvalidS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -16289,6 +16394,9 @@ func awsAwsjson11_deserializeDocumentInvalidS3ObjectException(v **types.InvalidS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16973,7 +17081,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -17007,6 +17121,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17031,7 +17148,13 @@ func awsAwsjson11_deserializeDocumentMalformedPolicyDocumentException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -17065,6 +17188,9 @@ func awsAwsjson11_deserializeDocumentMalformedPolicyDocumentException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19334,7 +19460,13 @@ func awsAwsjson11_deserializeDocumentProvisionedThroughputExceededException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -19368,6 +19500,9 @@ func awsAwsjson11_deserializeDocumentProvisionedThroughputExceededException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19503,7 +19638,13 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -19537,6 +19678,9 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19561,7 +19705,13 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -19595,6 +19745,9 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19619,7 +19772,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -19653,6 +19812,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19677,7 +19839,13 @@ func awsAwsjson11_deserializeDocumentResourceNotReadyException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -19711,6 +19879,9 @@ func awsAwsjson11_deserializeDocumentResourceNotReadyException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20230,7 +20401,13 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -20264,6 +20441,9 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -20288,7 +20468,13 @@ func awsAwsjson11_deserializeDocumentSessionNotFoundException(v **types.SessionN sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -20322,6 +20508,9 @@ func awsAwsjson11_deserializeDocumentSessionNotFoundException(v **types.SessionN } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21321,7 +21510,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -21355,6 +21550,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22513,7 +22711,13 @@ func awsAwsjson11_deserializeDocumentVideoTooLargeException(v **types.VideoTooLa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -22547,6 +22751,9 @@ func awsAwsjson11_deserializeDocumentVideoTooLargeException(v **types.VideoTooLa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/repostspace/deserializers.go b/service/repostspace/deserializers.go index 4251b44640b..f0d99419cae 100644 --- a/service/repostspace/deserializers.go +++ b/service/repostspace/deserializers.go @@ -2278,7 +2278,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2294,6 +2300,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2450,7 +2459,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2484,6 +2499,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2544,7 +2562,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2573,6 +2597,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2597,7 +2624,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2631,6 +2664,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2725,7 +2761,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2777,6 +2819,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3066,7 +3111,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3113,6 +3164,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3173,7 +3227,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -3203,6 +3263,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/resiliencehub/deserializers.go b/service/resiliencehub/deserializers.go index 92e9b7973df..7011e34c841 100644 --- a/service/resiliencehub/deserializers.go +++ b/service/resiliencehub/deserializers.go @@ -10889,7 +10889,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10905,6 +10911,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13310,7 +13319,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13344,6 +13359,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14512,7 +14530,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14528,6 +14552,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16019,7 +16046,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16053,6 +16086,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16286,7 +16322,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16302,6 +16344,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16815,7 +16860,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16844,6 +16895,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17019,7 +17073,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17035,6 +17095,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/resourceexplorer2/deserializers.go b/service/resourceexplorer2/deserializers.go index 3681010d2b2..63192b4ee31 100644 --- a/service/resourceexplorer2/deserializers.go +++ b/service/resourceexplorer2/deserializers.go @@ -4032,7 +4032,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4048,6 +4054,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4155,7 +4164,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4171,6 +4186,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4361,7 +4379,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4377,6 +4401,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4768,7 +4795,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4784,6 +4817,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4974,7 +5010,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5008,6 +5050,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5117,7 +5162,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5133,6 +5184,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5157,7 +5211,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5173,6 +5233,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5197,7 +5260,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "FieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -5218,6 +5287,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/resourcegroups/deserializers.go b/service/resourcegroups/deserializers.go index 72cd54d4050..54564e8f945 100644 --- a/service/resourcegroups/deserializers.go +++ b/service/resourcegroups/deserializers.go @@ -4377,7 +4377,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4393,6 +4399,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4509,7 +4518,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4525,6 +4540,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5224,7 +5242,13 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5240,6 +5264,9 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5339,7 +5366,13 @@ func awsRestjson1_deserializeDocumentMethodNotAllowedException(v **types.MethodN sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5355,6 +5388,9 @@ func awsRestjson1_deserializeDocumentMethodNotAllowedException(v **types.MethodN } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5379,7 +5415,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5395,6 +5437,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6009,7 +6054,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6025,6 +6076,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6049,7 +6103,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6065,6 +6125,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/resourcegroupstaggingapi/deserializers.go b/service/resourcegroupstaggingapi/deserializers.go index aa00c8c3c21..a8db76ec0d5 100644 --- a/service/resourcegroupstaggingapi/deserializers.go +++ b/service/resourcegroupstaggingapi/deserializers.go @@ -1266,7 +1266,13 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1282,6 +1288,9 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1306,7 +1315,13 @@ func awsAwsjson11_deserializeDocumentConstraintViolationException(v **types.Cons sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1322,6 +1337,9 @@ func awsAwsjson11_deserializeDocumentConstraintViolationException(v **types.Cons } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1443,7 +1461,13 @@ func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1459,6 +1483,9 @@ func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1483,7 +1510,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1499,6 +1532,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1523,7 +1559,13 @@ func awsAwsjson11_deserializeDocumentPaginationTokenExpiredException(v **types.P sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1539,6 +1581,9 @@ func awsAwsjson11_deserializeDocumentPaginationTokenExpiredException(v **types.P } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1925,7 +1970,13 @@ func awsAwsjson11_deserializeDocumentThrottledException(v **types.ThrottledExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1941,6 +1992,9 @@ func awsAwsjson11_deserializeDocumentThrottledException(v **types.ThrottledExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/robomaker/deserializers.go b/service/robomaker/deserializers.go index 44ffb021873..51411b45cdc 100644 --- a/service/robomaker/deserializers.go +++ b/service/robomaker/deserializers.go @@ -11199,7 +11199,13 @@ func awsRestjson1_deserializeDocumentConcurrentDeploymentException(v **types.Con sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11215,6 +11221,9 @@ func awsRestjson1_deserializeDocumentConcurrentDeploymentException(v **types.Con } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12308,7 +12317,13 @@ func awsRestjson1_deserializeDocumentIdempotentParameterMismatchException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12324,6 +12339,9 @@ func awsRestjson1_deserializeDocumentIdempotentParameterMismatchException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12348,7 +12366,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12364,6 +12388,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12388,7 +12415,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12404,6 +12437,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12501,7 +12537,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12517,6 +12559,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12969,7 +13014,13 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12985,6 +13036,9 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13009,7 +13063,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13025,6 +13085,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13874,7 +13937,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13890,6 +13959,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15172,7 +15244,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15188,6 +15266,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/rolesanywhere/deserializers.go b/service/rolesanywhere/deserializers.go index a596b58ef38..4d8a2f626be 100644 --- a/service/rolesanywhere/deserializers.go +++ b/service/rolesanywhere/deserializers.go @@ -4785,7 +4785,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4801,6 +4807,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5719,7 +5728,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5735,6 +5750,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6233,7 +6251,13 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6249,6 +6273,9 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6410,7 +6437,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6426,6 +6459,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/route53domains/deserializers.go b/service/route53domains/deserializers.go index 2f498d9329c..08a8b6ccb0f 100644 --- a/service/route53domains/deserializers.go +++ b/service/route53domains/deserializers.go @@ -4696,7 +4696,13 @@ func awsAwsjson11_deserializeDocumentDnssecLimitExceeded(v **types.DnssecLimitEx sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4712,6 +4718,9 @@ func awsAwsjson11_deserializeDocumentDnssecLimitExceeded(v **types.DnssecLimitEx } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4736,7 +4745,13 @@ func awsAwsjson11_deserializeDocumentDomainLimitExceeded(v **types.DomainLimitEx sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4752,6 +4767,9 @@ func awsAwsjson11_deserializeDocumentDomainLimitExceeded(v **types.DomainLimitEx } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5142,7 +5160,13 @@ func awsAwsjson11_deserializeDocumentDuplicateRequest(v **types.DuplicateRequest sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5167,6 +5191,9 @@ func awsAwsjson11_deserializeDocumentDuplicateRequest(v **types.DuplicateRequest } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5310,7 +5337,13 @@ func awsAwsjson11_deserializeDocumentInvalidInput(v **types.InvalidInput, value sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5326,6 +5359,9 @@ func awsAwsjson11_deserializeDocumentInvalidInput(v **types.InvalidInput, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5429,7 +5465,13 @@ func awsAwsjson11_deserializeDocumentOperationLimitExceeded(v **types.OperationL sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5445,6 +5487,9 @@ func awsAwsjson11_deserializeDocumentOperationLimitExceeded(v **types.OperationL } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5777,7 +5822,13 @@ func awsAwsjson11_deserializeDocumentTLDRulesViolation(v **types.TLDRulesViolati sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5793,6 +5844,9 @@ func awsAwsjson11_deserializeDocumentTLDRulesViolation(v **types.TLDRulesViolati } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5817,7 +5871,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedTLD(v **types.UnsupportedTLD, va sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5833,6 +5893,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedTLD(v **types.UnsupportedTLD, va } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/route53profiles/deserializers.go b/service/route53profiles/deserializers.go index 2d75a58ca92..22618083bc4 100644 --- a/service/route53profiles/deserializers.go +++ b/service/route53profiles/deserializers.go @@ -2968,7 +2968,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2984,6 +2990,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3008,7 +3017,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3024,6 +3039,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3048,7 +3066,13 @@ func awsRestjson1_deserializeDocumentInternalServiceErrorException(v **types.Int sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3064,6 +3088,9 @@ func awsRestjson1_deserializeDocumentInternalServiceErrorException(v **types.Int } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3088,7 +3115,13 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3104,6 +3137,9 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3128,7 +3164,13 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "FieldName": if value != nil { @@ -3153,6 +3195,9 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3177,7 +3222,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3202,6 +3253,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3800,7 +3854,13 @@ func awsRestjson1_deserializeDocumentResourceExistsException(v **types.ResourceE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3825,6 +3885,9 @@ func awsRestjson1_deserializeDocumentResourceExistsException(v **types.ResourceE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3849,7 +3912,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3874,6 +3943,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3934,7 +4006,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3950,6 +4028,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3974,7 +4055,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3990,6 +4077,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/route53recoverycluster/deserializers.go b/service/route53recoverycluster/deserializers.go index ef0ed59bc50..47c3a4ddfce 100644 --- a/service/route53recoverycluster/deserializers.go +++ b/service/route53recoverycluster/deserializers.go @@ -842,7 +842,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -858,6 +864,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -882,7 +891,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -916,6 +931,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -940,7 +958,13 @@ func awsAwsjson10_deserializeDocumentEndpointTemporarilyUnavailableException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -956,6 +980,9 @@ func awsAwsjson10_deserializeDocumentEndpointTemporarilyUnavailableException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -980,7 +1007,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1009,6 +1042,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1033,7 +1069,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1067,6 +1109,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1210,7 +1255,13 @@ func awsAwsjson10_deserializeDocumentServiceLimitExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "limitCode": if value != nil { @@ -1262,6 +1313,9 @@ func awsAwsjson10_deserializeDocumentServiceLimitExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1286,7 +1340,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1315,6 +1375,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1339,7 +1402,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fields": if err := awsAwsjson10_deserializeDocumentValidationExceptionFieldList(&sv.Fields, value); err != nil { @@ -1369,6 +1438,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/route53recoverycontrolconfig/deserializers.go b/service/route53recoverycontrolconfig/deserializers.go index a3da806a045..5c40854f8d9 100644 --- a/service/route53recoverycontrolconfig/deserializers.go +++ b/service/route53recoverycontrolconfig/deserializers.go @@ -4174,7 +4174,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4190,6 +4196,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4434,7 +4443,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4450,6 +4465,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4676,7 +4694,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4692,6 +4716,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4716,7 +4743,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4732,6 +4765,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4935,7 +4971,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4951,6 +4993,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4975,7 +5020,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4991,6 +5042,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5015,7 +5069,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5031,6 +5091,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/route53recoveryreadiness/deserializers.go b/service/route53recoveryreadiness/deserializers.go index f8a6be12011..30b61b359d6 100644 --- a/service/route53recoveryreadiness/deserializers.go +++ b/service/route53recoveryreadiness/deserializers.go @@ -5990,7 +5990,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6006,6 +6012,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6094,7 +6103,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6110,6 +6125,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6206,7 +6224,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6222,6 +6246,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6703,7 +6730,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6719,6 +6752,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7026,7 +7062,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7042,6 +7084,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7066,7 +7111,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7082,6 +7133,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/route53resolver/deserializers.go b/service/route53resolver/deserializers.go index 718abd710a3..c86e8987e12 100644 --- a/service/route53resolver/deserializers.go +++ b/service/route53resolver/deserializers.go @@ -9143,7 +9143,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9159,6 +9165,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9183,7 +9192,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9199,6 +9214,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10233,7 +10251,13 @@ func awsAwsjson11_deserializeDocumentInternalServiceErrorException(v **types.Int sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10249,6 +10273,9 @@ func awsAwsjson11_deserializeDocumentInternalServiceErrorException(v **types.Int } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10273,7 +10300,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10289,6 +10322,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10313,7 +10349,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "FieldName": if value != nil { @@ -10338,6 +10380,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10362,7 +10407,13 @@ func awsAwsjson11_deserializeDocumentInvalidPolicyDocument(v **types.InvalidPoli sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10378,6 +10429,9 @@ func awsAwsjson11_deserializeDocumentInvalidPolicyDocument(v **types.InvalidPoli } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10402,7 +10456,13 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10418,6 +10478,9 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10442,7 +10505,13 @@ func awsAwsjson11_deserializeDocumentInvalidTagException(v **types.InvalidTagExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10458,6 +10527,9 @@ func awsAwsjson11_deserializeDocumentInvalidTagException(v **types.InvalidTagExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10619,7 +10691,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10644,6 +10722,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11872,7 +11953,13 @@ func awsAwsjson11_deserializeDocumentResourceExistsException(v **types.ResourceE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11897,6 +11984,9 @@ func awsAwsjson11_deserializeDocumentResourceExistsException(v **types.ResourceE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11921,7 +12011,13 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11946,6 +12042,9 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11970,7 +12069,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11995,6 +12100,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12019,7 +12127,13 @@ func awsAwsjson11_deserializeDocumentResourceUnavailableException(v **types.Reso sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12044,6 +12158,9 @@ func awsAwsjson11_deserializeDocumentResourceUnavailableException(v **types.Reso } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12104,7 +12221,13 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12120,6 +12243,9 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12341,7 +12467,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12357,6 +12489,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12381,7 +12516,13 @@ func awsAwsjson11_deserializeDocumentUnknownResourceException(v **types.UnknownR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12397,6 +12538,9 @@ func awsAwsjson11_deserializeDocumentUnknownResourceException(v **types.UnknownR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12421,7 +12565,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12437,6 +12587,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/rum/deserializers.go b/service/rum/deserializers.go index 4c8754b668d..bb98aac0415 100644 --- a/service/rum/deserializers.go +++ b/service/rum/deserializers.go @@ -2684,7 +2684,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2700,6 +2706,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3240,7 +3249,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3274,6 +3289,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3531,7 +3549,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3560,6 +3584,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3953,7 +3980,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3987,6 +4020,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4011,7 +4047,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4027,6 +4069,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4123,7 +4168,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4170,6 +4221,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4194,7 +4248,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4210,6 +4270,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/s3outposts/deserializers.go b/service/s3outposts/deserializers.go index 8f3db9990c7..a93dfa48489 100644 --- a/service/s3outposts/deserializers.go +++ b/service/s3outposts/deserializers.go @@ -1101,7 +1101,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1117,6 +1123,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1141,7 +1150,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1157,6 +1172,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1402,7 +1420,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1418,6 +1442,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1596,7 +1623,13 @@ func awsRestjson1_deserializeDocumentOutpostOfflineException(v **types.OutpostOf sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1612,6 +1645,9 @@ func awsRestjson1_deserializeDocumentOutpostOfflineException(v **types.OutpostOf } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1670,7 +1706,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1686,6 +1728,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1710,7 +1755,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1726,6 +1777,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1750,7 +1804,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1766,6 +1826,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/sagemaker/deserializers.go b/service/sagemaker/deserializers.go index f2081b28a8a..f21ef0801d8 100644 --- a/service/sagemaker/deserializers.go +++ b/service/sagemaker/deserializers.go @@ -44433,7 +44433,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -44449,6 +44455,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -74665,7 +74674,13 @@ func awsAwsjson11_deserializeDocumentResourceInUse(v **types.ResourceInUse, valu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -74681,6 +74696,9 @@ func awsAwsjson11_deserializeDocumentResourceInUse(v **types.ResourceInUse, valu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -74705,7 +74723,13 @@ func awsAwsjson11_deserializeDocumentResourceLimitExceeded(v **types.ResourceLim sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -74721,6 +74745,9 @@ func awsAwsjson11_deserializeDocumentResourceLimitExceeded(v **types.ResourceLim } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -74815,7 +74842,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFound(v **types.ResourceNotFound sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -74831,6 +74864,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFound(v **types.ResourceNotFound } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/sagemakera2iruntime/deserializers.go b/service/sagemakera2iruntime/deserializers.go index 0a294eb22a5..fb2a02e6f2e 100644 --- a/service/sagemakera2iruntime/deserializers.go +++ b/service/sagemakera2iruntime/deserializers.go @@ -1025,7 +1025,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1041,6 +1047,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1219,7 +1228,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1235,6 +1250,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1259,7 +1277,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1275,6 +1299,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1299,7 +1326,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1315,6 +1348,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1339,7 +1375,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1355,6 +1397,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1379,7 +1424,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1395,6 +1446,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/sagemakeredge/deserializers.go b/service/sagemakeredge/deserializers.go index e680adcbd47..b8ebffaa023 100644 --- a/service/sagemakeredge/deserializers.go +++ b/service/sagemakeredge/deserializers.go @@ -740,7 +740,13 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -756,6 +762,9 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/sagemakerfeaturestoreruntime/deserializers.go b/service/sagemakerfeaturestoreruntime/deserializers.go index f81457d2d71..ecde566cff7 100644 --- a/service/sagemakerfeaturestoreruntime/deserializers.go +++ b/service/sagemakerfeaturestoreruntime/deserializers.go @@ -780,7 +780,13 @@ func awsRestjson1_deserializeDocumentAccessForbidden(v **types.AccessForbidden, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -796,6 +802,9 @@ func awsRestjson1_deserializeDocumentAccessForbidden(v **types.AccessForbidden, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1158,7 +1167,13 @@ func awsRestjson1_deserializeDocumentInternalFailure(v **types.InternalFailure, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1174,6 +1189,9 @@ func awsRestjson1_deserializeDocumentInternalFailure(v **types.InternalFailure, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1268,7 +1286,13 @@ func awsRestjson1_deserializeDocumentResourceNotFound(v **types.ResourceNotFound sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1284,6 +1308,9 @@ func awsRestjson1_deserializeDocumentResourceNotFound(v **types.ResourceNotFound } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1308,7 +1335,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailable(v **types.ServiceUnavail sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1324,6 +1357,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailable(v **types.ServiceUnavail } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1382,7 +1418,13 @@ func awsRestjson1_deserializeDocumentValidationError(v **types.ValidationError, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1398,6 +1440,9 @@ func awsRestjson1_deserializeDocumentValidationError(v **types.ValidationError, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/sagemakergeospatial/deserializers.go b/service/sagemakergeospatial/deserializers.go index a572eb4c41f..83d1be2b1bb 100644 --- a/service/sagemakergeospatial/deserializers.go +++ b/service/sagemakergeospatial/deserializers.go @@ -3598,7 +3598,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3614,6 +3620,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3927,7 +3936,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3952,6 +3967,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4759,7 +4777,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4784,6 +4808,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6577,7 +6604,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6602,6 +6635,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6675,7 +6711,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6700,6 +6742,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6923,7 +6968,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6948,6 +6999,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7103,7 +7157,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7128,6 +7188,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/sagemakerruntime/deserializers.go b/service/sagemakerruntime/deserializers.go index 1549b2391db..50a4dc758e8 100644 --- a/service/sagemakerruntime/deserializers.go +++ b/service/sagemakerruntime/deserializers.go @@ -690,7 +690,13 @@ func awsRestjson1_deserializeDocumentInternalStreamFailure(v **types.InternalStr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -706,6 +712,9 @@ func awsRestjson1_deserializeDocumentInternalStreamFailure(v **types.InternalStr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -730,7 +739,13 @@ func awsRestjson1_deserializeDocumentModelStreamError(v **types.ModelStreamError sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ErrorCode": if value != nil { @@ -755,6 +770,9 @@ func awsRestjson1_deserializeDocumentModelStreamError(v **types.ModelStreamError } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1067,7 +1085,13 @@ func awsRestjson1_deserializeDocumentInternalDependencyException(v **types.Inter sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1083,6 +1107,9 @@ func awsRestjson1_deserializeDocumentInternalDependencyException(v **types.Inter } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1107,7 +1134,13 @@ func awsRestjson1_deserializeDocumentInternalFailure(v **types.InternalFailure, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1123,6 +1156,9 @@ func awsRestjson1_deserializeDocumentInternalFailure(v **types.InternalFailure, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1147,7 +1183,13 @@ func awsRestjson1_deserializeDocumentModelError(v **types.ModelError, value inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "LogStreamArn": if value != nil { @@ -1194,6 +1236,9 @@ func awsRestjson1_deserializeDocumentModelError(v **types.ModelError, value inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1218,7 +1263,13 @@ func awsRestjson1_deserializeDocumentModelNotReadyException(v **types.ModelNotRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1234,6 +1285,9 @@ func awsRestjson1_deserializeDocumentModelNotReadyException(v **types.ModelNotRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1258,7 +1312,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailable(v **types.ServiceUnavail sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1274,6 +1334,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailable(v **types.ServiceUnavail } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1298,7 +1361,13 @@ func awsRestjson1_deserializeDocumentValidationError(v **types.ValidationError, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1314,6 +1383,9 @@ func awsRestjson1_deserializeDocumentValidationError(v **types.ValidationError, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/savingsplans/deserializers.go b/service/savingsplans/deserializers.go index f534f25d242..20500451629 100644 --- a/service/savingsplans/deserializers.go +++ b/service/savingsplans/deserializers.go @@ -1634,7 +1634,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1650,6 +1656,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1763,7 +1772,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1779,6 +1794,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2742,7 +2760,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2758,6 +2782,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2818,7 +2845,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2834,6 +2867,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/scheduler/deserializers.go b/service/scheduler/deserializers.go index dc4805007aa..711bb1af752 100644 --- a/service/scheduler/deserializers.go +++ b/service/scheduler/deserializers.go @@ -2346,7 +2346,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2362,6 +2368,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2669,7 +2678,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2685,6 +2700,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2951,7 +2969,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2967,6 +2991,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3465,7 +3492,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3481,6 +3514,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3865,7 +3901,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3881,6 +3923,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3905,7 +3950,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3921,6 +3972,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/schemas/deserializers.go b/service/schemas/deserializers.go index b52378c64ef..6be0a671977 100644 --- a/service/schemas/deserializers.go +++ b/service/schemas/deserializers.go @@ -5999,7 +5999,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6024,6 +6030,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6048,7 +6057,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6073,6 +6088,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6178,7 +6196,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6203,6 +6227,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6227,7 +6254,13 @@ func awsRestjson1_deserializeDocumentGoneException(v **types.GoneException, valu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6252,6 +6285,9 @@ func awsRestjson1_deserializeDocumentGoneException(v **types.GoneException, valu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6276,7 +6312,13 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6301,6 +6343,9 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6325,7 +6370,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6350,6 +6401,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6374,7 +6428,13 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6399,6 +6459,9 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6749,7 +6812,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6774,6 +6843,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6834,7 +6906,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6859,6 +6937,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6883,7 +6964,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6908,6 +6995,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/secretsmanager/deserializers.go b/service/secretsmanager/deserializers.go index fb914b466ae..db7fb487980 100644 --- a/service/secretsmanager/deserializers.go +++ b/service/secretsmanager/deserializers.go @@ -3342,7 +3342,13 @@ func awsAwsjson11_deserializeDocumentDecryptionFailure(v **types.DecryptionFailu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3358,6 +3364,9 @@ func awsAwsjson11_deserializeDocumentDecryptionFailure(v **types.DecryptionFailu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3382,7 +3391,13 @@ func awsAwsjson11_deserializeDocumentEncryptionFailure(v **types.EncryptionFailu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3398,6 +3413,9 @@ func awsAwsjson11_deserializeDocumentEncryptionFailure(v **types.EncryptionFailu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3422,7 +3440,13 @@ func awsAwsjson11_deserializeDocumentInternalServiceError(v **types.InternalServ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3438,6 +3462,9 @@ func awsAwsjson11_deserializeDocumentInternalServiceError(v **types.InternalServ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3462,7 +3489,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3478,6 +3511,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3502,7 +3538,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3518,6 +3560,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3542,7 +3587,13 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3558,6 +3609,9 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3618,7 +3672,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3634,6 +3694,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3658,7 +3721,13 @@ func awsAwsjson11_deserializeDocumentMalformedPolicyDocumentException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3674,6 +3743,9 @@ func awsAwsjson11_deserializeDocumentMalformedPolicyDocumentException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3698,7 +3770,13 @@ func awsAwsjson11_deserializeDocumentPreconditionNotMetException(v **types.Preco sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3714,6 +3792,9 @@ func awsAwsjson11_deserializeDocumentPreconditionNotMetException(v **types.Preco } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3738,7 +3819,13 @@ func awsAwsjson11_deserializeDocumentPublicPolicyException(v **types.PublicPolic sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3754,6 +3841,9 @@ func awsAwsjson11_deserializeDocumentPublicPolicyException(v **types.PublicPolic } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3895,7 +3985,13 @@ func awsAwsjson11_deserializeDocumentResourceExistsException(v **types.ResourceE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3911,6 +4007,9 @@ func awsAwsjson11_deserializeDocumentResourceExistsException(v **types.ResourceE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3935,7 +4034,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3951,6 +4056,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/securityhub/deserializers.go b/service/securityhub/deserializers.go index f2ef7036068..3aa40432b71 100644 --- a/service/securityhub/deserializers.go +++ b/service/securityhub/deserializers.go @@ -12568,7 +12568,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -12593,6 +12599,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -58731,7 +58740,13 @@ func awsRestjson1_deserializeDocumentInternalException(v **types.InternalExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -58756,6 +58771,9 @@ func awsRestjson1_deserializeDocumentInternalException(v **types.InternalExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -58780,7 +58798,13 @@ func awsRestjson1_deserializeDocumentInvalidAccessException(v **types.InvalidAcc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -58805,6 +58829,9 @@ func awsRestjson1_deserializeDocumentInvalidAccessException(v **types.InvalidAcc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -58829,7 +58856,13 @@ func awsRestjson1_deserializeDocumentInvalidInputException(v **types.InvalidInpu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -58854,6 +58887,9 @@ func awsRestjson1_deserializeDocumentInvalidInputException(v **types.InvalidInpu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -59294,7 +59330,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -59319,6 +59361,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -62316,7 +62361,13 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -62341,6 +62392,9 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -62891,7 +62945,13 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -62916,6 +62976,9 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -62974,7 +63037,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -62999,6 +63068,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/securitylake/deserializers.go b/service/securitylake/deserializers.go index 0cadd9dd5f3..5d152226812 100644 --- a/service/securitylake/deserializers.go +++ b/service/securitylake/deserializers.go @@ -4710,7 +4710,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorCode": if value != nil { @@ -4735,6 +4741,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4963,7 +4972,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4979,6 +4994,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5003,7 +5021,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5037,6 +5061,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6068,7 +6095,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6084,6 +6117,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6350,7 +6386,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6384,6 +6426,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6687,7 +6732,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6734,6 +6785,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/serverlessapplicationrepository/deserializers.go b/service/serverlessapplicationrepository/deserializers.go index b8f9bdaf735..751cb4ceb04 100644 --- a/service/serverlessapplicationrepository/deserializers.go +++ b/service/serverlessapplicationrepository/deserializers.go @@ -3445,7 +3445,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorCode": if value != nil { @@ -3470,6 +3476,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3494,7 +3503,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorCode": if value != nil { @@ -3519,6 +3534,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3543,7 +3561,13 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorCode": if value != nil { @@ -3568,6 +3592,9 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3592,7 +3619,13 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorCode": if value != nil { @@ -3617,6 +3650,9 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3641,7 +3677,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorCode": if value != nil { @@ -3666,6 +3708,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3846,7 +3891,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorCode": if value != nil { @@ -3871,6 +3922,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/servicecatalog/deserializers.go b/service/servicecatalog/deserializers.go index 02b4ef94365..023c67c2b53 100644 --- a/service/servicecatalog/deserializers.go +++ b/service/servicecatalog/deserializers.go @@ -11171,7 +11171,13 @@ func awsAwsjson11_deserializeDocumentDuplicateResourceException(v **types.Duplic sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11187,6 +11193,9 @@ func awsAwsjson11_deserializeDocumentDuplicateResourceException(v **types.Duplic } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11445,7 +11454,13 @@ func awsAwsjson11_deserializeDocumentInvalidParametersException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11461,6 +11476,9 @@ func awsAwsjson11_deserializeDocumentInvalidParametersException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11485,7 +11503,13 @@ func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11501,6 +11525,9 @@ func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11791,7 +11818,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11807,6 +11840,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11903,7 +11939,13 @@ func awsAwsjson11_deserializeDocumentOperationNotSupportedException(v **types.Op sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11919,6 +11961,9 @@ func awsAwsjson11_deserializeDocumentOperationNotSupportedException(v **types.Op } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15093,7 +15138,13 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15109,6 +15160,9 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15133,7 +15187,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15149,6 +15209,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16019,7 +16082,13 @@ func awsAwsjson11_deserializeDocumentTagOptionNotMigratedException(v **types.Tag sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16035,6 +16104,9 @@ func awsAwsjson11_deserializeDocumentTagOptionNotMigratedException(v **types.Tag } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/servicecatalogappregistry/deserializers.go b/service/servicecatalogappregistry/deserializers.go index 920ce2bdc05..c85262aa298 100644 --- a/service/servicecatalogappregistry/deserializers.go +++ b/service/servicecatalogappregistry/deserializers.go @@ -4943,7 +4943,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4959,6 +4965,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5024,7 +5033,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5040,6 +5055,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5369,7 +5387,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5385,6 +5409,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5544,7 +5571,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5560,6 +5593,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5660,7 +5696,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5685,6 +5727,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5709,7 +5754,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5725,6 +5776,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/servicediscovery/deserializers.go b/service/servicediscovery/deserializers.go index 854172a1835..1e7b1608503 100644 --- a/service/servicediscovery/deserializers.go +++ b/service/servicediscovery/deserializers.go @@ -3734,7 +3734,13 @@ func awsAwsjson11_deserializeDocumentCustomHealthNotFound(v **types.CustomHealth sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3750,6 +3756,9 @@ func awsAwsjson11_deserializeDocumentCustomHealthNotFound(v **types.CustomHealth } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3960,7 +3969,13 @@ func awsAwsjson11_deserializeDocumentDuplicateRequest(v **types.DuplicateRequest sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "DuplicateOperationId": if value != nil { @@ -3985,6 +4000,9 @@ func awsAwsjson11_deserializeDocumentDuplicateRequest(v **types.DuplicateRequest } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4351,7 +4369,13 @@ func awsAwsjson11_deserializeDocumentInstanceNotFound(v **types.InstanceNotFound sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4367,6 +4391,9 @@ func awsAwsjson11_deserializeDocumentInstanceNotFound(v **types.InstanceNotFound } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4470,7 +4497,13 @@ func awsAwsjson11_deserializeDocumentInvalidInput(v **types.InvalidInput, value sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4486,6 +4519,9 @@ func awsAwsjson11_deserializeDocumentInvalidInput(v **types.InvalidInput, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4629,7 +4665,13 @@ func awsAwsjson11_deserializeDocumentNamespaceAlreadyExists(v **types.NamespaceA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "CreatorRequestId": if value != nil { @@ -4663,6 +4705,9 @@ func awsAwsjson11_deserializeDocumentNamespaceAlreadyExists(v **types.NamespaceA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4687,7 +4732,13 @@ func awsAwsjson11_deserializeDocumentNamespaceNotFound(v **types.NamespaceNotFou sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4703,6 +4754,9 @@ func awsAwsjson11_deserializeDocumentNamespaceNotFound(v **types.NamespaceNotFou } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5025,7 +5079,13 @@ func awsAwsjson11_deserializeDocumentOperationNotFound(v **types.OperationNotFou sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5041,6 +5101,9 @@ func awsAwsjson11_deserializeDocumentOperationNotFound(v **types.OperationNotFou } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5184,7 +5247,13 @@ func awsAwsjson11_deserializeDocumentRequestLimitExceeded(v **types.RequestLimit sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5200,6 +5269,9 @@ func awsAwsjson11_deserializeDocumentRequestLimitExceeded(v **types.RequestLimit } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5224,7 +5296,13 @@ func awsAwsjson11_deserializeDocumentResourceInUse(v **types.ResourceInUse, valu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5240,6 +5318,9 @@ func awsAwsjson11_deserializeDocumentResourceInUse(v **types.ResourceInUse, valu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5264,7 +5345,13 @@ func awsAwsjson11_deserializeDocumentResourceLimitExceeded(v **types.ResourceLim sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5280,6 +5367,9 @@ func awsAwsjson11_deserializeDocumentResourceLimitExceeded(v **types.ResourceLim } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5304,7 +5394,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5320,6 +5416,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5482,7 +5581,13 @@ func awsAwsjson11_deserializeDocumentServiceAlreadyExists(v **types.ServiceAlrea sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "CreatorRequestId": if value != nil { @@ -5516,6 +5621,9 @@ func awsAwsjson11_deserializeDocumentServiceAlreadyExists(v **types.ServiceAlrea } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5540,7 +5648,13 @@ func awsAwsjson11_deserializeDocumentServiceNotFound(v **types.ServiceNotFound, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5556,6 +5670,9 @@ func awsAwsjson11_deserializeDocumentServiceNotFound(v **types.ServiceNotFound, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5861,7 +5978,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5886,6 +6009,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/servicequotas/deserializers.go b/service/servicequotas/deserializers.go index 54b63910374..fdab6c6e4cf 100644 --- a/service/servicequotas/deserializers.go +++ b/service/servicequotas/deserializers.go @@ -3087,7 +3087,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3103,6 +3109,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3127,7 +3136,13 @@ func awsAwsjson11_deserializeDocumentAWSServiceAccessNotEnabledException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3143,6 +3158,9 @@ func awsAwsjson11_deserializeDocumentAWSServiceAccessNotEnabledException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3167,7 +3185,13 @@ func awsAwsjson11_deserializeDocumentDependencyAccessDeniedException(v **types.D sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3183,6 +3207,9 @@ func awsAwsjson11_deserializeDocumentDependencyAccessDeniedException(v **types.D } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3256,7 +3283,13 @@ func awsAwsjson11_deserializeDocumentIllegalArgumentException(v **types.IllegalA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3272,6 +3305,9 @@ func awsAwsjson11_deserializeDocumentIllegalArgumentException(v **types.IllegalA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3296,7 +3332,13 @@ func awsAwsjson11_deserializeDocumentInvalidPaginationTokenException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3312,6 +3354,9 @@ func awsAwsjson11_deserializeDocumentInvalidPaginationTokenException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3336,7 +3381,13 @@ func awsAwsjson11_deserializeDocumentInvalidResourceStateException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3352,6 +3403,9 @@ func awsAwsjson11_deserializeDocumentInvalidResourceStateException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3475,7 +3529,13 @@ func awsAwsjson11_deserializeDocumentNoAvailableOrganizationException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3491,6 +3551,9 @@ func awsAwsjson11_deserializeDocumentNoAvailableOrganizationException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3515,7 +3578,13 @@ func awsAwsjson11_deserializeDocumentNoSuchResourceException(v **types.NoSuchRes sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3531,6 +3600,9 @@ func awsAwsjson11_deserializeDocumentNoSuchResourceException(v **types.NoSuchRes } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3555,7 +3627,13 @@ func awsAwsjson11_deserializeDocumentOrganizationNotInAllFeaturesModeException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3571,6 +3649,9 @@ func awsAwsjson11_deserializeDocumentOrganizationNotInAllFeaturesModeException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3687,7 +3768,13 @@ func awsAwsjson11_deserializeDocumentQuotaExceededException(v **types.QuotaExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3703,6 +3790,9 @@ func awsAwsjson11_deserializeDocumentQuotaExceededException(v **types.QuotaExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4024,7 +4114,13 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4040,6 +4136,9 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4064,7 +4163,13 @@ func awsAwsjson11_deserializeDocumentServiceException(v **types.ServiceException sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4080,6 +4185,9 @@ func awsAwsjson11_deserializeDocumentServiceException(v **types.ServiceException } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4549,7 +4657,13 @@ func awsAwsjson11_deserializeDocumentServiceQuotaTemplateNotInUseException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4565,6 +4679,9 @@ func awsAwsjson11_deserializeDocumentServiceQuotaTemplateNotInUseException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4638,7 +4755,13 @@ func awsAwsjson11_deserializeDocumentTagPolicyViolationException(v **types.TagPo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4654,6 +4777,9 @@ func awsAwsjson11_deserializeDocumentTagPolicyViolationException(v **types.TagPo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4678,7 +4804,13 @@ func awsAwsjson11_deserializeDocumentTemplatesNotAvailableInRegionException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4694,6 +4826,9 @@ func awsAwsjson11_deserializeDocumentTemplatesNotAvailableInRegionException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4718,7 +4853,13 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4734,6 +4875,9 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4758,7 +4902,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4774,6 +4924,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/sesv2/deserializers.go b/service/sesv2/deserializers.go index 9bf681b2d15..60ef725411a 100644 --- a/service/sesv2/deserializers.go +++ b/service/sesv2/deserializers.go @@ -13023,7 +13023,13 @@ func awsRestjson1_deserializeDocumentAccountSuspendedException(v **types.Account sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13039,6 +13045,9 @@ func awsRestjson1_deserializeDocumentAccountSuspendedException(v **types.Account } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13099,7 +13108,13 @@ func awsRestjson1_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13115,6 +13130,9 @@ func awsRestjson1_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13139,7 +13157,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13155,6 +13179,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13639,7 +13666,13 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13655,6 +13688,9 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13715,7 +13751,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13731,6 +13773,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16826,7 +16871,13 @@ func awsRestjson1_deserializeDocumentInternalServiceErrorException(v **types.Int sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16842,6 +16893,9 @@ func awsRestjson1_deserializeDocumentInternalServiceErrorException(v **types.Int } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16866,7 +16920,13 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16882,6 +16942,9 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17214,7 +17277,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17230,6 +17299,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17416,7 +17488,13 @@ func awsRestjson1_deserializeDocumentMailFromDomainNotVerifiedException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17432,6 +17510,9 @@ func awsRestjson1_deserializeDocumentMailFromDomainNotVerifiedException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17603,7 +17684,13 @@ func awsRestjson1_deserializeDocumentMessageRejected(v **types.MessageRejected, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17619,6 +17706,9 @@ func awsRestjson1_deserializeDocumentMessageRejected(v **types.MessageRejected, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18024,7 +18114,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18040,6 +18136,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -18703,7 +18802,13 @@ func awsRestjson1_deserializeDocumentSendingPausedException(v **types.SendingPau sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -18719,6 +18824,9 @@ func awsRestjson1_deserializeDocumentSendingPausedException(v **types.SendingPau } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -19470,7 +19578,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -19486,6 +19600,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/sfn/deserializers.go b/service/sfn/deserializers.go index 277e046e216..e60bf510df6 100644 --- a/service/sfn/deserializers.go +++ b/service/sfn/deserializers.go @@ -5735,7 +5735,13 @@ func awsAwsjson10_deserializeDocumentActivityAlreadyExists(v **types.ActivityAlr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5751,6 +5757,9 @@ func awsAwsjson10_deserializeDocumentActivityAlreadyExists(v **types.ActivityAlr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5775,7 +5784,13 @@ func awsAwsjson10_deserializeDocumentActivityDoesNotExist(v **types.ActivityDoes sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5791,6 +5806,9 @@ func awsAwsjson10_deserializeDocumentActivityDoesNotExist(v **types.ActivityDoes } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5864,7 +5882,13 @@ func awsAwsjson10_deserializeDocumentActivityLimitExceeded(v **types.ActivityLim sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5880,6 +5904,9 @@ func awsAwsjson10_deserializeDocumentActivityLimitExceeded(v **types.ActivityLim } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6266,7 +6293,13 @@ func awsAwsjson10_deserializeDocumentActivityWorkerLimitExceeded(v **types.Activ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6282,6 +6315,9 @@ func awsAwsjson10_deserializeDocumentActivityWorkerLimitExceeded(v **types.Activ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6443,7 +6479,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6459,6 +6501,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6594,7 +6639,13 @@ func awsAwsjson10_deserializeDocumentExecutionAlreadyExists(v **types.ExecutionA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6610,6 +6661,9 @@ func awsAwsjson10_deserializeDocumentExecutionAlreadyExists(v **types.ExecutionA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6634,7 +6688,13 @@ func awsAwsjson10_deserializeDocumentExecutionDoesNotExist(v **types.ExecutionDo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6650,6 +6710,9 @@ func awsAwsjson10_deserializeDocumentExecutionDoesNotExist(v **types.ExecutionDo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6723,7 +6786,13 @@ func awsAwsjson10_deserializeDocumentExecutionLimitExceeded(v **types.ExecutionL sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6739,6 +6808,9 @@ func awsAwsjson10_deserializeDocumentExecutionLimitExceeded(v **types.ExecutionL } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6965,7 +7037,13 @@ func awsAwsjson10_deserializeDocumentExecutionNotRedrivable(v **types.ExecutionN sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6981,6 +7059,9 @@ func awsAwsjson10_deserializeDocumentExecutionNotRedrivable(v **types.ExecutionN } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7798,7 +7879,13 @@ func awsAwsjson10_deserializeDocumentInvalidArn(v **types.InvalidArn, value inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7814,6 +7901,9 @@ func awsAwsjson10_deserializeDocumentInvalidArn(v **types.InvalidArn, value inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7838,7 +7928,13 @@ func awsAwsjson10_deserializeDocumentInvalidDefinition(v **types.InvalidDefiniti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7854,6 +7950,9 @@ func awsAwsjson10_deserializeDocumentInvalidDefinition(v **types.InvalidDefiniti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7878,7 +7977,13 @@ func awsAwsjson10_deserializeDocumentInvalidEncryptionConfiguration(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7894,6 +7999,9 @@ func awsAwsjson10_deserializeDocumentInvalidEncryptionConfiguration(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7918,7 +8026,13 @@ func awsAwsjson10_deserializeDocumentInvalidExecutionInput(v **types.InvalidExec sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7934,6 +8048,9 @@ func awsAwsjson10_deserializeDocumentInvalidExecutionInput(v **types.InvalidExec } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7958,7 +8075,13 @@ func awsAwsjson10_deserializeDocumentInvalidLoggingConfiguration(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7974,6 +8097,9 @@ func awsAwsjson10_deserializeDocumentInvalidLoggingConfiguration(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7998,7 +8124,13 @@ func awsAwsjson10_deserializeDocumentInvalidName(v **types.InvalidName, value in sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8014,6 +8146,9 @@ func awsAwsjson10_deserializeDocumentInvalidName(v **types.InvalidName, value in } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8038,7 +8173,13 @@ func awsAwsjson10_deserializeDocumentInvalidOutput(v **types.InvalidOutput, valu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8054,6 +8195,9 @@ func awsAwsjson10_deserializeDocumentInvalidOutput(v **types.InvalidOutput, valu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8078,7 +8222,13 @@ func awsAwsjson10_deserializeDocumentInvalidToken(v **types.InvalidToken, value sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8094,6 +8244,9 @@ func awsAwsjson10_deserializeDocumentInvalidToken(v **types.InvalidToken, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8118,7 +8271,13 @@ func awsAwsjson10_deserializeDocumentInvalidTracingConfiguration(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8134,6 +8293,9 @@ func awsAwsjson10_deserializeDocumentInvalidTracingConfiguration(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8158,7 +8320,13 @@ func awsAwsjson10_deserializeDocumentKmsAccessDeniedException(v **types.KmsAcces sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8174,6 +8342,9 @@ func awsAwsjson10_deserializeDocumentKmsAccessDeniedException(v **types.KmsAcces } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8198,7 +8369,13 @@ func awsAwsjson10_deserializeDocumentKmsInvalidStateException(v **types.KmsInval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "kmsKeyState": if value != nil { @@ -8223,6 +8400,9 @@ func awsAwsjson10_deserializeDocumentKmsInvalidStateException(v **types.KmsInval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8247,7 +8427,13 @@ func awsAwsjson10_deserializeDocumentKmsThrottlingException(v **types.KmsThrottl sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8263,6 +8449,9 @@ func awsAwsjson10_deserializeDocumentKmsThrottlingException(v **types.KmsThrottl } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9409,7 +9598,13 @@ func awsAwsjson10_deserializeDocumentMissingRequiredParameter(v **types.MissingR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9425,6 +9620,9 @@ func awsAwsjson10_deserializeDocumentMissingRequiredParameter(v **types.MissingR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9449,7 +9647,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFound(v **types.ResourceNotFound sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9474,6 +9678,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFound(v **types.ResourceNotFound } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9585,7 +9792,13 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9601,6 +9814,9 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9823,7 +10039,13 @@ func awsAwsjson10_deserializeDocumentStateMachineAlreadyExists(v **types.StateMa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9839,6 +10061,9 @@ func awsAwsjson10_deserializeDocumentStateMachineAlreadyExists(v **types.StateMa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9863,7 +10088,13 @@ func awsAwsjson10_deserializeDocumentStateMachineDeleting(v **types.StateMachine sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9879,6 +10110,9 @@ func awsAwsjson10_deserializeDocumentStateMachineDeleting(v **types.StateMachine } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9903,7 +10137,13 @@ func awsAwsjson10_deserializeDocumentStateMachineDoesNotExist(v **types.StateMac sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9919,6 +10159,9 @@ func awsAwsjson10_deserializeDocumentStateMachineDoesNotExist(v **types.StateMac } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9943,7 +10186,13 @@ func awsAwsjson10_deserializeDocumentStateMachineLimitExceeded(v **types.StateMa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9959,6 +10208,9 @@ func awsAwsjson10_deserializeDocumentStateMachineLimitExceeded(v **types.StateMa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10091,7 +10343,13 @@ func awsAwsjson10_deserializeDocumentStateMachineTypeNotSupported(v **types.Stat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10107,6 +10365,9 @@ func awsAwsjson10_deserializeDocumentStateMachineTypeNotSupported(v **types.Stat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10344,7 +10605,13 @@ func awsAwsjson10_deserializeDocumentTaskDoesNotExist(v **types.TaskDoesNotExist sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10360,6 +10627,9 @@ func awsAwsjson10_deserializeDocumentTaskDoesNotExist(v **types.TaskDoesNotExist } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10858,7 +11128,13 @@ func awsAwsjson10_deserializeDocumentTaskTimedOut(v **types.TaskTimedOut, value sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10874,6 +11150,9 @@ func awsAwsjson10_deserializeDocumentTaskTimedOut(v **types.TaskTimedOut, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10965,7 +11244,13 @@ func awsAwsjson10_deserializeDocumentTooManyTags(v **types.TooManyTags, value in sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10990,6 +11275,9 @@ func awsAwsjson10_deserializeDocumentTooManyTags(v **types.TooManyTags, value in } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11155,7 +11443,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11180,6 +11474,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/shield/deserializers.go b/service/shield/deserializers.go index 0a0f364362e..f1f09f29aec 100644 --- a/service/shield/deserializers.go +++ b/service/shield/deserializers.go @@ -4819,7 +4819,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4835,6 +4841,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4859,7 +4868,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedForDependencyException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4875,6 +4890,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedForDependencyException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5786,7 +5804,13 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5802,6 +5826,9 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5826,7 +5853,13 @@ func awsAwsjson11_deserializeDocumentInvalidOperationException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5842,6 +5875,9 @@ func awsAwsjson11_deserializeDocumentInvalidOperationException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5866,7 +5902,13 @@ func awsAwsjson11_deserializeDocumentInvalidPaginationTokenException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5882,6 +5924,9 @@ func awsAwsjson11_deserializeDocumentInvalidPaginationTokenException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5906,7 +5951,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fields": if err := awsAwsjson11_deserializeDocumentValidationExceptionFieldList(&sv.Fields, value); err != nil { @@ -5936,6 +5987,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5960,7 +6014,13 @@ func awsAwsjson11_deserializeDocumentInvalidResourceException(v **types.InvalidR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5976,6 +6036,9 @@ func awsAwsjson11_deserializeDocumentInvalidResourceException(v **types.InvalidR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6087,7 +6150,13 @@ func awsAwsjson11_deserializeDocumentLimitsExceededException(v **types.LimitsExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Limit": if value != nil { @@ -6125,6 +6194,9 @@ func awsAwsjson11_deserializeDocumentLimitsExceededException(v **types.LimitsExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6149,7 +6221,13 @@ func awsAwsjson11_deserializeDocumentLockedSubscriptionException(v **types.Locke sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6165,6 +6243,9 @@ func awsAwsjson11_deserializeDocumentLockedSubscriptionException(v **types.Locke } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6299,7 +6380,13 @@ func awsAwsjson11_deserializeDocumentNoAssociatedRoleException(v **types.NoAssoc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6315,6 +6402,9 @@ func awsAwsjson11_deserializeDocumentNoAssociatedRoleException(v **types.NoAssoc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6339,7 +6429,13 @@ func awsAwsjson11_deserializeDocumentOptimisticLockException(v **types.Optimisti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6355,6 +6451,9 @@ func awsAwsjson11_deserializeDocumentOptimisticLockException(v **types.Optimisti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6806,7 +6905,13 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6831,6 +6936,9 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6891,7 +6999,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6916,6 +7030,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/signer/deserializers.go b/service/signer/deserializers.go index 55d69d1d3b6..8508f619081 100644 --- a/service/signer/deserializers.go +++ b/service/signer/deserializers.go @@ -3665,7 +3665,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -3690,6 +3696,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3714,7 +3723,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -3739,6 +3754,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3763,7 +3781,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -3788,6 +3812,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4010,7 +4037,13 @@ func awsRestjson1_deserializeDocumentInternalServiceErrorException(v **types.Int sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -4035,6 +4068,9 @@ func awsRestjson1_deserializeDocumentInternalServiceErrorException(v **types.Int } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4095,7 +4131,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -4120,6 +4162,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4245,7 +4290,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -4270,6 +4321,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4437,7 +4491,13 @@ func awsRestjson1_deserializeDocumentServiceLimitExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -4462,6 +4522,9 @@ func awsRestjson1_deserializeDocumentServiceLimitExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5523,7 +5586,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -5548,6 +5617,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5572,7 +5644,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -5597,6 +5675,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5621,7 +5702,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "code": if value != nil { @@ -5646,6 +5733,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/simspaceweaver/deserializers.go b/service/simspaceweaver/deserializers.go index 501d4be4c68..39f387b8079 100644 --- a/service/simspaceweaver/deserializers.go +++ b/service/simspaceweaver/deserializers.go @@ -2559,7 +2559,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2575,6 +2581,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2673,7 +2682,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2689,6 +2704,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2796,7 +2814,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2812,6 +2836,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3055,7 +3082,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3071,6 +3104,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3144,7 +3180,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3160,6 +3202,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3632,7 +3677,13 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3648,6 +3699,9 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3672,7 +3726,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3688,6 +3748,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/sms/deserializers.go b/service/sms/deserializers.go index 594520fa9f3..791603cd7fb 100644 --- a/service/sms/deserializers.go +++ b/service/sms/deserializers.go @@ -5353,7 +5353,13 @@ func awsAwsjson11_deserializeDocumentDryRunOperationException(v **types.DryRunOp sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5369,6 +5375,9 @@ func awsAwsjson11_deserializeDocumentDryRunOperationException(v **types.DryRunOp } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5393,7 +5402,13 @@ func awsAwsjson11_deserializeDocumentInternalError(v **types.InternalError, valu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5409,6 +5424,9 @@ func awsAwsjson11_deserializeDocumentInternalError(v **types.InternalError, valu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5433,7 +5451,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5449,6 +5473,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5538,7 +5565,13 @@ func awsAwsjson11_deserializeDocumentMissingRequiredParameterException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5554,6 +5587,9 @@ func awsAwsjson11_deserializeDocumentMissingRequiredParameterException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5578,7 +5614,13 @@ func awsAwsjson11_deserializeDocumentNoConnectorsAvailableException(v **types.No sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5594,6 +5636,9 @@ func awsAwsjson11_deserializeDocumentNoConnectorsAvailableException(v **types.No } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5618,7 +5663,13 @@ func awsAwsjson11_deserializeDocumentOperationNotPermittedException(v **types.Op sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5634,6 +5685,9 @@ func awsAwsjson11_deserializeDocumentOperationNotPermittedException(v **types.Op } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5865,7 +5919,13 @@ func awsAwsjson11_deserializeDocumentReplicationJobAlreadyExistsException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5881,6 +5941,9 @@ func awsAwsjson11_deserializeDocumentReplicationJobAlreadyExistsException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5939,7 +6002,13 @@ func awsAwsjson11_deserializeDocumentReplicationJobNotFoundException(v **types.R sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5955,6 +6024,9 @@ func awsAwsjson11_deserializeDocumentReplicationJobNotFoundException(v **types.R } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6119,7 +6191,13 @@ func awsAwsjson11_deserializeDocumentReplicationRunLimitExceededException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6135,6 +6213,9 @@ func awsAwsjson11_deserializeDocumentReplicationRunLimitExceededException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6363,7 +6444,13 @@ func awsAwsjson11_deserializeDocumentServerCannotBeReplicatedException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6379,6 +6466,9 @@ func awsAwsjson11_deserializeDocumentServerCannotBeReplicatedException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7498,13 +7588,22 @@ func awsAwsjson11_deserializeDocumentTemporarilyUnavailableException(v **types.T sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7529,7 +7628,13 @@ func awsAwsjson11_deserializeDocumentUnauthorizedOperationException(v **types.Un sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7545,6 +7650,9 @@ func awsAwsjson11_deserializeDocumentUnauthorizedOperationException(v **types.Un } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/snowball/deserializers.go b/service/snowball/deserializers.go index 856d965dddf..80d06cc3a8d 100644 --- a/service/snowball/deserializers.go +++ b/service/snowball/deserializers.go @@ -3737,7 +3737,13 @@ func awsAwsjson11_deserializeDocumentClusterLimitExceededException(v **types.Clu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3753,6 +3759,9 @@ func awsAwsjson11_deserializeDocumentClusterLimitExceededException(v **types.Clu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4125,7 +4134,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ConflictResource": if value != nil { @@ -4150,6 +4165,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4455,7 +4473,13 @@ func awsAwsjson11_deserializeDocumentEc2RequestFailedException(v **types.Ec2Requ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4471,6 +4495,9 @@ func awsAwsjson11_deserializeDocumentEc2RequestFailedException(v **types.Ec2Requ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4658,7 +4685,13 @@ func awsAwsjson11_deserializeDocumentInvalidAddressException(v **types.InvalidAd sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4674,6 +4707,9 @@ func awsAwsjson11_deserializeDocumentInvalidAddressException(v **types.InvalidAd } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4698,7 +4734,13 @@ func awsAwsjson11_deserializeDocumentInvalidInputCombinationException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4714,6 +4756,9 @@ func awsAwsjson11_deserializeDocumentInvalidInputCombinationException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4738,7 +4783,13 @@ func awsAwsjson11_deserializeDocumentInvalidJobStateException(v **types.InvalidJ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4754,6 +4805,9 @@ func awsAwsjson11_deserializeDocumentInvalidJobStateException(v **types.InvalidJ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4778,7 +4832,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4794,6 +4854,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4818,7 +4881,13 @@ func awsAwsjson11_deserializeDocumentInvalidResourceException(v **types.InvalidR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4843,6 +4912,9 @@ func awsAwsjson11_deserializeDocumentInvalidResourceException(v **types.InvalidR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5452,7 +5524,13 @@ func awsAwsjson11_deserializeDocumentKMSRequestFailedException(v **types.KMSRequ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5468,6 +5546,9 @@ func awsAwsjson11_deserializeDocumentKMSRequestFailedException(v **types.KMSRequ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6040,7 +6121,13 @@ func awsAwsjson11_deserializeDocumentReturnShippingLabelAlreadyExistsException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6056,6 +6143,9 @@ func awsAwsjson11_deserializeDocumentReturnShippingLabelAlreadyExistsException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6645,7 +6735,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedAddressException(v **types.Unsup sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6661,6 +6757,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedAddressException(v **types.Unsup } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/snowdevicemanagement/deserializers.go b/service/snowdevicemanagement/deserializers.go index b97b480c34b..361c0185d6b 100644 --- a/service/snowdevicemanagement/deserializers.go +++ b/service/snowdevicemanagement/deserializers.go @@ -2558,7 +2558,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2574,6 +2580,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3417,7 +3426,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3433,6 +3448,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3585,7 +3603,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3601,6 +3625,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3800,7 +3827,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3816,6 +3849,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4067,7 +4103,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4083,6 +4125,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4107,7 +4152,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4123,6 +4174,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/socialmessaging/deserializers.go b/service/socialmessaging/deserializers.go index 49ebeb58143..800cac6bb69 100644 --- a/service/socialmessaging/deserializers.go +++ b/service/socialmessaging/deserializers.go @@ -2481,7 +2481,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedByMetaException(v **types.Acces sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2497,6 +2503,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedByMetaException(v **types.Acces } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2521,7 +2530,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2537,6 +2552,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2561,7 +2579,13 @@ func awsRestjson1_deserializeDocumentDependencyException(v **types.DependencyExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2577,6 +2601,9 @@ func awsRestjson1_deserializeDocumentDependencyException(v **types.DependencyExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2601,7 +2628,13 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2617,6 +2650,9 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2641,7 +2677,13 @@ func awsRestjson1_deserializeDocumentInvalidParametersException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2657,6 +2699,9 @@ func awsRestjson1_deserializeDocumentInvalidParametersException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3003,7 +3048,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3019,6 +3070,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3126,7 +3180,13 @@ func awsRestjson1_deserializeDocumentThrottledRequestException(v **types.Throttl sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3142,6 +3202,9 @@ func awsRestjson1_deserializeDocumentThrottledRequestException(v **types.Throttl } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3166,7 +3229,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3182,6 +3251,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/sqs/deserializers.go b/service/sqs/deserializers.go index cf56cbe3617..721b2186f62 100644 --- a/service/sqs/deserializers.go +++ b/service/sqs/deserializers.go @@ -4010,7 +4010,13 @@ func awsAwsjson10_deserializeDocumentBatchEntryIdsNotDistinct(v **types.BatchEnt sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4026,6 +4032,9 @@ func awsAwsjson10_deserializeDocumentBatchEntryIdsNotDistinct(v **types.BatchEnt } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4050,7 +4059,13 @@ func awsAwsjson10_deserializeDocumentBatchRequestTooLong(v **types.BatchRequestT sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4066,6 +4081,9 @@ func awsAwsjson10_deserializeDocumentBatchRequestTooLong(v **types.BatchRequestT } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4379,7 +4397,13 @@ func awsAwsjson10_deserializeDocumentEmptyBatchRequest(v **types.EmptyBatchReque sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4395,6 +4419,9 @@ func awsAwsjson10_deserializeDocumentEmptyBatchRequest(v **types.EmptyBatchReque } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4419,7 +4446,13 @@ func awsAwsjson10_deserializeDocumentInvalidAddress(v **types.InvalidAddress, va sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4435,6 +4468,9 @@ func awsAwsjson10_deserializeDocumentInvalidAddress(v **types.InvalidAddress, va } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4459,7 +4495,13 @@ func awsAwsjson10_deserializeDocumentInvalidAttributeName(v **types.InvalidAttri sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4475,6 +4517,9 @@ func awsAwsjson10_deserializeDocumentInvalidAttributeName(v **types.InvalidAttri } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4499,7 +4544,13 @@ func awsAwsjson10_deserializeDocumentInvalidAttributeValue(v **types.InvalidAttr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4515,6 +4566,9 @@ func awsAwsjson10_deserializeDocumentInvalidAttributeValue(v **types.InvalidAttr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4539,7 +4593,13 @@ func awsAwsjson10_deserializeDocumentInvalidBatchEntryId(v **types.InvalidBatchE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4555,6 +4615,9 @@ func awsAwsjson10_deserializeDocumentInvalidBatchEntryId(v **types.InvalidBatchE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4579,13 +4642,22 @@ func awsAwsjson10_deserializeDocumentInvalidIdFormat(v **types.InvalidIdFormat, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4610,7 +4682,13 @@ func awsAwsjson10_deserializeDocumentInvalidMessageContents(v **types.InvalidMes sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4626,6 +4704,9 @@ func awsAwsjson10_deserializeDocumentInvalidMessageContents(v **types.InvalidMes } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4650,7 +4731,13 @@ func awsAwsjson10_deserializeDocumentInvalidSecurity(v **types.InvalidSecurity, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4666,6 +4753,9 @@ func awsAwsjson10_deserializeDocumentInvalidSecurity(v **types.InvalidSecurity, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4690,7 +4780,13 @@ func awsAwsjson10_deserializeDocumentKmsAccessDenied(v **types.KmsAccessDenied, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4706,6 +4802,9 @@ func awsAwsjson10_deserializeDocumentKmsAccessDenied(v **types.KmsAccessDenied, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4730,7 +4829,13 @@ func awsAwsjson10_deserializeDocumentKmsDisabled(v **types.KmsDisabled, value in sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4746,6 +4851,9 @@ func awsAwsjson10_deserializeDocumentKmsDisabled(v **types.KmsDisabled, value in } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4770,7 +4878,13 @@ func awsAwsjson10_deserializeDocumentKmsInvalidKeyUsage(v **types.KmsInvalidKeyU sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4786,6 +4900,9 @@ func awsAwsjson10_deserializeDocumentKmsInvalidKeyUsage(v **types.KmsInvalidKeyU } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4810,7 +4927,13 @@ func awsAwsjson10_deserializeDocumentKmsInvalidState(v **types.KmsInvalidState, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4826,6 +4949,9 @@ func awsAwsjson10_deserializeDocumentKmsInvalidState(v **types.KmsInvalidState, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4850,7 +4976,13 @@ func awsAwsjson10_deserializeDocumentKmsNotFound(v **types.KmsNotFound, value in sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4866,6 +4998,9 @@ func awsAwsjson10_deserializeDocumentKmsNotFound(v **types.KmsNotFound, value in } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4890,7 +5025,13 @@ func awsAwsjson10_deserializeDocumentKmsOptInRequired(v **types.KmsOptInRequired sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4906,6 +5047,9 @@ func awsAwsjson10_deserializeDocumentKmsOptInRequired(v **types.KmsOptInRequired } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4930,7 +5074,13 @@ func awsAwsjson10_deserializeDocumentKmsThrottled(v **types.KmsThrottled, value sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4946,6 +5096,9 @@ func awsAwsjson10_deserializeDocumentKmsThrottled(v **types.KmsThrottled, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5359,13 +5512,22 @@ func awsAwsjson10_deserializeDocumentMessageNotInflight(v **types.MessageNotInfl sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5426,7 +5588,13 @@ func awsAwsjson10_deserializeDocumentOverLimit(v **types.OverLimit, value interf sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5442,6 +5610,9 @@ func awsAwsjson10_deserializeDocumentOverLimit(v **types.OverLimit, value interf } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5466,7 +5637,13 @@ func awsAwsjson10_deserializeDocumentPurgeQueueInProgress(v **types.PurgeQueueIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5482,6 +5659,9 @@ func awsAwsjson10_deserializeDocumentPurgeQueueInProgress(v **types.PurgeQueueIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5542,7 +5722,13 @@ func awsAwsjson10_deserializeDocumentQueueDeletedRecently(v **types.QueueDeleted sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5558,6 +5744,9 @@ func awsAwsjson10_deserializeDocumentQueueDeletedRecently(v **types.QueueDeleted } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5582,7 +5771,13 @@ func awsAwsjson10_deserializeDocumentQueueDoesNotExist(v **types.QueueDoesNotExi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5598,6 +5793,9 @@ func awsAwsjson10_deserializeDocumentQueueDoesNotExist(v **types.QueueDoesNotExi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5622,7 +5820,13 @@ func awsAwsjson10_deserializeDocumentQueueNameExists(v **types.QueueNameExists, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5638,6 +5842,9 @@ func awsAwsjson10_deserializeDocumentQueueNameExists(v **types.QueueNameExists, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5698,7 +5905,13 @@ func awsAwsjson10_deserializeDocumentReceiptHandleIsInvalid(v **types.ReceiptHan sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5714,6 +5927,9 @@ func awsAwsjson10_deserializeDocumentReceiptHandleIsInvalid(v **types.ReceiptHan } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5738,7 +5954,13 @@ func awsAwsjson10_deserializeDocumentRequestThrottled(v **types.RequestThrottled sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5754,6 +5976,9 @@ func awsAwsjson10_deserializeDocumentRequestThrottled(v **types.RequestThrottled } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5778,7 +6003,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5794,6 +6025,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6009,7 +6243,13 @@ func awsAwsjson10_deserializeDocumentTooManyEntriesInBatchRequest(v **types.TooM sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6025,6 +6265,9 @@ func awsAwsjson10_deserializeDocumentTooManyEntriesInBatchRequest(v **types.TooM } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6049,7 +6292,13 @@ func awsAwsjson10_deserializeDocumentUnsupportedOperation(v **types.UnsupportedO sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6065,6 +6314,9 @@ func awsAwsjson10_deserializeDocumentUnsupportedOperation(v **types.UnsupportedO } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/ssm/deserializers.go b/service/ssm/deserializers.go index 0acb68a5b04..a0619ab7918 100644 --- a/service/ssm/deserializers.go +++ b/service/ssm/deserializers.go @@ -21951,7 +21951,13 @@ func awsAwsjson11_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -21967,6 +21973,9 @@ func awsAwsjson11_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -21991,13 +22000,22 @@ func awsAwsjson11_deserializeDocumentAssociatedInstances(v **types.AssociatedIns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22173,13 +22191,22 @@ func awsAwsjson11_deserializeDocumentAssociationAlreadyExists(v **types.Associat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22526,7 +22553,13 @@ func awsAwsjson11_deserializeDocumentAssociationDoesNotExist(v **types.Associati sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -22542,6 +22575,9 @@ func awsAwsjson11_deserializeDocumentAssociationDoesNotExist(v **types.Associati } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22693,7 +22729,13 @@ func awsAwsjson11_deserializeDocumentAssociationExecutionDoesNotExist(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -22709,6 +22751,9 @@ func awsAwsjson11_deserializeDocumentAssociationExecutionDoesNotExist(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -22916,13 +22961,22 @@ func awsAwsjson11_deserializeDocumentAssociationLimitExceeded(v **types.Associat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23351,7 +23405,13 @@ func awsAwsjson11_deserializeDocumentAssociationVersionLimitExceeded(v **types.A sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -23367,6 +23427,9 @@ func awsAwsjson11_deserializeDocumentAssociationVersionLimitExceeded(v **types.A } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23613,7 +23676,13 @@ func awsAwsjson11_deserializeDocumentAutomationDefinitionNotApprovedException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -23629,6 +23698,9 @@ func awsAwsjson11_deserializeDocumentAutomationDefinitionNotApprovedException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23653,7 +23725,13 @@ func awsAwsjson11_deserializeDocumentAutomationDefinitionNotFoundException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -23669,6 +23747,9 @@ func awsAwsjson11_deserializeDocumentAutomationDefinitionNotFoundException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -23693,7 +23774,13 @@ func awsAwsjson11_deserializeDocumentAutomationDefinitionVersionNotFoundExceptio sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -23709,6 +23796,9 @@ func awsAwsjson11_deserializeDocumentAutomationDefinitionVersionNotFoundExceptio } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24052,7 +24142,13 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionLimitExceededException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -24068,6 +24164,9 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionLimitExceededException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24429,7 +24528,13 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionNotFoundException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -24445,6 +24550,9 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionNotFoundException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -24539,7 +24647,13 @@ func awsAwsjson11_deserializeDocumentAutomationStepNotFoundException(v **types.A sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -24555,6 +24669,9 @@ func awsAwsjson11_deserializeDocumentAutomationStepNotFoundException(v **types.A } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -25759,7 +25876,13 @@ func awsAwsjson11_deserializeDocumentComplianceTypeCountLimitExceededException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -25775,6 +25898,9 @@ func awsAwsjson11_deserializeDocumentComplianceTypeCountLimitExceededException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26039,7 +26165,13 @@ func awsAwsjson11_deserializeDocumentCustomSchemaCountLimitExceededException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -26055,6 +26187,9 @@ func awsAwsjson11_deserializeDocumentCustomSchemaCountLimitExceededException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26079,7 +26214,13 @@ func awsAwsjson11_deserializeDocumentDocumentAlreadyExists(v **types.DocumentAlr sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -26095,6 +26236,9 @@ func awsAwsjson11_deserializeDocumentDocumentAlreadyExists(v **types.DocumentAlr } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26648,7 +26792,13 @@ func awsAwsjson11_deserializeDocumentDocumentLimitExceeded(v **types.DocumentLim sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -26664,6 +26814,9 @@ func awsAwsjson11_deserializeDocumentDocumentLimitExceeded(v **types.DocumentLim } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -26825,7 +26978,13 @@ func awsAwsjson11_deserializeDocumentDocumentPermissionLimit(v **types.DocumentP sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -26841,6 +27000,9 @@ func awsAwsjson11_deserializeDocumentDocumentPermissionLimit(v **types.DocumentP } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27297,7 +27459,13 @@ func awsAwsjson11_deserializeDocumentDocumentVersionLimitExceeded(v **types.Docu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -27313,6 +27481,9 @@ func awsAwsjson11_deserializeDocumentDocumentVersionLimitExceeded(v **types.Docu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27371,7 +27542,13 @@ func awsAwsjson11_deserializeDocumentDoesNotExistException(v **types.DoesNotExis sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -27387,6 +27564,9 @@ func awsAwsjson11_deserializeDocumentDoesNotExistException(v **types.DoesNotExis } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27411,7 +27591,13 @@ func awsAwsjson11_deserializeDocumentDuplicateDocumentContent(v **types.Duplicat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -27427,6 +27613,9 @@ func awsAwsjson11_deserializeDocumentDuplicateDocumentContent(v **types.Duplicat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27451,7 +27640,13 @@ func awsAwsjson11_deserializeDocumentDuplicateDocumentVersionName(v **types.Dupl sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -27467,6 +27662,9 @@ func awsAwsjson11_deserializeDocumentDuplicateDocumentVersionName(v **types.Dupl } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27491,13 +27689,22 @@ func awsAwsjson11_deserializeDocumentDuplicateInstanceId(v **types.DuplicateInst sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27775,7 +27982,13 @@ func awsAwsjson11_deserializeDocumentFeatureNotAvailableException(v **types.Feat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -27791,6 +28004,9 @@ func awsAwsjson11_deserializeDocumentFeatureNotAvailableException(v **types.Feat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27907,7 +28123,13 @@ func awsAwsjson11_deserializeDocumentHierarchyLevelLimitExceededException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -27923,6 +28145,9 @@ func awsAwsjson11_deserializeDocumentHierarchyLevelLimitExceededException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27947,7 +28172,13 @@ func awsAwsjson11_deserializeDocumentHierarchyTypeMismatchException(v **types.Hi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -27963,6 +28194,9 @@ func awsAwsjson11_deserializeDocumentHierarchyTypeMismatchException(v **types.Hi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -27987,7 +28221,13 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatch(v **types.Idemp sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -28003,6 +28243,9 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatch(v **types.Idemp } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -28027,7 +28270,13 @@ func awsAwsjson11_deserializeDocumentIncompatiblePolicyException(v **types.Incom sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -28043,6 +28292,9 @@ func awsAwsjson11_deserializeDocumentIncompatiblePolicyException(v **types.Incom } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29507,7 +29759,13 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -29523,6 +29781,9 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29547,7 +29808,13 @@ func awsAwsjson11_deserializeDocumentInvalidActivation(v **types.InvalidActivati sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -29563,6 +29830,9 @@ func awsAwsjson11_deserializeDocumentInvalidActivation(v **types.InvalidActivati } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29587,7 +29857,13 @@ func awsAwsjson11_deserializeDocumentInvalidActivationId(v **types.InvalidActiva sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -29603,6 +29879,9 @@ func awsAwsjson11_deserializeDocumentInvalidActivationId(v **types.InvalidActiva } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29627,7 +29906,13 @@ func awsAwsjson11_deserializeDocumentInvalidAggregatorException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -29643,6 +29928,9 @@ func awsAwsjson11_deserializeDocumentInvalidAggregatorException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29667,7 +29955,13 @@ func awsAwsjson11_deserializeDocumentInvalidAllowedPatternException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -29683,6 +29977,9 @@ func awsAwsjson11_deserializeDocumentInvalidAllowedPatternException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29707,7 +30004,13 @@ func awsAwsjson11_deserializeDocumentInvalidAssociation(v **types.InvalidAssocia sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -29723,6 +30026,9 @@ func awsAwsjson11_deserializeDocumentInvalidAssociation(v **types.InvalidAssocia } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29747,7 +30053,13 @@ func awsAwsjson11_deserializeDocumentInvalidAssociationVersion(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -29763,6 +30075,9 @@ func awsAwsjson11_deserializeDocumentInvalidAssociationVersion(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29787,7 +30102,13 @@ func awsAwsjson11_deserializeDocumentInvalidAutomationExecutionParametersExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -29803,6 +30124,9 @@ func awsAwsjson11_deserializeDocumentInvalidAutomationExecutionParametersExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29827,7 +30151,13 @@ func awsAwsjson11_deserializeDocumentInvalidAutomationSignalException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -29843,6 +30173,9 @@ func awsAwsjson11_deserializeDocumentInvalidAutomationSignalException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29867,7 +30200,13 @@ func awsAwsjson11_deserializeDocumentInvalidAutomationStatusUpdateException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -29883,6 +30222,9 @@ func awsAwsjson11_deserializeDocumentInvalidAutomationStatusUpdateException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29907,13 +30249,22 @@ func awsAwsjson11_deserializeDocumentInvalidCommandId(v **types.InvalidCommandId sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29938,7 +30289,13 @@ func awsAwsjson11_deserializeDocumentInvalidDeleteInventoryParametersException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -29954,6 +30311,9 @@ func awsAwsjson11_deserializeDocumentInvalidDeleteInventoryParametersException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -29978,7 +30338,13 @@ func awsAwsjson11_deserializeDocumentInvalidDeletionIdException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -29994,6 +30360,9 @@ func awsAwsjson11_deserializeDocumentInvalidDeletionIdException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30018,7 +30387,13 @@ func awsAwsjson11_deserializeDocumentInvalidDocument(v **types.InvalidDocument, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -30034,6 +30409,9 @@ func awsAwsjson11_deserializeDocumentInvalidDocument(v **types.InvalidDocument, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30058,7 +30436,13 @@ func awsAwsjson11_deserializeDocumentInvalidDocumentContent(v **types.InvalidDoc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -30074,6 +30458,9 @@ func awsAwsjson11_deserializeDocumentInvalidDocumentContent(v **types.InvalidDoc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30098,7 +30485,13 @@ func awsAwsjson11_deserializeDocumentInvalidDocumentOperation(v **types.InvalidD sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -30114,6 +30507,9 @@ func awsAwsjson11_deserializeDocumentInvalidDocumentOperation(v **types.InvalidD } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30138,7 +30534,13 @@ func awsAwsjson11_deserializeDocumentInvalidDocumentSchemaVersion(v **types.Inva sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -30154,6 +30556,9 @@ func awsAwsjson11_deserializeDocumentInvalidDocumentSchemaVersion(v **types.Inva } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30178,7 +30583,13 @@ func awsAwsjson11_deserializeDocumentInvalidDocumentType(v **types.InvalidDocume sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -30194,6 +30605,9 @@ func awsAwsjson11_deserializeDocumentInvalidDocumentType(v **types.InvalidDocume } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30218,7 +30632,13 @@ func awsAwsjson11_deserializeDocumentInvalidDocumentVersion(v **types.InvalidDoc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -30234,6 +30654,9 @@ func awsAwsjson11_deserializeDocumentInvalidDocumentVersion(v **types.InvalidDoc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30258,7 +30681,13 @@ func awsAwsjson11_deserializeDocumentInvalidFilter(v **types.InvalidFilter, valu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -30274,6 +30703,9 @@ func awsAwsjson11_deserializeDocumentInvalidFilter(v **types.InvalidFilter, valu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30298,13 +30730,22 @@ func awsAwsjson11_deserializeDocumentInvalidFilterKey(v **types.InvalidFilterKey sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30329,7 +30770,13 @@ func awsAwsjson11_deserializeDocumentInvalidFilterOption(v **types.InvalidFilter sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -30345,6 +30792,9 @@ func awsAwsjson11_deserializeDocumentInvalidFilterOption(v **types.InvalidFilter } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30369,7 +30819,13 @@ func awsAwsjson11_deserializeDocumentInvalidFilterValue(v **types.InvalidFilterV sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -30385,6 +30841,9 @@ func awsAwsjson11_deserializeDocumentInvalidFilterValue(v **types.InvalidFilterV } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30409,7 +30868,13 @@ func awsAwsjson11_deserializeDocumentInvalidInstanceId(v **types.InvalidInstance sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -30425,6 +30890,9 @@ func awsAwsjson11_deserializeDocumentInvalidInstanceId(v **types.InvalidInstance } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30449,7 +30917,13 @@ func awsAwsjson11_deserializeDocumentInvalidInstanceInformationFilterValue(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -30465,6 +30939,9 @@ func awsAwsjson11_deserializeDocumentInvalidInstanceInformationFilterValue(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30489,7 +30966,13 @@ func awsAwsjson11_deserializeDocumentInvalidInstancePropertyFilterValue(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -30505,6 +30988,9 @@ func awsAwsjson11_deserializeDocumentInvalidInstancePropertyFilterValue(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30529,7 +31015,13 @@ func awsAwsjson11_deserializeDocumentInvalidInventoryGroupException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -30545,6 +31037,9 @@ func awsAwsjson11_deserializeDocumentInvalidInventoryGroupException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30569,7 +31064,13 @@ func awsAwsjson11_deserializeDocumentInvalidInventoryItemContextException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -30585,6 +31086,9 @@ func awsAwsjson11_deserializeDocumentInvalidInventoryItemContextException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30609,7 +31113,13 @@ func awsAwsjson11_deserializeDocumentInvalidInventoryRequestException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -30625,6 +31135,9 @@ func awsAwsjson11_deserializeDocumentInvalidInventoryRequestException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30649,7 +31162,13 @@ func awsAwsjson11_deserializeDocumentInvalidItemContentException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -30674,6 +31193,9 @@ func awsAwsjson11_deserializeDocumentInvalidItemContentException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30698,7 +31220,13 @@ func awsAwsjson11_deserializeDocumentInvalidKeyId(v **types.InvalidKeyId, value sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -30714,6 +31242,9 @@ func awsAwsjson11_deserializeDocumentInvalidKeyId(v **types.InvalidKeyId, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30738,7 +31269,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextToken(v **types.InvalidNextToken sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -30754,6 +31291,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextToken(v **types.InvalidNextToken } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30778,7 +31318,13 @@ func awsAwsjson11_deserializeDocumentInvalidNotificationConfig(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -30794,6 +31340,9 @@ func awsAwsjson11_deserializeDocumentInvalidNotificationConfig(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30818,7 +31367,13 @@ func awsAwsjson11_deserializeDocumentInvalidOptionException(v **types.InvalidOpt sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -30834,6 +31389,9 @@ func awsAwsjson11_deserializeDocumentInvalidOptionException(v **types.InvalidOpt } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30858,13 +31416,22 @@ func awsAwsjson11_deserializeDocumentInvalidOutputFolder(v **types.InvalidOutput sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30889,13 +31456,22 @@ func awsAwsjson11_deserializeDocumentInvalidOutputLocation(v **types.InvalidOutp sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30920,7 +31496,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameters(v **types.InvalidParamete sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -30936,6 +31518,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameters(v **types.InvalidParamete } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -30960,7 +31545,13 @@ func awsAwsjson11_deserializeDocumentInvalidPermissionType(v **types.InvalidPerm sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -30976,6 +31567,9 @@ func awsAwsjson11_deserializeDocumentInvalidPermissionType(v **types.InvalidPerm } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -31000,13 +31594,22 @@ func awsAwsjson11_deserializeDocumentInvalidPluginName(v **types.InvalidPluginNa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -31031,7 +31634,13 @@ func awsAwsjson11_deserializeDocumentInvalidPolicyAttributeException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -31047,6 +31656,9 @@ func awsAwsjson11_deserializeDocumentInvalidPolicyAttributeException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -31071,7 +31683,13 @@ func awsAwsjson11_deserializeDocumentInvalidPolicyTypeException(v **types.Invali sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -31087,6 +31705,9 @@ func awsAwsjson11_deserializeDocumentInvalidPolicyTypeException(v **types.Invali } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -31111,13 +31732,22 @@ func awsAwsjson11_deserializeDocumentInvalidResourceId(v **types.InvalidResource sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -31142,13 +31772,22 @@ func awsAwsjson11_deserializeDocumentInvalidResourceType(v **types.InvalidResour sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -31173,7 +31812,13 @@ func awsAwsjson11_deserializeDocumentInvalidResultAttributeException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -31189,6 +31834,9 @@ func awsAwsjson11_deserializeDocumentInvalidResultAttributeException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -31213,7 +31861,13 @@ func awsAwsjson11_deserializeDocumentInvalidRole(v **types.InvalidRole, value in sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -31229,6 +31883,9 @@ func awsAwsjson11_deserializeDocumentInvalidRole(v **types.InvalidRole, value in } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -31253,7 +31910,13 @@ func awsAwsjson11_deserializeDocumentInvalidSchedule(v **types.InvalidSchedule, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -31269,6 +31932,9 @@ func awsAwsjson11_deserializeDocumentInvalidSchedule(v **types.InvalidSchedule, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -31293,7 +31959,13 @@ func awsAwsjson11_deserializeDocumentInvalidTag(v **types.InvalidTag, value inte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -31309,6 +31981,9 @@ func awsAwsjson11_deserializeDocumentInvalidTag(v **types.InvalidTag, value inte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -31333,7 +32008,13 @@ func awsAwsjson11_deserializeDocumentInvalidTarget(v **types.InvalidTarget, valu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -31349,6 +32030,9 @@ func awsAwsjson11_deserializeDocumentInvalidTarget(v **types.InvalidTarget, valu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -31373,7 +32057,13 @@ func awsAwsjson11_deserializeDocumentInvalidTargetMaps(v **types.InvalidTargetMa sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -31389,6 +32079,9 @@ func awsAwsjson11_deserializeDocumentInvalidTargetMaps(v **types.InvalidTargetMa } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -31413,7 +32106,13 @@ func awsAwsjson11_deserializeDocumentInvalidTypeNameException(v **types.InvalidT sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -31429,6 +32128,9 @@ func awsAwsjson11_deserializeDocumentInvalidTypeNameException(v **types.InvalidT } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -31453,7 +32155,13 @@ func awsAwsjson11_deserializeDocumentInvalidUpdate(v **types.InvalidUpdate, valu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -31469,6 +32177,9 @@ func awsAwsjson11_deserializeDocumentInvalidUpdate(v **types.InvalidUpdate, valu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -32227,13 +32938,22 @@ func awsAwsjson11_deserializeDocumentInvocationDoesNotExist(v **types.Invocation sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -32258,7 +32978,13 @@ func awsAwsjson11_deserializeDocumentItemContentMismatchException(v **types.Item sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -32283,6 +33009,9 @@ func awsAwsjson11_deserializeDocumentItemContentMismatchException(v **types.Item } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -32307,7 +33036,13 @@ func awsAwsjson11_deserializeDocumentItemSizeLimitExceededException(v **types.It sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -32332,6 +33067,9 @@ func awsAwsjson11_deserializeDocumentItemSizeLimitExceededException(v **types.It } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -33979,7 +34717,13 @@ func awsAwsjson11_deserializeDocumentMalformedResourcePolicyDocumentException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -33995,6 +34739,9 @@ func awsAwsjson11_deserializeDocumentMalformedResourcePolicyDocumentException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -34019,7 +34766,13 @@ func awsAwsjson11_deserializeDocumentMaxDocumentSizeExceeded(v **types.MaxDocume sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -34035,6 +34788,9 @@ func awsAwsjson11_deserializeDocumentMaxDocumentSizeExceeded(v **types.MaxDocume } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -34799,7 +35555,13 @@ func awsAwsjson11_deserializeDocumentOpsItemAccessDeniedException(v **types.OpsI sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -34815,6 +35577,9 @@ func awsAwsjson11_deserializeDocumentOpsItemAccessDeniedException(v **types.OpsI } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -34839,7 +35604,13 @@ func awsAwsjson11_deserializeDocumentOpsItemAlreadyExistsException(v **types.Ops sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -34864,6 +35635,9 @@ func awsAwsjson11_deserializeDocumentOpsItemAlreadyExistsException(v **types.Ops } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -34888,7 +35662,13 @@ func awsAwsjson11_deserializeDocumentOpsItemConflictException(v **types.OpsItemC sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -34904,6 +35684,9 @@ func awsAwsjson11_deserializeDocumentOpsItemConflictException(v **types.OpsItemC } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -35148,7 +35931,13 @@ func awsAwsjson11_deserializeDocumentOpsItemInvalidParameterException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -35169,6 +35958,9 @@ func awsAwsjson11_deserializeDocumentOpsItemInvalidParameterException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -35193,7 +35985,13 @@ func awsAwsjson11_deserializeDocumentOpsItemLimitExceededException(v **types.Ops sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Limit": if value != nil { @@ -35236,6 +36034,9 @@ func awsAwsjson11_deserializeDocumentOpsItemLimitExceededException(v **types.Ops } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -35260,7 +36061,13 @@ func awsAwsjson11_deserializeDocumentOpsItemNotFoundException(v **types.OpsItemN sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -35276,6 +36083,9 @@ func awsAwsjson11_deserializeDocumentOpsItemNotFoundException(v **types.OpsItemN } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -35445,7 +36255,13 @@ func awsAwsjson11_deserializeDocumentOpsItemRelatedItemAlreadyExistsException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -35479,6 +36295,9 @@ func awsAwsjson11_deserializeDocumentOpsItemRelatedItemAlreadyExistsException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -35503,7 +36322,13 @@ func awsAwsjson11_deserializeDocumentOpsItemRelatedItemAssociationNotFoundExcept sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -35519,6 +36344,9 @@ func awsAwsjson11_deserializeDocumentOpsItemRelatedItemAssociationNotFoundExcept } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -36045,7 +36873,13 @@ func awsAwsjson11_deserializeDocumentOpsMetadataAlreadyExistsException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -36061,6 +36895,9 @@ func awsAwsjson11_deserializeDocumentOpsMetadataAlreadyExistsException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -36085,7 +36922,13 @@ func awsAwsjson11_deserializeDocumentOpsMetadataInvalidArgumentException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -36101,6 +36944,9 @@ func awsAwsjson11_deserializeDocumentOpsMetadataInvalidArgumentException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -36125,7 +36971,13 @@ func awsAwsjson11_deserializeDocumentOpsMetadataKeyLimitExceededException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -36141,6 +36993,9 @@ func awsAwsjson11_deserializeDocumentOpsMetadataKeyLimitExceededException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -36165,7 +37020,13 @@ func awsAwsjson11_deserializeDocumentOpsMetadataLimitExceededException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -36181,6 +37042,9 @@ func awsAwsjson11_deserializeDocumentOpsMetadataLimitExceededException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -36239,7 +37103,13 @@ func awsAwsjson11_deserializeDocumentOpsMetadataNotFoundException(v **types.OpsM sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -36255,6 +37125,9 @@ func awsAwsjson11_deserializeDocumentOpsMetadataNotFoundException(v **types.OpsM } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -36279,7 +37152,13 @@ func awsAwsjson11_deserializeDocumentOpsMetadataTooManyUpdatesException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -36295,6 +37174,9 @@ func awsAwsjson11_deserializeDocumentOpsMetadataTooManyUpdatesException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -36491,7 +37373,13 @@ func awsAwsjson11_deserializeDocumentParameterAlreadyExists(v **types.ParameterA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -36507,6 +37395,9 @@ func awsAwsjson11_deserializeDocumentParameterAlreadyExists(v **types.ParameterA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -36810,7 +37701,13 @@ func awsAwsjson11_deserializeDocumentParameterLimitExceeded(v **types.ParameterL sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -36826,6 +37723,9 @@ func awsAwsjson11_deserializeDocumentParameterLimitExceeded(v **types.ParameterL } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -36884,7 +37784,13 @@ func awsAwsjson11_deserializeDocumentParameterMaxVersionLimitExceeded(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -36900,6 +37806,9 @@ func awsAwsjson11_deserializeDocumentParameterMaxVersionLimitExceeded(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -37140,7 +38049,13 @@ func awsAwsjson11_deserializeDocumentParameterNotFound(v **types.ParameterNotFou sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -37156,6 +38071,9 @@ func awsAwsjson11_deserializeDocumentParameterNotFound(v **types.ParameterNotFou } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -37180,7 +38098,13 @@ func awsAwsjson11_deserializeDocumentParameterPatternMismatchException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -37196,6 +38120,9 @@ func awsAwsjson11_deserializeDocumentParameterPatternMismatchException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -37324,7 +38251,13 @@ func awsAwsjson11_deserializeDocumentParameterVersionLabelLimitExceeded(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -37340,6 +38273,9 @@ func awsAwsjson11_deserializeDocumentParameterVersionLabelLimitExceeded(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -37364,7 +38300,13 @@ func awsAwsjson11_deserializeDocumentParameterVersionNotFound(v **types.Paramete sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -37380,6 +38322,9 @@ func awsAwsjson11_deserializeDocumentParameterVersionNotFound(v **types.Paramete } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -38849,7 +39794,13 @@ func awsAwsjson11_deserializeDocumentPoliciesLimitExceededException(v **types.Po sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -38865,6 +39816,9 @@ func awsAwsjson11_deserializeDocumentPoliciesLimitExceededException(v **types.Po } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -39265,7 +40219,13 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncAlreadyExistsException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "SyncName": if value != nil { @@ -39281,6 +40241,9 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncAlreadyExistsException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -39350,7 +40313,13 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncConflictException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -39366,6 +40335,9 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncConflictException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -39390,7 +40362,13 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncCountExceededException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -39406,6 +40384,9 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncCountExceededException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -39470,7 +40451,13 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncInvalidConfigurationExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -39486,6 +40473,9 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncInvalidConfigurationExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -39685,7 +40675,13 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncNotFoundException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -39719,6 +40715,9 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncNotFoundException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -40011,7 +41010,13 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -40027,6 +41032,9 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -40051,7 +41059,13 @@ func awsAwsjson11_deserializeDocumentResourceLimitExceededException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -40067,6 +41081,9 @@ func awsAwsjson11_deserializeDocumentResourceLimitExceededException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -40091,7 +41108,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -40107,6 +41130,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -40131,7 +41157,13 @@ func awsAwsjson11_deserializeDocumentResourcePolicyConflictException(v **types.R sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -40147,6 +41179,9 @@ func awsAwsjson11_deserializeDocumentResourcePolicyConflictException(v **types.R } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -40171,7 +41206,13 @@ func awsAwsjson11_deserializeDocumentResourcePolicyInvalidParameterException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -40192,6 +41233,9 @@ func awsAwsjson11_deserializeDocumentResourcePolicyInvalidParameterException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -40216,7 +41260,13 @@ func awsAwsjson11_deserializeDocumentResourcePolicyLimitExceededException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Limit": if value != nil { @@ -40254,6 +41304,9 @@ func awsAwsjson11_deserializeDocumentResourcePolicyLimitExceededException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -40278,7 +41331,13 @@ func awsAwsjson11_deserializeDocumentResourcePolicyNotFoundException(v **types.R sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -40294,6 +41353,9 @@ func awsAwsjson11_deserializeDocumentResourcePolicyNotFoundException(v **types.R } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -40865,7 +41927,13 @@ func awsAwsjson11_deserializeDocumentServiceSettingNotFound(v **types.ServiceSet sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -40881,6 +41949,9 @@ func awsAwsjson11_deserializeDocumentServiceSettingNotFound(v **types.ServiceSet } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -41237,13 +42308,22 @@ func awsAwsjson11_deserializeDocumentStatusUnchanged(v **types.StatusUnchanged, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -41535,7 +42615,13 @@ func awsAwsjson11_deserializeDocumentSubTypeCountLimitExceededException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -41551,6 +42637,9 @@ func awsAwsjson11_deserializeDocumentSubTypeCountLimitExceededException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -41703,7 +42792,13 @@ func awsAwsjson11_deserializeDocumentTargetInUseException(v **types.TargetInUseE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -41719,6 +42814,9 @@ func awsAwsjson11_deserializeDocumentTargetInUseException(v **types.TargetInUseE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -41989,7 +43087,13 @@ func awsAwsjson11_deserializeDocumentTargetNotConnected(v **types.TargetNotConne sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -42005,6 +43109,9 @@ func awsAwsjson11_deserializeDocumentTargetNotConnected(v **types.TargetNotConne } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -42135,13 +43242,22 @@ func awsAwsjson11_deserializeDocumentTooManyTagsError(v **types.TooManyTagsError sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -42166,7 +43282,13 @@ func awsAwsjson11_deserializeDocumentTooManyUpdates(v **types.TooManyUpdates, va sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -42182,6 +43304,9 @@ func awsAwsjson11_deserializeDocumentTooManyUpdates(v **types.TooManyUpdates, va } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -42206,7 +43331,13 @@ func awsAwsjson11_deserializeDocumentTotalSizeLimitExceededException(v **types.T sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -42222,6 +43353,9 @@ func awsAwsjson11_deserializeDocumentTotalSizeLimitExceededException(v **types.T } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -42246,7 +43380,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedCalendarException(v **types.Unsu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -42262,6 +43402,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedCalendarException(v **types.Unsu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -42286,7 +43429,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedFeatureRequiredException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -42302,6 +43451,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedFeatureRequiredException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -42326,7 +43478,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedInventoryItemContextException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -42351,6 +43509,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedInventoryItemContextException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -42375,7 +43536,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedInventorySchemaVersionException( sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -42391,6 +43558,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedInventorySchemaVersionException( } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -42415,7 +43585,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperatingSystem(v **types.Unsupp sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -42431,6 +43607,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperatingSystem(v **types.Unsupp } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -42455,7 +43634,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedParameterType(v **types.Unsuppor sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -42471,6 +43656,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedParameterType(v **types.Unsuppor } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -42495,7 +43683,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedPlatformType(v **types.Unsupport sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -42511,6 +43705,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedPlatformType(v **types.Unsupport } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/ssmcontacts/deserializers.go b/service/ssmcontacts/deserializers.go index 1a2d16afc30..880c9a333f7 100644 --- a/service/ssmcontacts/deserializers.go +++ b/service/ssmcontacts/deserializers.go @@ -5186,7 +5186,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5202,6 +5208,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5279,7 +5288,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "DependentEntities": if err := awsAwsjson11_deserializeDocumentDependentEntityList(&sv.DependentEntities, value); err != nil { @@ -5318,6 +5333,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5756,7 +5774,13 @@ func awsAwsjson11_deserializeDocumentDataEncryptionException(v **types.DataEncry sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5772,6 +5796,9 @@ func awsAwsjson11_deserializeDocumentDataEncryptionException(v **types.DataEncry } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6065,7 +6092,13 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6094,6 +6127,9 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6681,7 +6717,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6715,6 +6757,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7136,7 +7181,13 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7188,6 +7239,9 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7559,7 +7613,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7606,6 +7666,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7630,7 +7693,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Fields": if err := awsAwsjson11_deserializeDocumentValidationExceptionFieldList(&sv.Fields, value); err != nil { @@ -7660,6 +7729,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/ssmincidents/deserializers.go b/service/ssmincidents/deserializers.go index ea83767c4d8..4458f31bcd8 100644 --- a/service/ssmincidents/deserializers.go +++ b/service/ssmincidents/deserializers.go @@ -4709,7 +4709,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4725,6 +4731,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5224,7 +5233,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5274,6 +5289,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6435,7 +6453,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6451,6 +6475,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7168,7 +7195,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7202,6 +7235,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7410,7 +7446,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7462,6 +7504,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7669,7 +7714,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7703,6 +7754,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7831,7 +7885,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7847,6 +7907,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/ssmquicksetup/deserializers.go b/service/ssmquicksetup/deserializers.go index 41f2bec4720..99224de9760 100644 --- a/service/ssmquicksetup/deserializers.go +++ b/service/ssmquicksetup/deserializers.go @@ -1977,7 +1977,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1993,6 +1999,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2367,7 +2376,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2383,6 +2398,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2407,7 +2425,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2423,6 +2447,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2530,7 +2557,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2546,6 +2579,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2875,7 +2911,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2891,6 +2933,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2915,7 +2960,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2931,6 +2982,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/ssmsap/deserializers.go b/service/ssmsap/deserializers.go index 876da294d10..9b3597c12cb 100644 --- a/service/ssmsap/deserializers.go +++ b/service/ssmsap/deserializers.go @@ -4255,7 +4255,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4271,6 +4277,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4765,7 +4774,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4781,6 +4796,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5388,7 +5406,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5404,6 +5428,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5464,7 +5491,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5480,6 +5513,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5504,7 +5540,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5520,6 +5562,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/sso/deserializers.go b/service/sso/deserializers.go index 5f0cce2bf1e..2e3c800eb07 100644 --- a/service/sso/deserializers.go +++ b/service/sso/deserializers.go @@ -887,7 +887,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -903,6 +909,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -927,7 +936,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -943,6 +958,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1121,7 +1139,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1137,6 +1161,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1161,7 +1188,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1177,6 +1210,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/ssoadmin/deserializers.go b/service/ssoadmin/deserializers.go index 2e8a49bb31b..d78cbbab982 100644 --- a/service/ssoadmin/deserializers.go +++ b/service/ssoadmin/deserializers.go @@ -9409,7 +9409,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9425,6 +9431,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10656,7 +10665,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10672,6 +10687,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11184,7 +11202,13 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11200,6 +11224,9 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11803,7 +11830,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11819,6 +11852,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12078,7 +12114,13 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12094,6 +12136,9 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12250,7 +12295,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12266,6 +12317,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12489,7 +12543,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12505,6 +12565,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/ssooidc/deserializers.go b/service/ssooidc/deserializers.go index ae9f145e627..ef827dfcb2b 100644 --- a/service/ssooidc/deserializers.go +++ b/service/ssooidc/deserializers.go @@ -1467,7 +1467,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "error": if value != nil { @@ -1492,6 +1498,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1516,7 +1525,13 @@ func awsRestjson1_deserializeDocumentAuthorizationPendingException(v **types.Aut sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "error": if value != nil { @@ -1541,6 +1556,9 @@ func awsRestjson1_deserializeDocumentAuthorizationPendingException(v **types.Aut } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1565,7 +1583,13 @@ func awsRestjson1_deserializeDocumentExpiredTokenException(v **types.ExpiredToke sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "error": if value != nil { @@ -1590,6 +1614,9 @@ func awsRestjson1_deserializeDocumentExpiredTokenException(v **types.ExpiredToke } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1614,7 +1641,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "error": if value != nil { @@ -1639,6 +1672,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1663,7 +1699,13 @@ func awsRestjson1_deserializeDocumentInvalidClientException(v **types.InvalidCli sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "error": if value != nil { @@ -1688,6 +1730,9 @@ func awsRestjson1_deserializeDocumentInvalidClientException(v **types.InvalidCli } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1712,7 +1757,13 @@ func awsRestjson1_deserializeDocumentInvalidClientMetadataException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "error": if value != nil { @@ -1737,6 +1788,9 @@ func awsRestjson1_deserializeDocumentInvalidClientMetadataException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1761,7 +1815,13 @@ func awsRestjson1_deserializeDocumentInvalidGrantException(v **types.InvalidGran sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "error": if value != nil { @@ -1786,6 +1846,9 @@ func awsRestjson1_deserializeDocumentInvalidGrantException(v **types.InvalidGran } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1810,7 +1873,13 @@ func awsRestjson1_deserializeDocumentInvalidRedirectUriException(v **types.Inval sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "error": if value != nil { @@ -1835,6 +1904,9 @@ func awsRestjson1_deserializeDocumentInvalidRedirectUriException(v **types.Inval } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1859,7 +1931,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "error": if value != nil { @@ -1884,6 +1962,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1908,7 +1989,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestRegionException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "endpoint": if value != nil { @@ -1951,6 +2038,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestRegionException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1975,7 +2065,13 @@ func awsRestjson1_deserializeDocumentInvalidScopeException(v **types.InvalidScop sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "error": if value != nil { @@ -2000,6 +2096,9 @@ func awsRestjson1_deserializeDocumentInvalidScopeException(v **types.InvalidScop } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2060,7 +2159,13 @@ func awsRestjson1_deserializeDocumentSlowDownException(v **types.SlowDownExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "error": if value != nil { @@ -2085,6 +2190,9 @@ func awsRestjson1_deserializeDocumentSlowDownException(v **types.SlowDownExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2109,7 +2217,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedClientException(v **types.Unaut sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "error": if value != nil { @@ -2134,6 +2248,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedClientException(v **types.Unaut } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2158,7 +2275,13 @@ func awsRestjson1_deserializeDocumentUnsupportedGrantTypeException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "error": if value != nil { @@ -2183,6 +2306,9 @@ func awsRestjson1_deserializeDocumentUnsupportedGrantTypeException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/storagegateway/deserializers.go b/service/storagegateway/deserializers.go index 4f7ada04635..626fedf4593 100644 --- a/service/storagegateway/deserializers.go +++ b/service/storagegateway/deserializers.go @@ -12206,7 +12206,13 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "error": if err := awsAwsjson11_deserializeDocumentStorageGatewayError(&sv.Error_, value); err != nil { @@ -12227,6 +12233,9 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12251,7 +12260,13 @@ func awsAwsjson11_deserializeDocumentInvalidGatewayRequestException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "error": if err := awsAwsjson11_deserializeDocumentStorageGatewayError(&sv.Error_, value); err != nil { @@ -12272,6 +12287,9 @@ func awsAwsjson11_deserializeDocumentInvalidGatewayRequestException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12862,7 +12880,13 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableError(v **types.ServiceUn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "error": if err := awsAwsjson11_deserializeDocumentStorageGatewayError(&sv.Error_, value); err != nil { @@ -12883,6 +12907,9 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableError(v **types.ServiceUn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/supplychain/deserializers.go b/service/supplychain/deserializers.go index c54d0200ffa..cacf7b19909 100644 --- a/service/supplychain/deserializers.go +++ b/service/supplychain/deserializers.go @@ -3827,7 +3827,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3843,6 +3849,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3943,7 +3952,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3959,6 +3974,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5115,7 +5133,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5131,6 +5155,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5155,7 +5182,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5171,6 +5204,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5195,7 +5231,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5211,6 +5253,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5271,7 +5316,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5287,6 +5338,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5311,7 +5365,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -5327,6 +5387,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/support/deserializers.go b/service/support/deserializers.go index f08e3566b73..df643319e27 100644 --- a/service/support/deserializers.go +++ b/service/support/deserializers.go @@ -2342,7 +2342,13 @@ func awsAwsjson11_deserializeDocumentAttachmentIdNotFound(v **types.AttachmentId sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2358,6 +2364,9 @@ func awsAwsjson11_deserializeDocumentAttachmentIdNotFound(v **types.AttachmentId } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2382,7 +2391,13 @@ func awsAwsjson11_deserializeDocumentAttachmentLimitExceeded(v **types.Attachmen sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2398,6 +2413,9 @@ func awsAwsjson11_deserializeDocumentAttachmentLimitExceeded(v **types.Attachmen } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2456,7 +2474,13 @@ func awsAwsjson11_deserializeDocumentAttachmentSetExpired(v **types.AttachmentSe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2472,6 +2496,9 @@ func awsAwsjson11_deserializeDocumentAttachmentSetExpired(v **types.AttachmentSe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2496,7 +2523,13 @@ func awsAwsjson11_deserializeDocumentAttachmentSetIdNotFound(v **types.Attachmen sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2512,6 +2545,9 @@ func awsAwsjson11_deserializeDocumentAttachmentSetIdNotFound(v **types.Attachmen } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2536,7 +2572,13 @@ func awsAwsjson11_deserializeDocumentAttachmentSetSizeLimitExceeded(v **types.At sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2552,6 +2594,9 @@ func awsAwsjson11_deserializeDocumentAttachmentSetSizeLimitExceeded(v **types.At } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2576,7 +2621,13 @@ func awsAwsjson11_deserializeDocumentCaseCreationLimitExceeded(v **types.CaseCre sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2592,6 +2643,9 @@ func awsAwsjson11_deserializeDocumentCaseCreationLimitExceeded(v **types.CaseCre } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2747,7 +2801,13 @@ func awsAwsjson11_deserializeDocumentCaseIdNotFound(v **types.CaseIdNotFound, va sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2763,6 +2823,9 @@ func awsAwsjson11_deserializeDocumentCaseIdNotFound(v **types.CaseIdNotFound, va } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3213,7 +3276,13 @@ func awsAwsjson11_deserializeDocumentDescribeAttachmentLimitExceeded(v **types.D sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3229,6 +3298,9 @@ func awsAwsjson11_deserializeDocumentDescribeAttachmentLimitExceeded(v **types.D } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3253,7 +3325,13 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3269,6 +3347,9 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3720,7 +3801,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3736,6 +3823,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/supportapp/deserializers.go b/service/supportapp/deserializers.go index c2c9e1f214e..0144f9e19a7 100644 --- a/service/supportapp/deserializers.go +++ b/service/supportapp/deserializers.go @@ -1654,7 +1654,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1670,6 +1676,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1694,7 +1703,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1710,6 +1725,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1734,7 +1752,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1750,6 +1774,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1774,7 +1801,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1790,6 +1823,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1814,7 +1850,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1830,6 +1872,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2083,7 +2128,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2099,6 +2150,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/swf/deserializers.go b/service/swf/deserializers.go index d7d8c4db123..103362c3799 100644 --- a/service/swf/deserializers.go +++ b/service/swf/deserializers.go @@ -6204,7 +6204,13 @@ func awsAwsjson10_deserializeDocumentDefaultUndefinedFault(v **types.DefaultUnde sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6220,6 +6226,9 @@ func awsAwsjson10_deserializeDocumentDefaultUndefinedFault(v **types.DefaultUnde } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6244,7 +6253,13 @@ func awsAwsjson10_deserializeDocumentDomainAlreadyExistsFault(v **types.DomainAl sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6260,6 +6275,9 @@ func awsAwsjson10_deserializeDocumentDomainAlreadyExistsFault(v **types.DomainAl } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6324,7 +6342,13 @@ func awsAwsjson10_deserializeDocumentDomainDeprecatedFault(v **types.DomainDepre sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6340,6 +6364,9 @@ func awsAwsjson10_deserializeDocumentDomainDeprecatedFault(v **types.DomainDepre } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7329,7 +7356,13 @@ func awsAwsjson10_deserializeDocumentLimitExceededFault(v **types.LimitExceededF sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7345,6 +7378,9 @@ func awsAwsjson10_deserializeDocumentLimitExceededFault(v **types.LimitExceededF } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7431,7 +7467,13 @@ func awsAwsjson10_deserializeDocumentOperationNotPermittedFault(v **types.Operat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7447,6 +7489,9 @@ func awsAwsjson10_deserializeDocumentOperationNotPermittedFault(v **types.Operat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8772,7 +8817,13 @@ func awsAwsjson10_deserializeDocumentTooManyTagsFault(v **types.TooManyTagsFault sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8788,6 +8839,9 @@ func awsAwsjson10_deserializeDocumentTooManyTagsFault(v **types.TooManyTagsFault } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8812,7 +8866,13 @@ func awsAwsjson10_deserializeDocumentTypeAlreadyExistsFault(v **types.TypeAlread sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8828,6 +8888,9 @@ func awsAwsjson10_deserializeDocumentTypeAlreadyExistsFault(v **types.TypeAlread } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8852,7 +8915,13 @@ func awsAwsjson10_deserializeDocumentTypeDeprecatedFault(v **types.TypeDeprecate sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8868,6 +8937,9 @@ func awsAwsjson10_deserializeDocumentTypeDeprecatedFault(v **types.TypeDeprecate } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8892,7 +8964,13 @@ func awsAwsjson10_deserializeDocumentTypeNotDeprecatedFault(v **types.TypeNotDep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8908,6 +8986,9 @@ func awsAwsjson10_deserializeDocumentTypeNotDeprecatedFault(v **types.TypeNotDep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8932,7 +9013,13 @@ func awsAwsjson10_deserializeDocumentUnknownResourceFault(v **types.UnknownResou sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8948,6 +9035,9 @@ func awsAwsjson10_deserializeDocumentUnknownResourceFault(v **types.UnknownResou } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9021,7 +9111,13 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionAlreadyStartedFault(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9037,6 +9133,9 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionAlreadyStartedFault(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/synthetics/deserializers.go b/service/synthetics/deserializers.go index e57cad8a917..b1687b94ccd 100644 --- a/service/synthetics/deserializers.go +++ b/service/synthetics/deserializers.go @@ -3289,7 +3289,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3305,6 +3311,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4257,7 +4266,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4273,6 +4288,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4484,7 +4502,13 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4500,6 +4524,9 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4524,7 +4551,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4540,6 +4573,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4564,7 +4600,13 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4580,6 +4622,9 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4604,7 +4649,13 @@ func awsRestjson1_deserializeDocumentRequestEntityTooLargeException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4620,6 +4671,9 @@ func awsRestjson1_deserializeDocumentRequestEntityTooLargeException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4644,7 +4698,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4660,6 +4720,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4884,7 +4947,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4900,6 +4969,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5032,7 +5104,13 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5048,6 +5126,9 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5072,7 +5153,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5088,6 +5175,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/taxsettings/deserializers.go b/service/taxsettings/deserializers.go index e0a5cbabbbf..a99add8c09c 100644 --- a/service/taxsettings/deserializers.go +++ b/service/taxsettings/deserializers.go @@ -2402,7 +2402,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorCode": if value != nil { @@ -2427,6 +2433,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2571,7 +2580,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorCode": if value != nil { @@ -2596,6 +2611,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2964,7 +2982,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorCode": if value != nil { @@ -2989,6 +3013,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3745,7 +3772,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "errorCode": if value != nil { @@ -3775,6 +3808,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/textract/deserializers.go b/service/textract/deserializers.go index 76837158f80..0f1bf2b2be3 100644 --- a/service/textract/deserializers.go +++ b/service/textract/deserializers.go @@ -4043,7 +4043,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -4068,6 +4074,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4517,7 +4526,13 @@ func awsAwsjson11_deserializeDocumentBadDocumentException(v **types.BadDocumentE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -4542,6 +4557,9 @@ func awsAwsjson11_deserializeDocumentBadDocumentException(v **types.BadDocumentE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4962,7 +4980,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -4987,6 +5011,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5222,7 +5249,13 @@ func awsAwsjson11_deserializeDocumentDocumentTooLargeException(v **types.Documen sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -5247,6 +5280,9 @@ func awsAwsjson11_deserializeDocumentDocumentTooLargeException(v **types.Documen } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6189,7 +6225,13 @@ func awsAwsjson11_deserializeDocumentHumanLoopQuotaExceededException(v **types.H sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6241,6 +6283,9 @@ func awsAwsjson11_deserializeDocumentHumanLoopQuotaExceededException(v **types.H } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6265,7 +6310,13 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatchException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6290,6 +6341,9 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatchException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6513,7 +6567,13 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6538,6 +6598,9 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6562,7 +6625,13 @@ func awsAwsjson11_deserializeDocumentInvalidJobIdException(v **types.InvalidJobI sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6587,6 +6656,9 @@ func awsAwsjson11_deserializeDocumentInvalidJobIdException(v **types.InvalidJobI } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6611,7 +6683,13 @@ func awsAwsjson11_deserializeDocumentInvalidKMSKeyException(v **types.InvalidKMS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6636,6 +6714,9 @@ func awsAwsjson11_deserializeDocumentInvalidKMSKeyException(v **types.InvalidKMS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6660,7 +6741,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6685,6 +6772,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6709,7 +6799,13 @@ func awsAwsjson11_deserializeDocumentInvalidS3ObjectException(v **types.InvalidS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -6734,6 +6830,9 @@ func awsAwsjson11_deserializeDocumentInvalidS3ObjectException(v **types.InvalidS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7134,7 +7233,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -7159,6 +7264,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7796,7 +7904,13 @@ func awsAwsjson11_deserializeDocumentProvisionedThroughputExceededException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -7821,6 +7935,9 @@ func awsAwsjson11_deserializeDocumentProvisionedThroughputExceededException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8014,7 +8131,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -8039,6 +8162,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8121,7 +8247,13 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -8146,6 +8278,9 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8429,7 +8564,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -8454,6 +8595,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8592,7 +8736,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedDocumentException(v **types.Unsu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -8617,6 +8767,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedDocumentException(v **types.Unsu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8641,7 +8794,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -8666,6 +8825,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/timestreaminfluxdb/deserializers.go b/service/timestreaminfluxdb/deserializers.go index e5856e5d939..0e92ba10a68 100644 --- a/service/timestreaminfluxdb/deserializers.go +++ b/service/timestreaminfluxdb/deserializers.go @@ -1586,7 +1586,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1602,6 +1608,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1626,7 +1635,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -1660,6 +1675,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2374,7 +2392,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2390,6 +2414,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2490,7 +2517,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2524,6 +2557,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2633,7 +2669,13 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2649,6 +2691,9 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2673,7 +2718,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2702,6 +2753,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2726,7 +2780,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2751,6 +2811,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/timestreamquery/deserializers.go b/service/timestreamquery/deserializers.go index c0d4c7aff25..894355c3e09 100644 --- a/service/timestreamquery/deserializers.go +++ b/service/timestreamquery/deserializers.go @@ -2154,7 +2154,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2170,6 +2176,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2273,7 +2282,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2289,6 +2304,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2762,7 +2780,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2778,6 +2802,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2802,7 +2829,13 @@ func awsAwsjson10_deserializeDocumentInvalidEndpointException(v **types.InvalidE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2818,6 +2851,9 @@ func awsAwsjson10_deserializeDocumentInvalidEndpointException(v **types.InvalidE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3236,7 +3272,13 @@ func awsAwsjson10_deserializeDocumentQueryExecutionException(v **types.QueryExec sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3252,6 +3294,9 @@ func awsAwsjson10_deserializeDocumentQueryExecutionException(v **types.QueryExec } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3690,7 +3735,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3715,6 +3766,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4594,7 +4648,13 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4610,6 +4670,9 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4829,7 +4892,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4845,6 +4914,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5134,7 +5206,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5150,6 +5228,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/timestreamwrite/deserializers.go b/service/timestreamwrite/deserializers.go index 5ad75c449f2..ee6eab7f648 100644 --- a/service/timestreamwrite/deserializers.go +++ b/service/timestreamwrite/deserializers.go @@ -2706,7 +2706,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2722,6 +2728,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3161,7 +3170,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3177,6 +3192,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3846,7 +3864,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3862,6 +3886,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3886,7 +3913,13 @@ func awsAwsjson10_deserializeDocumentInvalidEndpointException(v **types.InvalidE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3902,6 +3935,9 @@ func awsAwsjson10_deserializeDocumentInvalidEndpointException(v **types.InvalidE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4512,7 +4548,13 @@ func awsAwsjson10_deserializeDocumentRejectedRecordsException(v **types.Rejected sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4533,6 +4575,9 @@ func awsAwsjson10_deserializeDocumentRejectedRecordsException(v **types.Rejected } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4660,7 +4705,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4676,6 +4727,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4860,7 +4914,13 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4876,6 +4936,9 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5131,7 +5194,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5147,6 +5216,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5171,7 +5243,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5187,6 +5265,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/tnb/deserializers.go b/service/tnb/deserializers.go index 96fabff08ce..5e3fef605ea 100644 --- a/service/tnb/deserializers.go +++ b/service/tnb/deserializers.go @@ -6034,7 +6034,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6050,6 +6056,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6846,7 +6855,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6862,6 +6877,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8172,7 +8190,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8188,6 +8212,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8212,7 +8239,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8228,6 +8261,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8324,7 +8360,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8340,6 +8382,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8530,7 +8575,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8546,6 +8597,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/transcribe/deserializers.go b/service/transcribe/deserializers.go index 9ef52d8c36c..7c7022fd1f5 100644 --- a/service/transcribe/deserializers.go +++ b/service/transcribe/deserializers.go @@ -5288,7 +5288,13 @@ func awsAwsjson11_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5304,6 +5310,9 @@ func awsAwsjson11_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6109,7 +6118,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6125,6 +6140,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6261,7 +6279,13 @@ func awsAwsjson11_deserializeDocumentInternalFailureException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6277,6 +6301,9 @@ func awsAwsjson11_deserializeDocumentInternalFailureException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6781,7 +6808,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6797,6 +6830,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8032,7 +8068,13 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8048,6 +8090,9 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/transcribestreaming/deserializers.go b/service/transcribestreaming/deserializers.go index 8fda530948a..c701c107f40 100644 --- a/service/transcribestreaming/deserializers.go +++ b/service/transcribestreaming/deserializers.go @@ -1030,7 +1030,13 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1046,6 +1052,9 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1481,7 +1490,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1497,6 +1512,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1521,7 +1539,13 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1537,6 +1561,9 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1631,7 +1658,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1647,6 +1680,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -1742,7 +1778,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -1758,6 +1800,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/transfer/deserializers.go b/service/transfer/deserializers.go index 03f5691bcf8..d79a1cba639 100644 --- a/service/transfer/deserializers.go +++ b/service/transfer/deserializers.go @@ -7521,7 +7521,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7537,6 +7543,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7781,7 +7790,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7797,6 +7812,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9927,7 +9945,13 @@ func awsAwsjson11_deserializeDocumentInternalServiceError(v **types.InternalServ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9943,6 +9967,9 @@ func awsAwsjson11_deserializeDocumentInternalServiceError(v **types.InternalServ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9967,7 +9994,13 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9983,6 +10016,9 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10007,7 +10043,13 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10023,6 +10065,9 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11473,7 +11518,13 @@ func awsAwsjson11_deserializeDocumentResourceExistsException(v **types.ResourceE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11507,6 +11558,9 @@ func awsAwsjson11_deserializeDocumentResourceExistsException(v **types.ResourceE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11531,7 +11585,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11565,6 +11625,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12084,7 +12147,13 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12100,6 +12169,9 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12513,7 +12585,13 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "RetryAfterSeconds": if value != nil { @@ -12529,6 +12607,9 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/translate/deserializers.go b/service/translate/deserializers.go index 5dfd480723e..f5385f48c7d 100644 --- a/service/translate/deserializers.go +++ b/service/translate/deserializers.go @@ -2958,7 +2958,13 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -2974,6 +2980,9 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2998,7 +3007,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3014,6 +3029,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3038,7 +3056,13 @@ func awsAwsjson11_deserializeDocumentDetectedLanguageLowConfidenceException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "DetectedLanguageCode": if value != nil { @@ -3063,6 +3087,9 @@ func awsAwsjson11_deserializeDocumentDetectedLanguageLowConfidenceException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3185,7 +3212,13 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3201,6 +3234,9 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3225,7 +3261,13 @@ func awsAwsjson11_deserializeDocumentInvalidFilterException(v **types.InvalidFil sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3241,6 +3283,9 @@ func awsAwsjson11_deserializeDocumentInvalidFilterException(v **types.InvalidFil } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3265,7 +3310,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterValueException(v **types.In sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3281,6 +3332,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterValueException(v **types.In } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3305,7 +3359,13 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3321,6 +3381,9 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3534,7 +3597,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3550,6 +3619,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3996,7 +4068,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4012,6 +4090,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4036,7 +4117,13 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4052,6 +4139,9 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4536,7 +4626,13 @@ func awsAwsjson11_deserializeDocumentTextSizeLimitExceededException(v **types.Te sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4552,6 +4648,9 @@ func awsAwsjson11_deserializeDocumentTextSizeLimitExceededException(v **types.Te } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4762,7 +4861,13 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -4778,6 +4883,9 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4802,7 +4910,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4827,6 +4941,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4953,7 +5070,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedDisplayLanguageCodeException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "DisplayLanguageCode": if value != nil { @@ -4978,6 +5101,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedDisplayLanguageCodeException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5002,7 +5128,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedLanguagePairException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5036,6 +5168,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedLanguagePairException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/trustedadvisor/deserializers.go b/service/trustedadvisor/deserializers.go index a054ebd0c5c..0233f857fb6 100644 --- a/service/trustedadvisor/deserializers.go +++ b/service/trustedadvisor/deserializers.go @@ -2006,7 +2006,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2022,6 +2028,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2312,7 +2321,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2328,6 +2343,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2352,7 +2370,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2368,6 +2392,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3768,7 +3795,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3784,6 +3817,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3844,7 +3880,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3860,6 +3902,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3976,7 +4021,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3992,6 +4043,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/verifiedpermissions/deserializers.go b/service/verifiedpermissions/deserializers.go index 3dff04d8d47..4a2ff8cc065 100644 --- a/service/verifiedpermissions/deserializers.go +++ b/service/verifiedpermissions/deserializers.go @@ -3537,7 +3537,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3553,6 +3559,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4401,7 +4410,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4422,6 +4437,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4969,7 +4987,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4985,6 +5009,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6141,7 +6168,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6175,6 +6208,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6199,7 +6235,13 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6251,6 +6293,9 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6496,7 +6541,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6530,6 +6581,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6554,7 +6608,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsAwsjson10_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -6575,6 +6635,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/voiceid/deserializers.go b/service/voiceid/deserializers.go index 89f8ebc7484..5f54ea352a1 100644 --- a/service/voiceid/deserializers.go +++ b/service/voiceid/deserializers.go @@ -3837,7 +3837,13 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -3853,6 +3859,9 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4038,7 +4047,13 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "ConflictType": if value != nil { @@ -4063,6 +4078,9 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5275,7 +5293,13 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5291,6 +5315,9 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5555,7 +5582,13 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5580,6 +5613,9 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -5738,7 +5774,13 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -5754,6 +5796,9 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6401,7 +6446,13 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6417,6 +6468,9 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -6441,7 +6495,13 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -6457,6 +6517,9 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/vpclattice/deserializers.go b/service/vpclattice/deserializers.go index ac29202382f..d25248383ee 100644 --- a/service/vpclattice/deserializers.go +++ b/service/vpclattice/deserializers.go @@ -10078,7 +10078,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10094,6 +10100,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10254,7 +10263,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10288,6 +10303,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10782,7 +10800,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10811,6 +10835,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11116,7 +11143,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11150,6 +11183,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12215,7 +12251,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12267,6 +12309,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13015,7 +13060,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13062,6 +13113,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13086,7 +13140,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -13116,6 +13176,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/waf/deserializers.go b/service/waf/deserializers.go index 590447522fb..5587f1213ff 100644 --- a/service/waf/deserializers.go +++ b/service/waf/deserializers.go @@ -13178,7 +13178,13 @@ func awsAwsjson11_deserializeDocumentWAFBadRequestException(v **types.WAFBadRequ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13194,6 +13200,9 @@ func awsAwsjson11_deserializeDocumentWAFBadRequestException(v **types.WAFBadRequ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13218,7 +13227,13 @@ func awsAwsjson11_deserializeDocumentWAFDisallowedNameException(v **types.WAFDis sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13234,6 +13249,9 @@ func awsAwsjson11_deserializeDocumentWAFDisallowedNameException(v **types.WAFDis } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13258,7 +13276,13 @@ func awsAwsjson11_deserializeDocumentWAFEntityMigrationException(v **types.WAFEn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13292,6 +13316,9 @@ func awsAwsjson11_deserializeDocumentWAFEntityMigrationException(v **types.WAFEn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13316,7 +13343,13 @@ func awsAwsjson11_deserializeDocumentWAFInternalErrorException(v **types.WAFInte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13332,6 +13365,9 @@ func awsAwsjson11_deserializeDocumentWAFInternalErrorException(v **types.WAFInte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13356,13 +13392,22 @@ func awsAwsjson11_deserializeDocumentWAFInvalidAccountException(v **types.WAFInv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13387,7 +13432,13 @@ func awsAwsjson11_deserializeDocumentWAFInvalidOperationException(v **types.WAFI sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13403,6 +13454,9 @@ func awsAwsjson11_deserializeDocumentWAFInvalidOperationException(v **types.WAFI } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13427,7 +13481,13 @@ func awsAwsjson11_deserializeDocumentWAFInvalidParameterException(v **types.WAFI sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "field": if value != nil { @@ -13461,6 +13521,9 @@ func awsAwsjson11_deserializeDocumentWAFInvalidParameterException(v **types.WAFI } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13485,7 +13548,13 @@ func awsAwsjson11_deserializeDocumentWAFInvalidPermissionPolicyException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13501,6 +13570,9 @@ func awsAwsjson11_deserializeDocumentWAFInvalidPermissionPolicyException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13525,7 +13597,13 @@ func awsAwsjson11_deserializeDocumentWAFInvalidRegexPatternException(v **types.W sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13541,6 +13619,9 @@ func awsAwsjson11_deserializeDocumentWAFInvalidRegexPatternException(v **types.W } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13565,7 +13646,13 @@ func awsAwsjson11_deserializeDocumentWAFLimitsExceededException(v **types.WAFLim sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13581,6 +13668,9 @@ func awsAwsjson11_deserializeDocumentWAFLimitsExceededException(v **types.WAFLim } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13605,7 +13695,13 @@ func awsAwsjson11_deserializeDocumentWAFNonEmptyEntityException(v **types.WAFNon sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13621,6 +13717,9 @@ func awsAwsjson11_deserializeDocumentWAFNonEmptyEntityException(v **types.WAFNon } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13645,7 +13744,13 @@ func awsAwsjson11_deserializeDocumentWAFNonexistentContainerException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13661,6 +13766,9 @@ func awsAwsjson11_deserializeDocumentWAFNonexistentContainerException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13685,7 +13793,13 @@ func awsAwsjson11_deserializeDocumentWAFNonexistentItemException(v **types.WAFNo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13701,6 +13815,9 @@ func awsAwsjson11_deserializeDocumentWAFNonexistentItemException(v **types.WAFNo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13765,7 +13882,13 @@ func awsAwsjson11_deserializeDocumentWAFReferencedItemException(v **types.WAFRef sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13781,6 +13904,9 @@ func awsAwsjson11_deserializeDocumentWAFReferencedItemException(v **types.WAFRef } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13805,7 +13931,13 @@ func awsAwsjson11_deserializeDocumentWAFServiceLinkedRoleErrorException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13821,6 +13953,9 @@ func awsAwsjson11_deserializeDocumentWAFServiceLinkedRoleErrorException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13845,7 +13980,13 @@ func awsAwsjson11_deserializeDocumentWAFStaleDataException(v **types.WAFStaleDat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13861,6 +14002,9 @@ func awsAwsjson11_deserializeDocumentWAFStaleDataException(v **types.WAFStaleDat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13885,7 +14029,13 @@ func awsAwsjson11_deserializeDocumentWAFSubscriptionNotFoundException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13901,6 +14051,9 @@ func awsAwsjson11_deserializeDocumentWAFSubscriptionNotFoundException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13925,7 +14078,13 @@ func awsAwsjson11_deserializeDocumentWAFTagOperationException(v **types.WAFTagOp sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13941,6 +14100,9 @@ func awsAwsjson11_deserializeDocumentWAFTagOperationException(v **types.WAFTagOp } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13965,7 +14127,13 @@ func awsAwsjson11_deserializeDocumentWAFTagOperationInternalErrorException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13981,6 +14149,9 @@ func awsAwsjson11_deserializeDocumentWAFTagOperationInternalErrorException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/wafregional/deserializers.go b/service/wafregional/deserializers.go index 9f2fd19d769..99dfa834596 100644 --- a/service/wafregional/deserializers.go +++ b/service/wafregional/deserializers.go @@ -13735,7 +13735,13 @@ func awsAwsjson11_deserializeDocumentWAFBadRequestException(v **types.WAFBadRequ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13751,6 +13757,9 @@ func awsAwsjson11_deserializeDocumentWAFBadRequestException(v **types.WAFBadRequ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13775,7 +13784,13 @@ func awsAwsjson11_deserializeDocumentWAFDisallowedNameException(v **types.WAFDis sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13791,6 +13806,9 @@ func awsAwsjson11_deserializeDocumentWAFDisallowedNameException(v **types.WAFDis } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13815,7 +13833,13 @@ func awsAwsjson11_deserializeDocumentWAFEntityMigrationException(v **types.WAFEn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13849,6 +13873,9 @@ func awsAwsjson11_deserializeDocumentWAFEntityMigrationException(v **types.WAFEn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13873,7 +13900,13 @@ func awsAwsjson11_deserializeDocumentWAFInternalErrorException(v **types.WAFInte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13889,6 +13922,9 @@ func awsAwsjson11_deserializeDocumentWAFInternalErrorException(v **types.WAFInte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13913,13 +13949,22 @@ func awsAwsjson11_deserializeDocumentWAFInvalidAccountException(v **types.WAFInv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13944,7 +13989,13 @@ func awsAwsjson11_deserializeDocumentWAFInvalidOperationException(v **types.WAFI sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -13960,6 +14011,9 @@ func awsAwsjson11_deserializeDocumentWAFInvalidOperationException(v **types.WAFI } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13984,7 +14038,13 @@ func awsAwsjson11_deserializeDocumentWAFInvalidParameterException(v **types.WAFI sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "field": if value != nil { @@ -14018,6 +14078,9 @@ func awsAwsjson11_deserializeDocumentWAFInvalidParameterException(v **types.WAFI } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14042,7 +14105,13 @@ func awsAwsjson11_deserializeDocumentWAFInvalidPermissionPolicyException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14058,6 +14127,9 @@ func awsAwsjson11_deserializeDocumentWAFInvalidPermissionPolicyException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14082,7 +14154,13 @@ func awsAwsjson11_deserializeDocumentWAFInvalidRegexPatternException(v **types.W sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14098,6 +14176,9 @@ func awsAwsjson11_deserializeDocumentWAFInvalidRegexPatternException(v **types.W } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14122,7 +14203,13 @@ func awsAwsjson11_deserializeDocumentWAFLimitsExceededException(v **types.WAFLim sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14138,6 +14225,9 @@ func awsAwsjson11_deserializeDocumentWAFLimitsExceededException(v **types.WAFLim } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14162,7 +14252,13 @@ func awsAwsjson11_deserializeDocumentWAFNonEmptyEntityException(v **types.WAFNon sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14178,6 +14274,9 @@ func awsAwsjson11_deserializeDocumentWAFNonEmptyEntityException(v **types.WAFNon } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14202,7 +14301,13 @@ func awsAwsjson11_deserializeDocumentWAFNonexistentContainerException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14218,6 +14323,9 @@ func awsAwsjson11_deserializeDocumentWAFNonexistentContainerException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14242,7 +14350,13 @@ func awsAwsjson11_deserializeDocumentWAFNonexistentItemException(v **types.WAFNo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14258,6 +14372,9 @@ func awsAwsjson11_deserializeDocumentWAFNonexistentItemException(v **types.WAFNo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14322,7 +14439,13 @@ func awsAwsjson11_deserializeDocumentWAFReferencedItemException(v **types.WAFRef sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14338,6 +14461,9 @@ func awsAwsjson11_deserializeDocumentWAFReferencedItemException(v **types.WAFRef } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14362,7 +14488,13 @@ func awsAwsjson11_deserializeDocumentWAFServiceLinkedRoleErrorException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14378,6 +14510,9 @@ func awsAwsjson11_deserializeDocumentWAFServiceLinkedRoleErrorException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14402,7 +14537,13 @@ func awsAwsjson11_deserializeDocumentWAFStaleDataException(v **types.WAFStaleDat sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14418,6 +14559,9 @@ func awsAwsjson11_deserializeDocumentWAFStaleDataException(v **types.WAFStaleDat } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14442,7 +14586,13 @@ func awsAwsjson11_deserializeDocumentWAFSubscriptionNotFoundException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14458,6 +14608,9 @@ func awsAwsjson11_deserializeDocumentWAFSubscriptionNotFoundException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14482,7 +14635,13 @@ func awsAwsjson11_deserializeDocumentWAFTagOperationException(v **types.WAFTagOp sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14498,6 +14657,9 @@ func awsAwsjson11_deserializeDocumentWAFTagOperationException(v **types.WAFTagOp } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14522,7 +14684,13 @@ func awsAwsjson11_deserializeDocumentWAFTagOperationInternalErrorException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14538,6 +14706,9 @@ func awsAwsjson11_deserializeDocumentWAFTagOperationInternalErrorException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14562,7 +14733,13 @@ func awsAwsjson11_deserializeDocumentWAFUnavailableEntityException(v **types.WAF sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14578,6 +14755,9 @@ func awsAwsjson11_deserializeDocumentWAFUnavailableEntityException(v **types.WAF } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/wafv2/deserializers.go b/service/wafv2/deserializers.go index 53d4bdf4ca8..e97db0d14bd 100644 --- a/service/wafv2/deserializers.go +++ b/service/wafv2/deserializers.go @@ -15469,7 +15469,13 @@ func awsAwsjson11_deserializeDocumentWAFAssociatedItemException(v **types.WAFAss sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15485,6 +15491,9 @@ func awsAwsjson11_deserializeDocumentWAFAssociatedItemException(v **types.WAFAss } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15509,7 +15518,13 @@ func awsAwsjson11_deserializeDocumentWAFConfigurationWarningException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15525,6 +15540,9 @@ func awsAwsjson11_deserializeDocumentWAFConfigurationWarningException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15549,7 +15567,13 @@ func awsAwsjson11_deserializeDocumentWAFDuplicateItemException(v **types.WAFDupl sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15565,6 +15589,9 @@ func awsAwsjson11_deserializeDocumentWAFDuplicateItemException(v **types.WAFDupl } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15589,7 +15616,13 @@ func awsAwsjson11_deserializeDocumentWAFExpiredManagedRuleGroupVersionException( sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15605,6 +15638,9 @@ func awsAwsjson11_deserializeDocumentWAFExpiredManagedRuleGroupVersionException( } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15629,7 +15665,13 @@ func awsAwsjson11_deserializeDocumentWAFInternalErrorException(v **types.WAFInte sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15645,6 +15687,9 @@ func awsAwsjson11_deserializeDocumentWAFInternalErrorException(v **types.WAFInte } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15669,7 +15714,13 @@ func awsAwsjson11_deserializeDocumentWAFInvalidOperationException(v **types.WAFI sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15685,6 +15736,9 @@ func awsAwsjson11_deserializeDocumentWAFInvalidOperationException(v **types.WAFI } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15709,7 +15763,13 @@ func awsAwsjson11_deserializeDocumentWAFInvalidParameterException(v **types.WAFI sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Field": if value != nil { @@ -15752,6 +15812,9 @@ func awsAwsjson11_deserializeDocumentWAFInvalidParameterException(v **types.WAFI } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15776,7 +15839,13 @@ func awsAwsjson11_deserializeDocumentWAFInvalidPermissionPolicyException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15792,6 +15861,9 @@ func awsAwsjson11_deserializeDocumentWAFInvalidPermissionPolicyException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15816,7 +15888,13 @@ func awsAwsjson11_deserializeDocumentWAFInvalidResourceException(v **types.WAFIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15832,6 +15910,9 @@ func awsAwsjson11_deserializeDocumentWAFInvalidResourceException(v **types.WAFIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15856,7 +15937,13 @@ func awsAwsjson11_deserializeDocumentWAFLimitsExceededException(v **types.WAFLim sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15881,6 +15968,9 @@ func awsAwsjson11_deserializeDocumentWAFLimitsExceededException(v **types.WAFLim } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15905,7 +15995,13 @@ func awsAwsjson11_deserializeDocumentWAFLogDestinationPermissionIssueException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15921,6 +16017,9 @@ func awsAwsjson11_deserializeDocumentWAFLogDestinationPermissionIssueException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15945,7 +16044,13 @@ func awsAwsjson11_deserializeDocumentWAFNonexistentItemException(v **types.WAFNo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15961,6 +16066,9 @@ func awsAwsjson11_deserializeDocumentWAFNonexistentItemException(v **types.WAFNo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15985,7 +16093,13 @@ func awsAwsjson11_deserializeDocumentWAFOptimisticLockException(v **types.WAFOpt sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16001,6 +16115,9 @@ func awsAwsjson11_deserializeDocumentWAFOptimisticLockException(v **types.WAFOpt } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16025,7 +16142,13 @@ func awsAwsjson11_deserializeDocumentWAFServiceLinkedRoleErrorException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16041,6 +16164,9 @@ func awsAwsjson11_deserializeDocumentWAFServiceLinkedRoleErrorException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16065,7 +16191,13 @@ func awsAwsjson11_deserializeDocumentWAFSubscriptionNotFoundException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16081,6 +16213,9 @@ func awsAwsjson11_deserializeDocumentWAFSubscriptionNotFoundException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16105,7 +16240,13 @@ func awsAwsjson11_deserializeDocumentWAFTagOperationException(v **types.WAFTagOp sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16121,6 +16262,9 @@ func awsAwsjson11_deserializeDocumentWAFTagOperationException(v **types.WAFTagOp } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16145,7 +16289,13 @@ func awsAwsjson11_deserializeDocumentWAFTagOperationInternalErrorException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16161,6 +16311,9 @@ func awsAwsjson11_deserializeDocumentWAFTagOperationInternalErrorException(v **t } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16185,7 +16338,13 @@ func awsAwsjson11_deserializeDocumentWAFUnavailableEntityException(v **types.WAF sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16201,6 +16360,9 @@ func awsAwsjson11_deserializeDocumentWAFUnavailableEntityException(v **types.WAF } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16225,7 +16387,13 @@ func awsAwsjson11_deserializeDocumentWAFUnsupportedAggregateKeyTypeException(v * sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16241,6 +16409,9 @@ func awsAwsjson11_deserializeDocumentWAFUnsupportedAggregateKeyTypeException(v * } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/wellarchitected/deserializers.go b/service/wellarchitected/deserializers.go index 1afba73c81a..6573708aad1 100644 --- a/service/wellarchitected/deserializers.go +++ b/service/wellarchitected/deserializers.go @@ -11785,7 +11785,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -11801,6 +11807,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13211,7 +13220,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13245,6 +13260,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13529,7 +13547,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13545,6 +13569,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16282,7 +16309,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16316,6 +16349,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17364,7 +17400,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -17416,6 +17458,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17887,7 +17932,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -17921,6 +17972,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17979,7 +18033,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Fields": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.Fields, value); err != nil { @@ -18009,6 +18069,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/wisdom/deserializers.go b/service/wisdom/deserializers.go index f625a703c65..d53dc6fe7a2 100644 --- a/service/wisdom/deserializers.go +++ b/service/wisdom/deserializers.go @@ -6401,7 +6401,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -6417,6 +6423,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7082,7 +7091,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -7098,6 +7113,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8707,7 +8725,13 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -8723,6 +8747,9 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9876,7 +9903,13 @@ func awsRestjson1_deserializeDocumentRequestTimeoutException(v **types.RequestTi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9892,6 +9925,9 @@ func awsRestjson1_deserializeDocumentRequestTimeoutException(v **types.RequestTi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9916,7 +9952,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9941,6 +9983,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10084,7 +10129,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10100,6 +10151,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10418,7 +10472,13 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10443,6 +10503,9 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10467,7 +10530,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10483,6 +10552,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/workdocs/deserializers.go b/service/workdocs/deserializers.go index 77865a26c29..dbd542dc717 100644 --- a/service/workdocs/deserializers.go +++ b/service/workdocs/deserializers.go @@ -7710,7 +7710,13 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7726,6 +7732,9 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7750,7 +7759,13 @@ func awsRestjson1_deserializeDocumentConflictingOperationException(v **types.Con sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7766,6 +7781,9 @@ func awsRestjson1_deserializeDocumentConflictingOperationException(v **types.Con } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7790,7 +7808,13 @@ func awsRestjson1_deserializeDocumentCustomMetadataLimitExceededException(v **ty sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7806,6 +7830,9 @@ func awsRestjson1_deserializeDocumentCustomMetadataLimitExceededException(v **ty } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7866,7 +7893,13 @@ func awsRestjson1_deserializeDocumentDeactivatingLastSystemUserException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -7891,6 +7924,9 @@ func awsRestjson1_deserializeDocumentDeactivatingLastSystemUserException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7915,7 +7951,13 @@ func awsRestjson1_deserializeDocumentDocumentLockedForCommentsException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7931,6 +7973,9 @@ func awsRestjson1_deserializeDocumentDocumentLockedForCommentsException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8376,7 +8421,13 @@ func awsRestjson1_deserializeDocumentDraftUploadOutOfSyncException(v **types.Dra sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8392,6 +8443,9 @@ func awsRestjson1_deserializeDocumentDraftUploadOutOfSyncException(v **types.Dra } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8416,7 +8470,13 @@ func awsRestjson1_deserializeDocumentEntityAlreadyExistsException(v **types.Enti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8432,6 +8492,9 @@ func awsRestjson1_deserializeDocumentEntityAlreadyExistsException(v **types.Enti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8492,7 +8555,13 @@ func awsRestjson1_deserializeDocumentEntityNotExistsException(v **types.EntityNo sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "EntityIds": if err := awsRestjson1_deserializeDocumentEntityIdList(&sv.EntityIds, value); err != nil { @@ -8513,6 +8582,9 @@ func awsRestjson1_deserializeDocumentEntityNotExistsException(v **types.EntityNo } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8537,7 +8609,13 @@ func awsRestjson1_deserializeDocumentFailedDependencyException(v **types.FailedD sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8553,6 +8631,9 @@ func awsRestjson1_deserializeDocumentFailedDependencyException(v **types.FailedD } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8842,7 +8923,13 @@ func awsRestjson1_deserializeDocumentIllegalUserStateException(v **types.Illegal sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8858,6 +8945,9 @@ func awsRestjson1_deserializeDocumentIllegalUserStateException(v **types.Illegal } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8882,7 +8972,13 @@ func awsRestjson1_deserializeDocumentInvalidArgumentException(v **types.InvalidA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8898,6 +8994,9 @@ func awsRestjson1_deserializeDocumentInvalidArgumentException(v **types.InvalidA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8922,7 +9021,13 @@ func awsRestjson1_deserializeDocumentInvalidCommentOperationException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8938,6 +9043,9 @@ func awsRestjson1_deserializeDocumentInvalidCommentOperationException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8962,7 +9070,13 @@ func awsRestjson1_deserializeDocumentInvalidOperationException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8978,6 +9092,9 @@ func awsRestjson1_deserializeDocumentInvalidOperationException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9002,7 +9119,13 @@ func awsRestjson1_deserializeDocumentInvalidPasswordException(v **types.InvalidP sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9018,6 +9141,9 @@ func awsRestjson1_deserializeDocumentInvalidPasswordException(v **types.InvalidP } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9042,7 +9168,13 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9058,6 +9190,9 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9328,7 +9463,13 @@ func awsRestjson1_deserializeDocumentProhibitedStateException(v **types.Prohibit sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9344,6 +9485,9 @@ func awsRestjson1_deserializeDocumentProhibitedStateException(v **types.Prohibit } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9368,7 +9512,13 @@ func awsRestjson1_deserializeDocumentRequestedEntityTooLargeException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9384,6 +9534,9 @@ func awsRestjson1_deserializeDocumentRequestedEntityTooLargeException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9408,7 +9561,13 @@ func awsRestjson1_deserializeDocumentResourceAlreadyCheckedOutException(v **type sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9424,6 +9583,9 @@ func awsRestjson1_deserializeDocumentResourceAlreadyCheckedOutException(v **type } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9760,7 +9922,13 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9776,6 +9944,9 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9991,7 +10162,13 @@ func awsRestjson1_deserializeDocumentStorageLimitExceededException(v **types.Sto sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10007,6 +10184,9 @@ func awsRestjson1_deserializeDocumentStorageLimitExceededException(v **types.Sto } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10031,7 +10211,13 @@ func awsRestjson1_deserializeDocumentStorageLimitWillExceedException(v **types.S sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10047,6 +10233,9 @@ func awsRestjson1_deserializeDocumentStorageLimitWillExceedException(v **types.S } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10216,7 +10405,13 @@ func awsRestjson1_deserializeDocumentTooManyLabelsException(v **types.TooManyLab sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10232,6 +10427,9 @@ func awsRestjson1_deserializeDocumentTooManyLabelsException(v **types.TooManyLab } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10256,7 +10454,13 @@ func awsRestjson1_deserializeDocumentTooManySubscriptionsException(v **types.Too sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10272,6 +10476,9 @@ func awsRestjson1_deserializeDocumentTooManySubscriptionsException(v **types.Too } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10296,7 +10503,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedOperationException(v **types.Un sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Code": if value != nil { @@ -10321,6 +10534,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedOperationException(v **types.Un } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10345,7 +10561,13 @@ func awsRestjson1_deserializeDocumentUnauthorizedResourceAccessException(v **typ sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -10361,6 +10583,9 @@ func awsRestjson1_deserializeDocumentUnauthorizedResourceAccessException(v **typ } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/workmail/deserializers.go b/service/workmail/deserializers.go index 621f5e65da5..8dc2df85260 100644 --- a/service/workmail/deserializers.go +++ b/service/workmail/deserializers.go @@ -12694,7 +12694,13 @@ func awsAwsjson11_deserializeDocumentDirectoryInUseException(v **types.Directory sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12710,6 +12716,9 @@ func awsAwsjson11_deserializeDocumentDirectoryInUseException(v **types.Directory } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12734,7 +12743,13 @@ func awsAwsjson11_deserializeDocumentDirectoryServiceAuthenticationFailedExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12750,6 +12765,9 @@ func awsAwsjson11_deserializeDocumentDirectoryServiceAuthenticationFailedExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12774,7 +12792,13 @@ func awsAwsjson11_deserializeDocumentDirectoryUnavailableException(v **types.Dir sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12790,6 +12814,9 @@ func awsAwsjson11_deserializeDocumentDirectoryUnavailableException(v **types.Dir } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12906,7 +12933,13 @@ func awsAwsjson11_deserializeDocumentEmailAddressInUseException(v **types.EmailA sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12922,6 +12955,9 @@ func awsAwsjson11_deserializeDocumentEmailAddressInUseException(v **types.EmailA } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12946,7 +12982,13 @@ func awsAwsjson11_deserializeDocumentEntityAlreadyRegisteredException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -12962,6 +13004,9 @@ func awsAwsjson11_deserializeDocumentEntityAlreadyRegisteredException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12986,7 +13031,13 @@ func awsAwsjson11_deserializeDocumentEntityNotFoundException(v **types.EntityNot sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13002,6 +13053,9 @@ func awsAwsjson11_deserializeDocumentEntityNotFoundException(v **types.EntityNot } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13026,7 +13080,13 @@ func awsAwsjson11_deserializeDocumentEntityStateException(v **types.EntityStateE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13042,6 +13102,9 @@ func awsAwsjson11_deserializeDocumentEntityStateException(v **types.EntityStateE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13781,7 +13844,13 @@ func awsAwsjson11_deserializeDocumentInvalidConfigurationException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13797,6 +13866,9 @@ func awsAwsjson11_deserializeDocumentInvalidConfigurationException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13821,7 +13893,13 @@ func awsAwsjson11_deserializeDocumentInvalidCustomSesConfigurationException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13837,6 +13915,9 @@ func awsAwsjson11_deserializeDocumentInvalidCustomSesConfigurationException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13861,7 +13942,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13877,6 +13964,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -13901,7 +13991,13 @@ func awsAwsjson11_deserializeDocumentInvalidPasswordException(v **types.InvalidP sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -13917,6 +14013,9 @@ func awsAwsjson11_deserializeDocumentInvalidPasswordException(v **types.InvalidP } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14051,7 +14150,13 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14067,6 +14172,9 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14221,7 +14329,13 @@ func awsAwsjson11_deserializeDocumentMailDomainInUseException(v **types.MailDoma sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14237,6 +14351,9 @@ func awsAwsjson11_deserializeDocumentMailDomainInUseException(v **types.MailDoma } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14261,7 +14378,13 @@ func awsAwsjson11_deserializeDocumentMailDomainNotFoundException(v **types.MailD sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14277,6 +14400,9 @@ func awsAwsjson11_deserializeDocumentMailDomainNotFoundException(v **types.MailD } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14335,7 +14461,13 @@ func awsAwsjson11_deserializeDocumentMailDomainStateException(v **types.MailDoma sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14351,6 +14483,9 @@ func awsAwsjson11_deserializeDocumentMailDomainStateException(v **types.MailDoma } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14946,7 +15081,13 @@ func awsAwsjson11_deserializeDocumentNameAvailabilityException(v **types.NameAva sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -14962,6 +15103,9 @@ func awsAwsjson11_deserializeDocumentNameAvailabilityException(v **types.NameAva } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14986,7 +15130,13 @@ func awsAwsjson11_deserializeDocumentOrganizationNotFoundException(v **types.Org sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15002,6 +15152,9 @@ func awsAwsjson11_deserializeDocumentOrganizationNotFoundException(v **types.Org } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15026,7 +15179,13 @@ func awsAwsjson11_deserializeDocumentOrganizationStateException(v **types.Organi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15042,6 +15201,9 @@ func awsAwsjson11_deserializeDocumentOrganizationStateException(v **types.Organi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15583,7 +15745,13 @@ func awsAwsjson11_deserializeDocumentReservedNameException(v **types.ReservedNam sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15599,6 +15767,9 @@ func awsAwsjson11_deserializeDocumentReservedNameException(v **types.ReservedNam } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15774,7 +15945,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15790,6 +15967,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15967,7 +16147,13 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -15983,6 +16169,9 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16007,7 +16196,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -16023,6 +16218,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/workmailmessageflow/deserializers.go b/service/workmailmessageflow/deserializers.go index ba34f7cd2d7..41434120c6f 100644 --- a/service/workmailmessageflow/deserializers.go +++ b/service/workmailmessageflow/deserializers.go @@ -392,7 +392,13 @@ func awsRestjson1_deserializeDocumentInvalidContentLocation(v **types.InvalidCon sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -408,6 +414,9 @@ func awsRestjson1_deserializeDocumentInvalidContentLocation(v **types.InvalidCon } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -432,7 +441,13 @@ func awsRestjson1_deserializeDocumentMessageFrozen(v **types.MessageFrozen, valu sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -448,6 +463,9 @@ func awsRestjson1_deserializeDocumentMessageFrozen(v **types.MessageFrozen, valu } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -472,7 +490,13 @@ func awsRestjson1_deserializeDocumentMessageRejected(v **types.MessageRejected, sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -488,6 +512,9 @@ func awsRestjson1_deserializeDocumentMessageRejected(v **types.MessageRejected, } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -512,7 +539,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -528,6 +561,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/workspaces/deserializers.go b/service/workspaces/deserializers.go index f6c00ab9338..e13f5c5a5a7 100644 --- a/service/workspaces/deserializers.go +++ b/service/workspaces/deserializers.go @@ -11388,7 +11388,13 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11404,6 +11410,9 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11704,13 +11713,22 @@ func awsAwsjson11_deserializeDocumentApplicationNotSupportedException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12448,13 +12466,22 @@ func awsAwsjson11_deserializeDocumentComputeNotCompatibleException(v **types.Com sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12519,7 +12546,13 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12535,6 +12568,9 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14026,13 +14062,22 @@ func awsAwsjson11_deserializeDocumentIncompatibleApplicationsException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14057,7 +14102,13 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14073,6 +14124,9 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14097,7 +14151,13 @@ func awsAwsjson11_deserializeDocumentInvalidParameterValuesException(v **types.I sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14113,6 +14173,9 @@ func awsAwsjson11_deserializeDocumentInvalidParameterValuesException(v **types.I } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14137,7 +14200,13 @@ func awsAwsjson11_deserializeDocumentInvalidResourceStateException(v **types.Inv sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14153,6 +14222,9 @@ func awsAwsjson11_deserializeDocumentInvalidResourceStateException(v **types.Inv } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14679,13 +14751,22 @@ func awsAwsjson11_deserializeDocumentOperatingSystemNotCompatibleException(v **t sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { default: _, _ = key, value } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14710,7 +14791,13 @@ func awsAwsjson11_deserializeDocumentOperationInProgressException(v **types.Oper sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14726,6 +14813,9 @@ func awsAwsjson11_deserializeDocumentOperationInProgressException(v **types.Oper } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -14750,7 +14840,13 @@ func awsAwsjson11_deserializeDocumentOperationNotSupportedException(v **types.Op sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -14775,6 +14871,9 @@ func awsAwsjson11_deserializeDocumentOperationNotSupportedException(v **types.Op } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15037,7 +15136,13 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15053,6 +15158,9 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15077,7 +15185,13 @@ func awsAwsjson11_deserializeDocumentResourceAssociatedException(v **types.Resou sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15093,6 +15207,9 @@ func awsAwsjson11_deserializeDocumentResourceAssociatedException(v **types.Resou } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15117,7 +15234,13 @@ func awsAwsjson11_deserializeDocumentResourceCreationFailedException(v **types.R sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15133,6 +15256,9 @@ func awsAwsjson11_deserializeDocumentResourceCreationFailedException(v **types.R } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15157,7 +15283,13 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15182,6 +15314,9 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15206,7 +15341,13 @@ func awsAwsjson11_deserializeDocumentResourceLimitExceededException(v **types.Re sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15222,6 +15363,9 @@ func awsAwsjson11_deserializeDocumentResourceLimitExceededException(v **types.Re } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15246,7 +15390,13 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15271,6 +15421,9 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -15295,7 +15448,13 @@ func awsAwsjson11_deserializeDocumentResourceUnavailableException(v **types.Reso sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -15320,6 +15479,9 @@ func awsAwsjson11_deserializeDocumentResourceUnavailableException(v **types.Reso } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16092,7 +16254,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedNetworkConfigurationException(v sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16108,6 +16276,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedNetworkConfigurationException(v } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16132,7 +16303,13 @@ func awsAwsjson11_deserializeDocumentUnsupportedWorkspaceConfigurationException( sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16148,6 +16325,9 @@ func awsAwsjson11_deserializeDocumentUnsupportedWorkspaceConfigurationException( } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -16357,7 +16537,13 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -16373,6 +16559,9 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -17891,7 +18080,13 @@ func awsAwsjson11_deserializeDocumentWorkspacesDefaultRoleNotFoundException(v ** sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -17907,6 +18102,9 @@ func awsAwsjson11_deserializeDocumentWorkspacesDefaultRoleNotFoundException(v ** } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/workspacesthinclient/deserializers.go b/service/workspacesthinclient/deserializers.go index ab789a5836a..55378c3e046 100644 --- a/service/workspacesthinclient/deserializers.go +++ b/service/workspacesthinclient/deserializers.go @@ -2621,7 +2621,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2637,6 +2643,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -2661,7 +2670,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -2695,6 +2710,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3681,7 +3699,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3710,6 +3734,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3840,7 +3867,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3874,6 +3907,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -3898,7 +3934,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -3950,6 +3992,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4335,7 +4380,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -4382,6 +4433,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -4406,7 +4460,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -4436,6 +4496,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/workspacesweb/deserializers.go b/service/workspacesweb/deserializers.go index e8b4fc92462..a0b1efedc18 100644 --- a/service/workspacesweb/deserializers.go +++ b/service/workspacesweb/deserializers.go @@ -9596,7 +9596,13 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -9612,6 +9618,9 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10041,7 +10050,13 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10075,6 +10090,9 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -10459,7 +10477,13 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -10488,6 +10512,9 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11413,7 +11440,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11447,6 +11480,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11507,7 +11543,13 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11559,6 +11601,9 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -11939,7 +11984,13 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -11986,6 +12037,9 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12010,7 +12064,13 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "message": if value != nil { @@ -12035,6 +12095,9 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -12618,7 +12681,13 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "fieldList": if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { @@ -12648,6 +12717,9 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } diff --git a/service/xray/deserializers.go b/service/xray/deserializers.go index 76f44976cf0..4c319f9555f 100644 --- a/service/xray/deserializers.go +++ b/service/xray/deserializers.go @@ -7589,7 +7589,13 @@ func awsRestjson1_deserializeDocumentInvalidPolicyRevisionIdException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7605,6 +7611,9 @@ func awsRestjson1_deserializeDocumentInvalidPolicyRevisionIdException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7629,7 +7638,13 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7645,6 +7660,9 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7669,7 +7687,13 @@ func awsRestjson1_deserializeDocumentLockoutPreventionException(v **types.Lockou sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7685,6 +7709,9 @@ func awsRestjson1_deserializeDocumentLockoutPreventionException(v **types.Lockou } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7709,7 +7736,13 @@ func awsRestjson1_deserializeDocumentMalformedPolicyDocumentException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7725,6 +7758,9 @@ func awsRestjson1_deserializeDocumentMalformedPolicyDocumentException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7749,7 +7785,13 @@ func awsRestjson1_deserializeDocumentPolicyCountLimitExceededException(v **types sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7765,6 +7807,9 @@ func awsRestjson1_deserializeDocumentPolicyCountLimitExceededException(v **types } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7789,7 +7834,13 @@ func awsRestjson1_deserializeDocumentPolicySizeLimitExceededException(v **types. sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7805,6 +7856,9 @@ func awsRestjson1_deserializeDocumentPolicySizeLimitExceededException(v **types. } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -7939,7 +7993,13 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -7964,6 +8024,9 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -8486,7 +8549,13 @@ func awsRestjson1_deserializeDocumentRuleLimitExceededException(v **types.RuleLi sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -8502,6 +8571,9 @@ func awsRestjson1_deserializeDocumentRuleLimitExceededException(v **types.RuleLi } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9668,7 +9740,13 @@ func awsRestjson1_deserializeDocumentThrottledException(v **types.ThrottledExcep sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9684,6 +9762,9 @@ func awsRestjson1_deserializeDocumentThrottledException(v **types.ThrottledExcep } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil } @@ -9809,7 +9890,13 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE sv = *v } + var errorMessage string for key, value := range shape { + keyLower := strings.ToLower(key) + if keyLower == "message" { + errorMessage = value.(string) + continue + } switch key { case "Message": if value != nil { @@ -9834,6 +9921,9 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE } } + if errorMessage != "" { + sv.Message = &errorMessage + } *v = sv return nil }