diff --git a/internal/protocoltest/awsrestjson/types/errors.go b/internal/protocoltest/awsrestjson/types/errors.go index 6cd88ab32b9..bf19ebae74b 100644 --- a/internal/protocoltest/awsrestjson/types/errors.go +++ b/internal/protocoltest/awsrestjson/types/errors.go @@ -30,7 +30,7 @@ func (e *ComplexError) ErrorMessage() string { return *e.Message } func (e *ComplexError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ComplexError" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *FooError) ErrorMessage() string { return *e.Message } func (e *FooError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FooError" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *InvalidGreeting) ErrorMessage() string { return *e.Message } func (e *InvalidGreeting) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidGreeting" } return *e.ErrorCodeOverride diff --git a/internal/protocoltest/ec2query/types/errors.go b/internal/protocoltest/ec2query/types/errors.go index c6bbc63725e..c5ec4c022ca 100644 --- a/internal/protocoltest/ec2query/types/errors.go +++ b/internal/protocoltest/ec2query/types/errors.go @@ -29,7 +29,7 @@ func (e *ComplexError) ErrorMessage() string { return *e.Message } func (e *ComplexError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ComplexError" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *InvalidGreeting) ErrorMessage() string { return *e.Message } func (e *InvalidGreeting) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidGreeting" } return *e.ErrorCodeOverride diff --git a/internal/protocoltest/jsonrpc/types/errors.go b/internal/protocoltest/jsonrpc/types/errors.go index 8ab90b2ea04..f1e3bcfc9ba 100644 --- a/internal/protocoltest/jsonrpc/types/errors.go +++ b/internal/protocoltest/jsonrpc/types/errors.go @@ -29,7 +29,7 @@ func (e *ComplexError) ErrorMessage() string { return *e.Message } func (e *ComplexError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ComplexError" } return *e.ErrorCodeOverride @@ -61,7 +61,7 @@ func (e *ErrorWithMembers) ErrorMessage() string { return *e.Message } func (e *ErrorWithMembers) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ErrorWithMembers" } return *e.ErrorCodeOverride @@ -86,7 +86,7 @@ func (e *ErrorWithoutMembers) ErrorMessage() string { return *e.Message } func (e *ErrorWithoutMembers) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ErrorWithoutMembers" } return *e.ErrorCodeOverride @@ -113,7 +113,7 @@ func (e *FooError) ErrorMessage() string { return *e.Message } func (e *FooError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FooError" } return *e.ErrorCodeOverride @@ -139,7 +139,7 @@ func (e *InvalidGreeting) ErrorMessage() string { return *e.Message } func (e *InvalidGreeting) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidGreeting" } return *e.ErrorCodeOverride diff --git a/internal/protocoltest/jsonrpc10/types/errors.go b/internal/protocoltest/jsonrpc10/types/errors.go index ad5a769bd5e..1646c81977d 100644 --- a/internal/protocoltest/jsonrpc10/types/errors.go +++ b/internal/protocoltest/jsonrpc10/types/errors.go @@ -29,7 +29,7 @@ func (e *ComplexError) ErrorMessage() string { return *e.Message } func (e *ComplexError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ComplexError" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *FooError) ErrorMessage() string { return *e.Message } func (e *FooError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FooError" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InvalidGreeting) ErrorMessage() string { return *e.Message } func (e *InvalidGreeting) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidGreeting" } return *e.ErrorCodeOverride diff --git a/internal/protocoltest/query/types/errors.go b/internal/protocoltest/query/types/errors.go index 7b41a08334f..66e364ceb70 100644 --- a/internal/protocoltest/query/types/errors.go +++ b/internal/protocoltest/query/types/errors.go @@ -29,7 +29,7 @@ func (e *ComplexError) ErrorMessage() string { return *e.Message } func (e *ComplexError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ComplexError" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *CustomCodeError) ErrorMessage() string { return *e.Message } func (e *CustomCodeError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "Customized" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *InvalidGreeting) ErrorMessage() string { return *e.Message } func (e *InvalidGreeting) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidGreeting" } return *e.ErrorCodeOverride diff --git a/internal/protocoltest/restxml/types/errors.go b/internal/protocoltest/restxml/types/errors.go index f02dd6e8686..b36241acac6 100644 --- a/internal/protocoltest/restxml/types/errors.go +++ b/internal/protocoltest/restxml/types/errors.go @@ -30,7 +30,7 @@ func (e *ComplexError) ErrorMessage() string { return *e.Message } func (e *ComplexError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ComplexError" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *InvalidGreeting) ErrorMessage() string { return *e.Message } func (e *InvalidGreeting) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidGreeting" } return *e.ErrorCodeOverride diff --git a/service/accessanalyzer/types/errors.go b/service/accessanalyzer/types/errors.go index d89368b19c1..637017efe6f 100644 --- a/service/accessanalyzer/types/errors.go +++ b/service/accessanalyzer/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -112,7 +112,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -141,7 +141,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -169,7 +169,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -198,7 +198,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/account/types/errors.go b/service/account/types/errors.go index 1126f74125f..b05e7963fdc 100644 --- a/service/account/types/errors.go +++ b/service/account/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -164,7 +164,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/acm/types/errors.go b/service/acm/types/errors.go index 576de9cb9fe..c7804217171 100644 --- a/service/acm/types/errors.go +++ b/service/acm/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *InvalidArgsException) ErrorMessage() string { return *e.Message } func (e *InvalidArgsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArgsException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *InvalidArnException) ErrorMessage() string { return *e.Message } func (e *InvalidArnException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArnException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *InvalidDomainValidationOptionsException) ErrorMessage() string { return *e.Message } func (e *InvalidDomainValidationOptionsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDomainValidationOptionsException" } return *e.ErrorCodeOverride @@ -159,7 +159,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -185,7 +185,7 @@ func (e *InvalidStateException) ErrorMessage() string { return *e.Message } func (e *InvalidStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidStateException" } return *e.ErrorCodeOverride @@ -212,7 +212,7 @@ func (e *InvalidTagException) ErrorMessage() string { return *e.Message } func (e *InvalidTagException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTagException" } return *e.ErrorCodeOverride @@ -238,7 +238,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -265,7 +265,7 @@ func (e *RequestInProgressException) ErrorMessage() string { return *e.Message } func (e *RequestInProgressException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestInProgressException" } return *e.ErrorCodeOverride @@ -292,7 +292,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -319,7 +319,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -345,7 +345,7 @@ func (e *TagPolicyException) ErrorMessage() string { return *e.Message } func (e *TagPolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagPolicyException" } return *e.ErrorCodeOverride @@ -371,7 +371,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -397,7 +397,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -424,7 +424,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/acmpca/types/errors.go b/service/acmpca/types/errors.go index 7acf435bc4a..31cf11438bb 100644 --- a/service/acmpca/types/errors.go +++ b/service/acmpca/types/errors.go @@ -27,7 +27,7 @@ func (e *CertificateMismatchException) ErrorMessage() string { return *e.Message } func (e *CertificateMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CertificateMismatchException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *InvalidArgsException) ErrorMessage() string { return *e.Message } func (e *InvalidArgsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArgsException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *InvalidArnException) ErrorMessage() string { return *e.Message } func (e *InvalidArnException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArnException" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *InvalidPolicyException) ErrorMessage() string { return *e.Message } func (e *InvalidPolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPolicyException" } return *e.ErrorCodeOverride @@ -188,7 +188,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -214,7 +214,7 @@ func (e *InvalidStateException) ErrorMessage() string { return *e.Message } func (e *InvalidStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidStateException" } return *e.ErrorCodeOverride @@ -241,7 +241,7 @@ func (e *InvalidTagException) ErrorMessage() string { return *e.Message } func (e *InvalidTagException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTagException" } return *e.ErrorCodeOverride @@ -268,7 +268,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -296,7 +296,7 @@ func (e *LockoutPreventedException) ErrorMessage() string { return *e.Message } func (e *LockoutPreventedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LockoutPreventedException" } return *e.ErrorCodeOverride @@ -322,7 +322,7 @@ func (e *MalformedCertificateException) ErrorMessage() string { return *e.Message } func (e *MalformedCertificateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MalformedCertificateException" } return *e.ErrorCodeOverride @@ -348,7 +348,7 @@ func (e *MalformedCSRException) ErrorMessage() string { return *e.Message } func (e *MalformedCSRException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MalformedCSRException" } return *e.ErrorCodeOverride @@ -374,7 +374,7 @@ func (e *PermissionAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *PermissionAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PermissionAlreadyExistsException" } return *e.ErrorCodeOverride @@ -400,7 +400,7 @@ func (e *RequestAlreadyProcessedException) ErrorMessage() string { return *e.Message } func (e *RequestAlreadyProcessedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestAlreadyProcessedException" } return *e.ErrorCodeOverride @@ -426,7 +426,7 @@ func (e *RequestFailedException) ErrorMessage() string { return *e.Message } func (e *RequestFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestFailedException" } return *e.ErrorCodeOverride @@ -452,7 +452,7 @@ func (e *RequestInProgressException) ErrorMessage() string { return *e.Message } func (e *RequestInProgressException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestInProgressException" } return *e.ErrorCodeOverride @@ -479,7 +479,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -506,7 +506,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride diff --git a/service/alexaforbusiness/types/errors.go b/service/alexaforbusiness/types/errors.go index 4f00723b21b..73475d5ce03 100644 --- a/service/alexaforbusiness/types/errors.go +++ b/service/alexaforbusiness/types/errors.go @@ -26,7 +26,7 @@ func (e *AlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *AlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AlreadyExistsException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *DeviceNotRegisteredException) ErrorMessage() string { return *e.Message } func (e *DeviceNotRegisteredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeviceNotRegisteredException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *InvalidCertificateAuthorityException) ErrorMessage() string { return *e.Message } func (e *InvalidCertificateAuthorityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCertificateAuthorityException" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *InvalidDeviceException) ErrorMessage() string { return *e.Message } func (e *InvalidDeviceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDeviceException" } return *e.ErrorCodeOverride @@ -159,7 +159,7 @@ func (e *InvalidSecretsManagerResourceException) ErrorMessage() string { return *e.Message } func (e *InvalidSecretsManagerResourceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSecretsManagerResourceException" } return *e.ErrorCodeOverride @@ -187,7 +187,7 @@ func (e *InvalidServiceLinkedRoleStateException) ErrorMessage() string { return *e.Message } func (e *InvalidServiceLinkedRoleStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidServiceLinkedRoleStateException" } return *e.ErrorCodeOverride @@ -215,7 +215,7 @@ func (e *InvalidUserStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidUserStatusException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidUserStatusException" } return *e.ErrorCodeOverride @@ -241,7 +241,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -267,7 +267,7 @@ func (e *NameInUseException) ErrorMessage() string { return *e.Message } func (e *NameInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NameInUseException" } return *e.ErrorCodeOverride @@ -293,7 +293,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -319,7 +319,7 @@ func (e *ResourceAssociatedException) ErrorMessage() string { return *e.Message } func (e *ResourceAssociatedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAssociatedException" } return *e.ErrorCodeOverride @@ -347,7 +347,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -373,7 +373,7 @@ func (e *SkillNotLinkedException) ErrorMessage() string { return *e.Message } func (e *SkillNotLinkedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SkillNotLinkedException" } return *e.ErrorCodeOverride @@ -400,7 +400,7 @@ func (e *UnauthorizedException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedException" } return *e.ErrorCodeOverride diff --git a/service/amp/types/errors.go b/service/amp/types/errors.go index 48fd209c757..8fc23fdd361 100644 --- a/service/amp/types/errors.go +++ b/service/amp/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -112,7 +112,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -143,7 +143,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -173,7 +173,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -202,7 +202,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/amplify/types/errors.go b/service/amplify/types/errors.go index 57fcff854a6..bc14f1a0a0c 100644 --- a/service/amplify/types/errors.go +++ b/service/amplify/types/errors.go @@ -26,7 +26,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *DependentServiceFailureException) ErrorMessage() string { return *e.Message } func (e *DependentServiceFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DependentServiceFailureException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InternalFailureException) ErrorMessage() string { return *e.Message } func (e *InternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailureException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -158,7 +158,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -184,7 +184,7 @@ func (e *UnauthorizedException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedException" } return *e.ErrorCodeOverride diff --git a/service/amplifybackend/types/errors.go b/service/amplifybackend/types/errors.go index 7a122fd6411..78153643503 100644 --- a/service/amplifybackend/types/errors.go +++ b/service/amplifybackend/types/errors.go @@ -26,7 +26,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *GatewayTimeoutException) ErrorMessage() string { return *e.Message } func (e *GatewayTimeoutException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GatewayTimeoutException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride diff --git a/service/amplifyuibuilder/types/errors.go b/service/amplifyuibuilder/types/errors.go index c898aea6d28..c4abb511819 100644 --- a/service/amplifyuibuilder/types/errors.go +++ b/service/amplifyuibuilder/types/errors.go @@ -26,7 +26,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ResourceConflictException) ErrorMessage() string { return *e.Message } func (e *ResourceConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceConflictException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -132,7 +132,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -158,7 +158,7 @@ func (e *UnauthorizedException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedException" } return *e.ErrorCodeOverride diff --git a/service/apigateway/types/errors.go b/service/apigateway/types/errors.go index 1709f433456..6cb3d9146bf 100644 --- a/service/apigateway/types/errors.go +++ b/service/apigateway/types/errors.go @@ -27,7 +27,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -137,7 +137,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -166,7 +166,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -192,7 +192,7 @@ func (e *UnauthorizedException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedException" } return *e.ErrorCodeOverride diff --git a/service/apigatewaymanagementapi/types/errors.go b/service/apigatewaymanagementapi/types/errors.go index 8fc693d81f2..e19dd3addbd 100644 --- a/service/apigatewaymanagementapi/types/errors.go +++ b/service/apigatewaymanagementapi/types/errors.go @@ -26,7 +26,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *GoneException) ErrorMessage() string { return *e.Message } func (e *GoneException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GoneException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *PayloadTooLargeException) ErrorMessage() string { return *e.Message } func (e *PayloadTooLargeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PayloadTooLargeException" } return *e.ErrorCodeOverride diff --git a/service/apigatewayv2/types/errors.go b/service/apigatewayv2/types/errors.go index bded1880d05..9ee51572fa3 100644 --- a/service/apigatewayv2/types/errors.go +++ b/service/apigatewayv2/types/errors.go @@ -25,7 +25,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -109,7 +109,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -137,7 +137,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride diff --git a/service/appconfig/types/errors.go b/service/appconfig/types/errors.go index 52a154c1ca7..a3dcf568f20 100644 --- a/service/appconfig/types/errors.go +++ b/service/appconfig/types/errors.go @@ -30,7 +30,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -113,7 +113,7 @@ func (e *PayloadTooLargeException) ErrorMessage() string { return *e.Message } func (e *PayloadTooLargeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PayloadTooLargeException" } return *e.ErrorCodeOverride @@ -141,7 +141,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -168,7 +168,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride diff --git a/service/appconfigdata/types/errors.go b/service/appconfigdata/types/errors.go index 30269cd96d9..af1fa9924c5 100644 --- a/service/appconfigdata/types/errors.go +++ b/service/appconfigdata/types/errors.go @@ -29,7 +29,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -110,7 +110,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride diff --git a/service/appflow/types/errors.go b/service/appflow/types/errors.go index da11b1cfe77..656175c71c5 100644 --- a/service/appflow/types/errors.go +++ b/service/appflow/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *ConnectorAuthenticationException) ErrorMessage() string { return *e.Message } func (e *ConnectorAuthenticationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConnectorAuthenticationException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *ConnectorServerException) ErrorMessage() string { return *e.Message } func (e *ConnectorServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConnectorServerException" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -160,7 +160,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -187,7 +187,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -214,7 +214,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -240,7 +240,7 @@ func (e *UnsupportedOperationException) ErrorMessage() string { return *e.Message } func (e *UnsupportedOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedOperationException" } return *e.ErrorCodeOverride @@ -266,7 +266,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/appintegrations/types/errors.go b/service/appintegrations/types/errors.go index 95f902b30ef..9c2391cfb0f 100644 --- a/service/appintegrations/types/errors.go +++ b/service/appintegrations/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *DuplicateResourceException) ErrorMessage() string { return *e.Message } func (e *DuplicateResourceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateResourceException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InternalServiceError) ErrorMessage() string { return *e.Message } func (e *InternalServiceError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceError" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *ResourceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceQuotaExceededException" } return *e.ErrorCodeOverride @@ -182,7 +182,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride diff --git a/service/applicationautoscaling/types/errors.go b/service/applicationautoscaling/types/errors.go index 7751227f32c..30444478919 100644 --- a/service/applicationautoscaling/types/errors.go +++ b/service/applicationautoscaling/types/errors.go @@ -27,7 +27,7 @@ func (e *ConcurrentUpdateException) ErrorMessage() string { return *e.Message } func (e *ConcurrentUpdateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentUpdateException" } return *e.ErrorCodeOverride @@ -58,7 +58,7 @@ func (e *FailedResourceAccessException) ErrorMessage() string { return *e.Message } func (e *FailedResourceAccessException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FailedResourceAccessException" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *InternalServiceException) ErrorMessage() string { return *e.Message } func (e *InternalServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceException" } return *e.ErrorCodeOverride @@ -110,7 +110,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -138,7 +138,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -168,7 +168,7 @@ func (e *ObjectNotFoundException) ErrorMessage() string { return *e.Message } func (e *ObjectNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ObjectNotFoundException" } return *e.ErrorCodeOverride @@ -195,7 +195,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/applicationcostprofiler/types/errors.go b/service/applicationcostprofiler/types/errors.go index ae5b1108faa..d619c2d074c 100644 --- a/service/applicationcostprofiler/types/errors.go +++ b/service/applicationcostprofiler/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/applicationdiscoveryservice/types/errors.go b/service/applicationdiscoveryservice/types/errors.go index a48b8cfc6ae..12d775e5a5a 100644 --- a/service/applicationdiscoveryservice/types/errors.go +++ b/service/applicationdiscoveryservice/types/errors.go @@ -27,7 +27,7 @@ func (e *AuthorizationErrorException) ErrorMessage() string { return *e.Message } func (e *AuthorizationErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AuthorizationErrorException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ConflictErrorException) ErrorMessage() string { return *e.Message } func (e *ConflictErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictErrorException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *HomeRegionNotSetException) ErrorMessage() string { return *e.Message } func (e *HomeRegionNotSetException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HomeRegionNotSetException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *InvalidParameterValueException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterValueException" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *OperationNotPermittedException) ErrorMessage() string { return *e.Message } func (e *OperationNotPermittedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationNotPermittedException" } return *e.ErrorCodeOverride @@ -187,7 +187,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -214,7 +214,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -240,7 +240,7 @@ func (e *ServerInternalErrorException) ErrorMessage() string { return *e.Message } func (e *ServerInternalErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServerInternalErrorException" } return *e.ErrorCodeOverride diff --git a/service/applicationinsights/types/errors.go b/service/applicationinsights/types/errors.go index dfd904e1507..05d92c74d24 100644 --- a/service/applicationinsights/types/errors.go +++ b/service/applicationinsights/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *TagsAlreadyExistException) ErrorMessage() string { return *e.Message } func (e *TagsAlreadyExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagsAlreadyExistException" } return *e.ErrorCodeOverride @@ -185,7 +185,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -211,7 +211,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/appmesh/types/errors.go b/service/appmesh/types/errors.go index aec44a1a930..506ed1ca219 100644 --- a/service/appmesh/types/errors.go +++ b/service/appmesh/types/errors.go @@ -26,7 +26,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *InternalServerErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServerErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerErrorException" } return *e.ErrorCodeOverride @@ -136,7 +136,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -215,7 +215,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -243,7 +243,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -271,7 +271,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride diff --git a/service/apprunner/types/errors.go b/service/apprunner/types/errors.go index 257cadaaf6c..6e8e84f3879 100644 --- a/service/apprunner/types/errors.go +++ b/service/apprunner/types/errors.go @@ -26,7 +26,7 @@ func (e *InternalServiceErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServiceErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceErrorException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *InvalidStateException) ErrorMessage() string { return *e.Message } func (e *InvalidStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidStateException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride diff --git a/service/appstream/types/errors.go b/service/appstream/types/errors.go index 27be3cb7d44..796ce7810d5 100644 --- a/service/appstream/types/errors.go +++ b/service/appstream/types/errors.go @@ -26,7 +26,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *EntitlementAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *EntitlementAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EntitlementAlreadyExistsException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *EntitlementNotFoundException) ErrorMessage() string { return *e.Message } func (e *EntitlementNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EntitlementNotFoundException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *IncompatibleImageException) ErrorMessage() string { return *e.Message } func (e *IncompatibleImageException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IncompatibleImageException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *InvalidAccountStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidAccountStatusException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAccountStatusException" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterCombinationException" } return *e.ErrorCodeOverride @@ -185,7 +185,7 @@ func (e *InvalidRoleException) ErrorMessage() string { return *e.Message } func (e *InvalidRoleException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRoleException" } return *e.ErrorCodeOverride @@ -211,7 +211,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -237,7 +237,7 @@ func (e *OperationNotPermittedException) ErrorMessage() string { return *e.Message } func (e *OperationNotPermittedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationNotPermittedException" } return *e.ErrorCodeOverride @@ -264,7 +264,7 @@ func (e *RequestLimitExceededException) ErrorMessage() string { return *e.Message } func (e *RequestLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestLimitExceededException" } return *e.ErrorCodeOverride @@ -290,7 +290,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -316,7 +316,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -342,7 +342,7 @@ func (e *ResourceNotAvailableException) ErrorMessage() string { return *e.Message } func (e *ResourceNotAvailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotAvailableException" } return *e.ErrorCodeOverride @@ -368,7 +368,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/appsync/types/errors.go b/service/appsync/types/errors.go index ecdb2840507..ab032791efd 100644 --- a/service/appsync/types/errors.go +++ b/service/appsync/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ApiKeyLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ApiKeyLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ApiKeyLimitExceededException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *ApiKeyValidityOutOfBoundsException) ErrorMessage() string { return *e.Message } func (e *ApiKeyValidityOutOfBoundsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ApiKeyValidityOutOfBoundsException" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *ApiLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ApiLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ApiLimitExceededException" } return *e.ErrorCodeOverride @@ -137,7 +137,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -164,7 +164,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -190,7 +190,7 @@ func (e *GraphQLSchemaException) ErrorMessage() string { return *e.Message } func (e *GraphQLSchemaException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GraphQLSchemaException" } return *e.ErrorCodeOverride @@ -216,7 +216,7 @@ func (e *InternalFailureException) ErrorMessage() string { return *e.Message } func (e *InternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailureException" } return *e.ErrorCodeOverride @@ -242,7 +242,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -269,7 +269,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -295,7 +295,7 @@ func (e *UnauthorizedException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedException" } return *e.ErrorCodeOverride diff --git a/service/arczonalshift/types/errors.go b/service/arczonalshift/types/errors.go index 0550abfb150..6942baeb852 100644 --- a/service/arczonalshift/types/errors.go +++ b/service/arczonalshift/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -134,7 +134,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/athena/types/errors.go b/service/athena/types/errors.go index 90205ef88e5..13fadbcdbf7 100644 --- a/service/athena/types/errors.go +++ b/service/athena/types/errors.go @@ -26,7 +26,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -85,7 +85,7 @@ func (e *MetadataException) ErrorMessage() string { return *e.Message } func (e *MetadataException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MetadataException" } return *e.ErrorCodeOverride @@ -113,7 +113,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -139,7 +139,7 @@ func (e *SessionAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *SessionAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SessionAlreadyExistsException" } return *e.ErrorCodeOverride @@ -167,7 +167,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride diff --git a/service/auditmanager/types/errors.go b/service/auditmanager/types/errors.go index 5f68c0228c0..35c9bd10f37 100644 --- a/service/auditmanager/types/errors.go +++ b/service/auditmanager/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -114,7 +114,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -140,7 +140,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -169,7 +169,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/autoscaling/types/errors.go b/service/autoscaling/types/errors.go index c0362543be9..0ef0c1159f4 100644 --- a/service/autoscaling/types/errors.go +++ b/service/autoscaling/types/errors.go @@ -27,7 +27,7 @@ func (e *ActiveInstanceRefreshNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ActiveInstanceRefreshNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ActiveInstanceRefreshNotFound" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *AlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *AlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AlreadyExists" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InstanceRefreshInProgressFault) ErrorMessage() string { return *e.Message } func (e *InstanceRefreshInProgressFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InstanceRefreshInProgress" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *InvalidNextToken) ErrorMessage() string { return *e.Message } func (e *InvalidNextToken) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextToken" } return *e.ErrorCodeOverride @@ -137,7 +137,7 @@ func (e *IrreversibleInstanceRefreshFault) ErrorMessage() string { return *e.Message } func (e *IrreversibleInstanceRefreshFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IrreversibleInstanceRefresh" } return *e.ErrorCodeOverride @@ -167,7 +167,7 @@ func (e *LimitExceededFault) ErrorMessage() string { return *e.Message } func (e *LimitExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceeded" } return *e.ErrorCodeOverride @@ -194,7 +194,7 @@ func (e *ResourceContentionFault) ErrorMessage() string { return *e.Message } func (e *ResourceContentionFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceContention" } return *e.ErrorCodeOverride @@ -220,7 +220,7 @@ func (e *ResourceInUseFault) ErrorMessage() string { return *e.Message } func (e *ResourceInUseFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUse" } return *e.ErrorCodeOverride @@ -247,7 +247,7 @@ func (e *ScalingActivityInProgressFault) ErrorMessage() string { return *e.Message } func (e *ScalingActivityInProgressFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ScalingActivityInProgress" } return *e.ErrorCodeOverride @@ -273,7 +273,7 @@ func (e *ServiceLinkedRoleFailure) ErrorMessage() string { return *e.Message } func (e *ServiceLinkedRoleFailure) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceLinkedRoleFailure" } return *e.ErrorCodeOverride diff --git a/service/autoscalingplans/types/errors.go b/service/autoscalingplans/types/errors.go index 2cfedc28e3f..27b70e81a5a 100644 --- a/service/autoscalingplans/types/errors.go +++ b/service/autoscalingplans/types/errors.go @@ -27,7 +27,7 @@ func (e *ConcurrentUpdateException) ErrorMessage() string { return *e.Message } func (e *ConcurrentUpdateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentUpdateException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *InternalServiceException) ErrorMessage() string { return *e.Message } func (e *InternalServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -132,7 +132,7 @@ func (e *ObjectNotFoundException) ErrorMessage() string { return *e.Message } func (e *ObjectNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ObjectNotFoundException" } return *e.ErrorCodeOverride @@ -158,7 +158,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/backup/types/errors.go b/service/backup/types/errors.go index 9e25255bb21..379776c3901 100644 --- a/service/backup/types/errors.go +++ b/service/backup/types/errors.go @@ -32,7 +32,7 @@ func (e *AlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *AlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AlreadyExistsException" } return *e.ErrorCodeOverride @@ -63,7 +63,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -94,7 +94,7 @@ func (e *DependencyFailureException) ErrorMessage() string { return *e.Message } func (e *DependencyFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DependencyFailureException" } return *e.ErrorCodeOverride @@ -125,7 +125,7 @@ func (e *InvalidParameterValueException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterValueException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -187,7 +187,7 @@ func (e *InvalidResourceStateException) ErrorMessage() string { return *e.Message } func (e *InvalidResourceStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidResourceStateException" } return *e.ErrorCodeOverride @@ -218,7 +218,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -248,7 +248,7 @@ func (e *MissingParameterValueException) ErrorMessage() string { return *e.Message } func (e *MissingParameterValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MissingParameterValueException" } return *e.ErrorCodeOverride @@ -278,7 +278,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -308,7 +308,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride diff --git a/service/backupgateway/types/errors.go b/service/backupgateway/types/errors.go index afd96bf6919..ee8f3fc5532 100644 --- a/service/backupgateway/types/errors.go +++ b/service/backupgateway/types/errors.go @@ -28,7 +28,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -85,7 +85,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -113,7 +113,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -142,7 +142,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -170,7 +170,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/backupstorage/types/errors.go b/service/backupstorage/types/errors.go index bf212173dd9..a7f1fad72ee 100644 --- a/service/backupstorage/types/errors.go +++ b/service/backupstorage/types/errors.go @@ -25,7 +25,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *DataAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *DataAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DataAlreadyExistsException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *IllegalArgumentException) ErrorMessage() string { return *e.Message } func (e *IllegalArgumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IllegalArgumentException" } return *e.ErrorCodeOverride @@ -109,7 +109,7 @@ func (e *KMSInvalidKeyUsageException) ErrorMessage() string { return *e.Message } func (e *KMSInvalidKeyUsageException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSInvalidKeyUsageException" } return *e.ErrorCodeOverride @@ -136,7 +136,7 @@ func (e *NotReadableInputStreamException) ErrorMessage() string { return *e.Message } func (e *NotReadableInputStreamException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotReadableInputStreamException" } return *e.ErrorCodeOverride @@ -163,7 +163,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -190,7 +190,7 @@ func (e *RetryableException) ErrorMessage() string { return *e.Message } func (e *RetryableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RetryableException" } return *e.ErrorCodeOverride @@ -216,7 +216,7 @@ func (e *ServiceInternalException) ErrorMessage() string { return *e.Message } func (e *ServiceInternalException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceInternalException" } return *e.ErrorCodeOverride @@ -242,7 +242,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -268,7 +268,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride diff --git a/service/batch/types/errors.go b/service/batch/types/errors.go index a3159ebe6f2..2e236a87a17 100644 --- a/service/batch/types/errors.go +++ b/service/batch/types/errors.go @@ -29,7 +29,7 @@ func (e *ClientException) ErrorMessage() string { return *e.Message } func (e *ClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClientException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ServerException) ErrorMessage() string { return *e.Message } func (e *ServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServerException" } return *e.ErrorCodeOverride diff --git a/service/billingconductor/types/errors.go b/service/billingconductor/types/errors.go index 022fb064ac3..7dbd7ccab11 100644 --- a/service/billingconductor/types/errors.go +++ b/service/billingconductor/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -113,7 +113,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -144,7 +144,7 @@ func (e *ServiceLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceLimitExceededException" } return *e.ErrorCodeOverride @@ -172,7 +172,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -202,7 +202,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/braket/types/errors.go b/service/braket/types/errors.go index 1702d698370..374cae8e571 100644 --- a/service/braket/types/errors.go +++ b/service/braket/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *DeviceOfflineException) ErrorMessage() string { return *e.Message } func (e *DeviceOfflineException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeviceOfflineException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *DeviceRetiredException) ErrorMessage() string { return *e.Message } func (e *DeviceRetiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeviceRetiredException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *InternalServiceException) ErrorMessage() string { return *e.Message } func (e *InternalServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceException" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -183,7 +183,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -209,7 +209,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -235,7 +235,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/budgets/types/errors.go b/service/budgets/types/errors.go index 8cb0a8ff194..a81fb7a7346 100644 --- a/service/budgets/types/errors.go +++ b/service/budgets/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *CreationLimitExceededException) ErrorMessage() string { return *e.Message } func (e *CreationLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CreationLimitExceededException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *DuplicateRecordException) ErrorMessage() string { return *e.Message } func (e *DuplicateRecordException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateRecordException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ExpiredNextTokenException) ErrorMessage() string { return *e.Message } func (e *ExpiredNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ExpiredNextTokenException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *InternalErrorException) ErrorMessage() string { return *e.Message } func (e *InternalErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalErrorException" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -183,7 +183,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -209,7 +209,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -236,7 +236,7 @@ func (e *ResourceLockedException) ErrorMessage() string { return *e.Message } func (e *ResourceLockedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceLockedException" } return *e.ErrorCodeOverride @@ -263,7 +263,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride diff --git a/service/chime/types/errors.go b/service/chime/types/errors.go index 85d32e888b5..36d6f7fafca 100644 --- a/service/chime/types/errors.go +++ b/service/chime/types/errors.go @@ -28,7 +28,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -85,7 +85,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -113,7 +113,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -141,7 +141,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -169,7 +169,7 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceLimitExceededException" } return *e.ErrorCodeOverride @@ -197,7 +197,7 @@ func (e *ServiceFailureException) ErrorMessage() string { return *e.Message } func (e *ServiceFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceFailureException" } return *e.ErrorCodeOverride @@ -225,7 +225,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -253,7 +253,7 @@ func (e *ThrottledClientException) ErrorMessage() string { return *e.Message } func (e *ThrottledClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottledClientException" } return *e.ErrorCodeOverride @@ -281,7 +281,7 @@ func (e *UnauthorizedClientException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedClientException" } return *e.ErrorCodeOverride @@ -310,7 +310,7 @@ func (e *UnprocessableEntityException) ErrorMessage() string { return *e.Message } func (e *UnprocessableEntityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnprocessableEntityException" } return *e.ErrorCodeOverride diff --git a/service/chimesdkidentity/types/errors.go b/service/chimesdkidentity/types/errors.go index 508cfd1f8fd..16a3c8a951b 100644 --- a/service/chimesdkidentity/types/errors.go +++ b/service/chimesdkidentity/types/errors.go @@ -28,7 +28,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -85,7 +85,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -113,7 +113,7 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceLimitExceededException" } return *e.ErrorCodeOverride @@ -141,7 +141,7 @@ func (e *ServiceFailureException) ErrorMessage() string { return *e.Message } func (e *ServiceFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceFailureException" } return *e.ErrorCodeOverride @@ -169,7 +169,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -197,7 +197,7 @@ func (e *ThrottledClientException) ErrorMessage() string { return *e.Message } func (e *ThrottledClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottledClientException" } return *e.ErrorCodeOverride @@ -225,7 +225,7 @@ func (e *UnauthorizedClientException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedClientException" } return *e.ErrorCodeOverride diff --git a/service/chimesdkmediapipelines/types/errors.go b/service/chimesdkmediapipelines/types/errors.go index b36fed8f6e4..e8d38770d52 100644 --- a/service/chimesdkmediapipelines/types/errors.go +++ b/service/chimesdkmediapipelines/types/errors.go @@ -29,7 +29,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -58,7 +58,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -87,7 +87,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -116,7 +116,7 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceLimitExceededException" } return *e.ErrorCodeOverride @@ -145,7 +145,7 @@ func (e *ServiceFailureException) ErrorMessage() string { return *e.Message } func (e *ServiceFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceFailureException" } return *e.ErrorCodeOverride @@ -174,7 +174,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -203,7 +203,7 @@ func (e *ThrottledClientException) ErrorMessage() string { return *e.Message } func (e *ThrottledClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottledClientException" } return *e.ErrorCodeOverride @@ -232,7 +232,7 @@ func (e *UnauthorizedClientException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedClientException" } return *e.ErrorCodeOverride diff --git a/service/chimesdkmeetings/types/errors.go b/service/chimesdkmeetings/types/errors.go index 8986475618d..49d8837b3a1 100644 --- a/service/chimesdkmeetings/types/errors.go +++ b/service/chimesdkmeetings/types/errors.go @@ -29,7 +29,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -58,7 +58,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -87,7 +87,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -116,7 +116,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -145,7 +145,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -175,7 +175,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -204,7 +204,7 @@ func (e *ServiceFailureException) ErrorMessage() string { return *e.Message } func (e *ServiceFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceFailureException" } return *e.ErrorCodeOverride @@ -234,7 +234,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -263,7 +263,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -293,7 +293,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -322,7 +322,7 @@ func (e *UnauthorizedException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedException" } return *e.ErrorCodeOverride @@ -352,7 +352,7 @@ func (e *UnprocessableEntityException) ErrorMessage() string { return *e.Message } func (e *UnprocessableEntityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnprocessableEntityException" } return *e.ErrorCodeOverride diff --git a/service/chimesdkmessaging/types/errors.go b/service/chimesdkmessaging/types/errors.go index bd23c94cf38..5eb9ebfcd72 100644 --- a/service/chimesdkmessaging/types/errors.go +++ b/service/chimesdkmessaging/types/errors.go @@ -28,7 +28,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -85,7 +85,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -113,7 +113,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -141,7 +141,7 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceLimitExceededException" } return *e.ErrorCodeOverride @@ -169,7 +169,7 @@ func (e *ServiceFailureException) ErrorMessage() string { return *e.Message } func (e *ServiceFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceFailureException" } return *e.ErrorCodeOverride @@ -197,7 +197,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -225,7 +225,7 @@ func (e *ThrottledClientException) ErrorMessage() string { return *e.Message } func (e *ThrottledClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottledClientException" } return *e.ErrorCodeOverride @@ -253,7 +253,7 @@ func (e *UnauthorizedClientException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedClientException" } return *e.ErrorCodeOverride diff --git a/service/chimesdkvoice/types/errors.go b/service/chimesdkvoice/types/errors.go index e67d3979b4e..5153756c673 100644 --- a/service/chimesdkvoice/types/errors.go +++ b/service/chimesdkvoice/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceLimitExceededException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *ServiceFailureException) ErrorMessage() string { return *e.Message } func (e *ServiceFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceFailureException" } return *e.ErrorCodeOverride @@ -216,7 +216,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -243,7 +243,7 @@ func (e *ThrottledClientException) ErrorMessage() string { return *e.Message } func (e *ThrottledClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottledClientException" } return *e.ErrorCodeOverride @@ -270,7 +270,7 @@ func (e *UnauthorizedClientException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedClientException" } return *e.ErrorCodeOverride diff --git a/service/cleanrooms/types/errors.go b/service/cleanrooms/types/errors.go index f1c27432d51..90b617b1237 100644 --- a/service/cleanrooms/types/errors.go +++ b/service/cleanrooms/types/errors.go @@ -28,7 +28,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -58,7 +58,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -113,7 +113,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -142,7 +142,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -168,7 +168,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -197,7 +197,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/cloud9/types/errors.go b/service/cloud9/types/errors.go index 1d1c7d071a1..dfb1dfd5a78 100644 --- a/service/cloud9/types/errors.go +++ b/service/cloud9/types/errors.go @@ -29,7 +29,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -58,7 +58,7 @@ func (e *ConcurrentAccessException) ErrorMessage() string { return *e.Message } func (e *ConcurrentAccessException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentAccessException" } return *e.ErrorCodeOverride @@ -87,7 +87,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -116,7 +116,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -145,7 +145,7 @@ func (e *InternalServerErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServerErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerErrorException" } return *e.ErrorCodeOverride @@ -174,7 +174,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -203,7 +203,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -232,7 +232,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride diff --git a/service/cloudcontrol/types/errors.go b/service/cloudcontrol/types/errors.go index 3e3f99969e4..079c178bb8d 100644 --- a/service/cloudcontrol/types/errors.go +++ b/service/cloudcontrol/types/errors.go @@ -26,7 +26,7 @@ func (e *AlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *AlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AlreadyExistsException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ClientTokenConflictException) ErrorMessage() string { return *e.Message } func (e *ClientTokenConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClientTokenConflictException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *ConcurrentOperationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentOperationException" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *GeneralServiceException) ErrorMessage() string { return *e.Message } func (e *GeneralServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GeneralServiceException" } return *e.ErrorCodeOverride @@ -160,7 +160,7 @@ func (e *HandlerFailureException) ErrorMessage() string { return *e.Message } func (e *HandlerFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HandlerFailureException" } return *e.ErrorCodeOverride @@ -187,7 +187,7 @@ func (e *HandlerInternalFailureException) ErrorMessage() string { return *e.Message } func (e *HandlerInternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HandlerInternalFailureException" } return *e.ErrorCodeOverride @@ -214,7 +214,7 @@ func (e *InvalidCredentialsException) ErrorMessage() string { return *e.Message } func (e *InvalidCredentialsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCredentialsException" } return *e.ErrorCodeOverride @@ -241,7 +241,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -268,7 +268,7 @@ func (e *NetworkFailureException) ErrorMessage() string { return *e.Message } func (e *NetworkFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NetworkFailureException" } return *e.ErrorCodeOverride @@ -295,7 +295,7 @@ func (e *NotStabilizedException) ErrorMessage() string { return *e.Message } func (e *NotStabilizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotStabilizedException" } return *e.ErrorCodeOverride @@ -322,7 +322,7 @@ func (e *NotUpdatableException) ErrorMessage() string { return *e.Message } func (e *NotUpdatableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotUpdatableException" } return *e.ErrorCodeOverride @@ -350,7 +350,7 @@ func (e *PrivateTypeException) ErrorMessage() string { return *e.Message } func (e *PrivateTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PrivateTypeException" } return *e.ErrorCodeOverride @@ -376,7 +376,7 @@ func (e *RequestTokenNotFoundException) ErrorMessage() string { return *e.Message } func (e *RequestTokenNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestTokenNotFoundException" } return *e.ErrorCodeOverride @@ -404,7 +404,7 @@ func (e *ResourceConflictException) ErrorMessage() string { return *e.Message } func (e *ResourceConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceConflictException" } return *e.ErrorCodeOverride @@ -430,7 +430,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -457,7 +457,7 @@ func (e *ServiceInternalErrorException) ErrorMessage() string { return *e.Message } func (e *ServiceInternalErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceInternalErrorException" } return *e.ErrorCodeOverride @@ -484,7 +484,7 @@ func (e *ServiceLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceLimitExceededException" } return *e.ErrorCodeOverride @@ -510,7 +510,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -536,7 +536,7 @@ func (e *TypeNotFoundException) ErrorMessage() string { return *e.Message } func (e *TypeNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TypeNotFoundException" } return *e.ErrorCodeOverride @@ -562,7 +562,7 @@ func (e *UnsupportedActionException) ErrorMessage() string { return *e.Message } func (e *UnsupportedActionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedActionException" } return *e.ErrorCodeOverride diff --git a/service/clouddirectory/types/errors.go b/service/clouddirectory/types/errors.go index de50f67cf0c..e8d09cf8f9a 100644 --- a/service/clouddirectory/types/errors.go +++ b/service/clouddirectory/types/errors.go @@ -28,7 +28,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *BatchWriteException) ErrorMessage() string { return *e.Message } func (e *BatchWriteException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BatchWriteException" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *CannotListParentOfRootException) ErrorMessage() string { return *e.Message } func (e *CannotListParentOfRootException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CannotListParentOfRootException" } return *e.ErrorCodeOverride @@ -110,7 +110,7 @@ func (e *DirectoryAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *DirectoryAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DirectoryAlreadyExistsException" } return *e.ErrorCodeOverride @@ -137,7 +137,7 @@ func (e *DirectoryDeletedException) ErrorMessage() string { return *e.Message } func (e *DirectoryDeletedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DirectoryDeletedException" } return *e.ErrorCodeOverride @@ -163,7 +163,7 @@ func (e *DirectoryNotDisabledException) ErrorMessage() string { return *e.Message } func (e *DirectoryNotDisabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DirectoryNotDisabledException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *DirectoryNotEnabledException) ErrorMessage() string { return *e.Message } func (e *DirectoryNotEnabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DirectoryNotEnabledException" } return *e.ErrorCodeOverride @@ -215,7 +215,7 @@ func (e *FacetAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *FacetAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FacetAlreadyExistsException" } return *e.ErrorCodeOverride @@ -242,7 +242,7 @@ func (e *FacetInUseException) ErrorMessage() string { return *e.Message } func (e *FacetInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FacetInUseException" } return *e.ErrorCodeOverride @@ -268,7 +268,7 @@ func (e *FacetNotFoundException) ErrorMessage() string { return *e.Message } func (e *FacetNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FacetNotFoundException" } return *e.ErrorCodeOverride @@ -295,7 +295,7 @@ func (e *FacetValidationException) ErrorMessage() string { return *e.Message } func (e *FacetValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FacetValidationException" } return *e.ErrorCodeOverride @@ -323,7 +323,7 @@ func (e *IncompatibleSchemaException) ErrorMessage() string { return *e.Message } func (e *IncompatibleSchemaException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IncompatibleSchemaException" } return *e.ErrorCodeOverride @@ -350,7 +350,7 @@ func (e *IndexedAttributeMissingException) ErrorMessage() string { return *e.Message } func (e *IndexedAttributeMissingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IndexedAttributeMissingException" } return *e.ErrorCodeOverride @@ -380,7 +380,7 @@ func (e *InternalServiceException) ErrorMessage() string { return *e.Message } func (e *InternalServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceException" } return *e.ErrorCodeOverride @@ -406,7 +406,7 @@ func (e *InvalidArnException) ErrorMessage() string { return *e.Message } func (e *InvalidArnException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArnException" } return *e.ErrorCodeOverride @@ -434,7 +434,7 @@ func (e *InvalidAttachmentException) ErrorMessage() string { return *e.Message } func (e *InvalidAttachmentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAttachmentException" } return *e.ErrorCodeOverride @@ -460,7 +460,7 @@ func (e *InvalidFacetUpdateException) ErrorMessage() string { return *e.Message } func (e *InvalidFacetUpdateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidFacetUpdateException" } return *e.ErrorCodeOverride @@ -486,7 +486,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -512,7 +512,7 @@ func (e *InvalidRuleException) ErrorMessage() string { return *e.Message } func (e *InvalidRuleException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRuleException" } return *e.ErrorCodeOverride @@ -538,7 +538,7 @@ func (e *InvalidSchemaDocException) ErrorMessage() string { return *e.Message } func (e *InvalidSchemaDocException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSchemaDocException" } return *e.ErrorCodeOverride @@ -566,7 +566,7 @@ func (e *InvalidTaggingRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidTaggingRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTaggingRequestException" } return *e.ErrorCodeOverride @@ -594,7 +594,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -621,7 +621,7 @@ func (e *LinkNameAlreadyInUseException) ErrorMessage() string { return *e.Message } func (e *LinkNameAlreadyInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LinkNameAlreadyInUseException" } return *e.ErrorCodeOverride @@ -647,7 +647,7 @@ func (e *NotIndexException) ErrorMessage() string { return *e.Message } func (e *NotIndexException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotIndexException" } return *e.ErrorCodeOverride @@ -674,7 +674,7 @@ func (e *NotNodeException) ErrorMessage() string { return *e.Message } func (e *NotNodeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotNodeException" } return *e.ErrorCodeOverride @@ -700,7 +700,7 @@ func (e *NotPolicyException) ErrorMessage() string { return *e.Message } func (e *NotPolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotPolicyException" } return *e.ErrorCodeOverride @@ -726,7 +726,7 @@ func (e *ObjectAlreadyDetachedException) ErrorMessage() string { return *e.Message } func (e *ObjectAlreadyDetachedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ObjectAlreadyDetachedException" } return *e.ErrorCodeOverride @@ -753,7 +753,7 @@ func (e *ObjectNotDetachedException) ErrorMessage() string { return *e.Message } func (e *ObjectNotDetachedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ObjectNotDetachedException" } return *e.ErrorCodeOverride @@ -779,7 +779,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -810,7 +810,7 @@ func (e *RetryableConflictException) ErrorMessage() string { return *e.Message } func (e *RetryableConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RetryableConflictException" } return *e.ErrorCodeOverride @@ -837,7 +837,7 @@ func (e *SchemaAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *SchemaAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SchemaAlreadyExistsException" } return *e.ErrorCodeOverride @@ -863,7 +863,7 @@ func (e *SchemaAlreadyPublishedException) ErrorMessage() string { return *e.Message } func (e *SchemaAlreadyPublishedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SchemaAlreadyPublishedException" } return *e.ErrorCodeOverride @@ -890,7 +890,7 @@ func (e *StillContainsLinksException) ErrorMessage() string { return *e.Message } func (e *StillContainsLinksException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StillContainsLinksException" } return *e.ErrorCodeOverride @@ -916,7 +916,7 @@ func (e *UnsupportedIndexTypeException) ErrorMessage() string { return *e.Message } func (e *UnsupportedIndexTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedIndexTypeException" } return *e.ErrorCodeOverride @@ -943,7 +943,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/cloudformation/types/errors.go b/service/cloudformation/types/errors.go index 1ee2bb1b49d..ad9cad7e5fd 100644 --- a/service/cloudformation/types/errors.go +++ b/service/cloudformation/types/errors.go @@ -26,7 +26,7 @@ func (e *AlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *AlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AlreadyExistsException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *CFNRegistryException) ErrorMessage() string { return *e.Message } func (e *CFNRegistryException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CFNRegistryException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *ChangeSetNotFoundException) ErrorMessage() string { return *e.Message } func (e *ChangeSetNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ChangeSetNotFound" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *CreatedButModifiedException) ErrorMessage() string { return *e.Message } func (e *CreatedButModifiedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CreatedButModifiedException" } return *e.ErrorCodeOverride @@ -132,7 +132,7 @@ func (e *InsufficientCapabilitiesException) ErrorMessage() string { return *e.Message } func (e *InsufficientCapabilitiesException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientCapabilitiesException" } return *e.ErrorCodeOverride @@ -160,7 +160,7 @@ func (e *InvalidChangeSetStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidChangeSetStatusException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidChangeSetStatus" } return *e.ErrorCodeOverride @@ -186,7 +186,7 @@ func (e *InvalidOperationException) ErrorMessage() string { return *e.Message } func (e *InvalidOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOperationException" } return *e.ErrorCodeOverride @@ -214,7 +214,7 @@ func (e *InvalidStateTransitionException) ErrorMessage() string { return *e.Message } func (e *InvalidStateTransitionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidStateTransition" } return *e.ErrorCodeOverride @@ -243,7 +243,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -269,7 +269,7 @@ func (e *NameAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *NameAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NameAlreadyExistsException" } return *e.ErrorCodeOverride @@ -295,7 +295,7 @@ func (e *OperationIdAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *OperationIdAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationIdAlreadyExistsException" } return *e.ErrorCodeOverride @@ -322,7 +322,7 @@ func (e *OperationInProgressException) ErrorMessage() string { return *e.Message } func (e *OperationInProgressException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationInProgressException" } return *e.ErrorCodeOverride @@ -348,7 +348,7 @@ func (e *OperationNotFoundException) ErrorMessage() string { return *e.Message } func (e *OperationNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationNotFoundException" } return *e.ErrorCodeOverride @@ -376,7 +376,7 @@ func (e *OperationStatusCheckFailedException) ErrorMessage() string { return *e.Message } func (e *OperationStatusCheckFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConditionalCheckFailed" } return *e.ErrorCodeOverride @@ -404,7 +404,7 @@ func (e *StackInstanceNotFoundException) ErrorMessage() string { return *e.Message } func (e *StackInstanceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StackInstanceNotFoundException" } return *e.ErrorCodeOverride @@ -431,7 +431,7 @@ func (e *StackNotFoundException) ErrorMessage() string { return *e.Message } func (e *StackNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StackNotFoundException" } return *e.ErrorCodeOverride @@ -459,7 +459,7 @@ func (e *StackSetNotEmptyException) ErrorMessage() string { return *e.Message } func (e *StackSetNotEmptyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StackSetNotEmptyException" } return *e.ErrorCodeOverride @@ -485,7 +485,7 @@ func (e *StackSetNotFoundException) ErrorMessage() string { return *e.Message } func (e *StackSetNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StackSetNotFoundException" } return *e.ErrorCodeOverride @@ -512,7 +512,7 @@ func (e *StaleRequestException) ErrorMessage() string { return *e.Message } func (e *StaleRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StaleRequestException" } return *e.ErrorCodeOverride @@ -538,7 +538,7 @@ func (e *TokenAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *TokenAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TokenAlreadyExistsException" } return *e.ErrorCodeOverride @@ -564,7 +564,7 @@ func (e *TypeConfigurationNotFoundException) ErrorMessage() string { return *e.Message } func (e *TypeConfigurationNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TypeConfigurationNotFoundException" } return *e.ErrorCodeOverride @@ -592,7 +592,7 @@ func (e *TypeNotFoundException) ErrorMessage() string { return *e.Message } func (e *TypeNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TypeNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/cloudfront/types/errors.go b/service/cloudfront/types/errors.go index 12e462f84bd..d97f3bafb78 100644 --- a/service/cloudfront/types/errors.go +++ b/service/cloudfront/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDenied) ErrorMessage() string { return *e.Message } func (e *AccessDenied) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDenied" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *BatchTooLarge) ErrorMessage() string { return *e.Message } func (e *BatchTooLarge) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BatchTooLarge" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *CachePolicyAlreadyExists) ErrorMessage() string { return *e.Message } func (e *CachePolicyAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CachePolicyAlreadyExists" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *CachePolicyInUse) ErrorMessage() string { return *e.Message } func (e *CachePolicyInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CachePolicyInUse" } return *e.ErrorCodeOverride @@ -132,7 +132,7 @@ func (e *CannotChangeImmutablePublicKeyFields) ErrorMessage() string { return *e.Message } func (e *CannotChangeImmutablePublicKeyFields) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CannotChangeImmutablePublicKeyFields" } return *e.ErrorCodeOverride @@ -163,7 +163,7 @@ func (e *CloudFrontOriginAccessIdentityAlreadyExists) ErrorMessage() string { return *e.Message } func (e *CloudFrontOriginAccessIdentityAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CloudFrontOriginAccessIdentityAlreadyExists" } return *e.ErrorCodeOverride @@ -191,7 +191,7 @@ func (e *CloudFrontOriginAccessIdentityInUse) ErrorMessage() string { return *e.Message } func (e *CloudFrontOriginAccessIdentityInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CloudFrontOriginAccessIdentityInUse" } return *e.ErrorCodeOverride @@ -219,7 +219,7 @@ func (e *CNAMEAlreadyExists) ErrorMessage() string { return *e.Message } func (e *CNAMEAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CNAMEAlreadyExists" } return *e.ErrorCodeOverride @@ -245,7 +245,7 @@ func (e *ContinuousDeploymentPolicyAlreadyExists) ErrorMessage() string { return *e.Message } func (e *ContinuousDeploymentPolicyAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ContinuousDeploymentPolicyAlreadyExists" } return *e.ErrorCodeOverride @@ -274,7 +274,7 @@ func (e *ContinuousDeploymentPolicyInUse) ErrorMessage() string { return *e.Message } func (e *ContinuousDeploymentPolicyInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ContinuousDeploymentPolicyInUse" } return *e.ErrorCodeOverride @@ -301,7 +301,7 @@ func (e *DistributionAlreadyExists) ErrorMessage() string { return *e.Message } func (e *DistributionAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DistributionAlreadyExists" } return *e.ErrorCodeOverride @@ -328,7 +328,7 @@ func (e *DistributionNotDisabled) ErrorMessage() string { return *e.Message } func (e *DistributionNotDisabled) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DistributionNotDisabled" } return *e.ErrorCodeOverride @@ -354,7 +354,7 @@ func (e *FieldLevelEncryptionConfigAlreadyExists) ErrorMessage() string { return *e.Message } func (e *FieldLevelEncryptionConfigAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FieldLevelEncryptionConfigAlreadyExists" } return *e.ErrorCodeOverride @@ -382,7 +382,7 @@ func (e *FieldLevelEncryptionConfigInUse) ErrorMessage() string { return *e.Message } func (e *FieldLevelEncryptionConfigInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FieldLevelEncryptionConfigInUse" } return *e.ErrorCodeOverride @@ -408,7 +408,7 @@ func (e *FieldLevelEncryptionProfileAlreadyExists) ErrorMessage() string { return *e.Message } func (e *FieldLevelEncryptionProfileAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FieldLevelEncryptionProfileAlreadyExists" } return *e.ErrorCodeOverride @@ -436,7 +436,7 @@ func (e *FieldLevelEncryptionProfileInUse) ErrorMessage() string { return *e.Message } func (e *FieldLevelEncryptionProfileInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FieldLevelEncryptionProfileInUse" } return *e.ErrorCodeOverride @@ -462,7 +462,7 @@ func (e *FieldLevelEncryptionProfileSizeExceeded) ErrorMessage() string { return *e.Message } func (e *FieldLevelEncryptionProfileSizeExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FieldLevelEncryptionProfileSizeExceeded" } return *e.ErrorCodeOverride @@ -492,7 +492,7 @@ func (e *FunctionAlreadyExists) ErrorMessage() string { return *e.Message } func (e *FunctionAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FunctionAlreadyExists" } return *e.ErrorCodeOverride @@ -518,7 +518,7 @@ func (e *FunctionInUse) ErrorMessage() string { return *e.Message } func (e *FunctionInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FunctionInUse" } return *e.ErrorCodeOverride @@ -546,7 +546,7 @@ func (e *FunctionSizeLimitExceeded) ErrorMessage() string { return *e.Message } func (e *FunctionSizeLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FunctionSizeLimitExceeded" } return *e.ErrorCodeOverride @@ -572,7 +572,7 @@ func (e *IllegalDelete) ErrorMessage() string { return *e.Message } func (e *IllegalDelete) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IllegalDelete" } return *e.ErrorCodeOverride @@ -599,7 +599,7 @@ func (e *IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorMes return *e.Message } func (e *IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior" } return *e.ErrorCodeOverride @@ -628,7 +628,7 @@ func (e *IllegalOriginAccessConfiguration) ErrorMessage() string { return *e.Message } func (e *IllegalOriginAccessConfiguration) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IllegalOriginAccessConfiguration" } return *e.ErrorCodeOverride @@ -654,7 +654,7 @@ func (e *IllegalUpdate) ErrorMessage() string { return *e.Message } func (e *IllegalUpdate) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IllegalUpdate" } return *e.ErrorCodeOverride @@ -680,7 +680,7 @@ func (e *InconsistentQuantities) ErrorMessage() string { return *e.Message } func (e *InconsistentQuantities) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InconsistentQuantities" } return *e.ErrorCodeOverride @@ -706,7 +706,7 @@ func (e *InvalidArgument) ErrorMessage() string { return *e.Message } func (e *InvalidArgument) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArgument" } return *e.ErrorCodeOverride @@ -732,7 +732,7 @@ func (e *InvalidDefaultRootObject) ErrorMessage() string { return *e.Message } func (e *InvalidDefaultRootObject) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDefaultRootObject" } return *e.ErrorCodeOverride @@ -759,7 +759,7 @@ func (e *InvalidDomainNameForOriginAccessControl) ErrorMessage() string { return *e.Message } func (e *InvalidDomainNameForOriginAccessControl) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDomainNameForOriginAccessControl" } return *e.ErrorCodeOverride @@ -787,7 +787,7 @@ func (e *InvalidErrorCode) ErrorMessage() string { return *e.Message } func (e *InvalidErrorCode) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidErrorCode" } return *e.ErrorCodeOverride @@ -816,7 +816,7 @@ func (e *InvalidForwardCookies) ErrorMessage() string { return *e.Message } func (e *InvalidForwardCookies) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidForwardCookies" } return *e.ErrorCodeOverride @@ -842,7 +842,7 @@ func (e *InvalidFunctionAssociation) ErrorMessage() string { return *e.Message } func (e *InvalidFunctionAssociation) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidFunctionAssociation" } return *e.ErrorCodeOverride @@ -868,7 +868,7 @@ func (e *InvalidGeoRestrictionParameter) ErrorMessage() string { return *e.Message } func (e *InvalidGeoRestrictionParameter) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidGeoRestrictionParameter" } return *e.ErrorCodeOverride @@ -894,7 +894,7 @@ func (e *InvalidHeadersForS3Origin) ErrorMessage() string { return *e.Message } func (e *InvalidHeadersForS3Origin) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidHeadersForS3Origin" } return *e.ErrorCodeOverride @@ -920,7 +920,7 @@ func (e *InvalidIfMatchVersion) ErrorMessage() string { return *e.Message } func (e *InvalidIfMatchVersion) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidIfMatchVersion" } return *e.ErrorCodeOverride @@ -946,7 +946,7 @@ func (e *InvalidLambdaFunctionAssociation) ErrorMessage() string { return *e.Message } func (e *InvalidLambdaFunctionAssociation) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidLambdaFunctionAssociation" } return *e.ErrorCodeOverride @@ -972,7 +972,7 @@ func (e *InvalidLocationCode) ErrorMessage() string { return *e.Message } func (e *InvalidLocationCode) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidLocationCode" } return *e.ErrorCodeOverride @@ -998,7 +998,7 @@ func (e *InvalidMinimumProtocolVersion) ErrorMessage() string { return *e.Message } func (e *InvalidMinimumProtocolVersion) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidMinimumProtocolVersion" } return *e.ErrorCodeOverride @@ -1025,7 +1025,7 @@ func (e *InvalidOrigin) ErrorMessage() string { return *e.Message } func (e *InvalidOrigin) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOrigin" } return *e.ErrorCodeOverride @@ -1051,7 +1051,7 @@ func (e *InvalidOriginAccessControl) ErrorMessage() string { return *e.Message } func (e *InvalidOriginAccessControl) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOriginAccessControl" } return *e.ErrorCodeOverride @@ -1077,7 +1077,7 @@ func (e *InvalidOriginAccessIdentity) ErrorMessage() string { return *e.Message } func (e *InvalidOriginAccessIdentity) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOriginAccessIdentity" } return *e.ErrorCodeOverride @@ -1103,7 +1103,7 @@ func (e *InvalidOriginKeepaliveTimeout) ErrorMessage() string { return *e.Message } func (e *InvalidOriginKeepaliveTimeout) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOriginKeepaliveTimeout" } return *e.ErrorCodeOverride @@ -1129,7 +1129,7 @@ func (e *InvalidOriginReadTimeout) ErrorMessage() string { return *e.Message } func (e *InvalidOriginReadTimeout) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOriginReadTimeout" } return *e.ErrorCodeOverride @@ -1156,7 +1156,7 @@ func (e *InvalidProtocolSettings) ErrorMessage() string { return *e.Message } func (e *InvalidProtocolSettings) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidProtocolSettings" } return *e.ErrorCodeOverride @@ -1182,7 +1182,7 @@ func (e *InvalidQueryStringParameters) ErrorMessage() string { return *e.Message } func (e *InvalidQueryStringParameters) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidQueryStringParameters" } return *e.ErrorCodeOverride @@ -1209,7 +1209,7 @@ func (e *InvalidRelativePath) ErrorMessage() string { return *e.Message } func (e *InvalidRelativePath) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRelativePath" } return *e.ErrorCodeOverride @@ -1237,7 +1237,7 @@ func (e *InvalidRequiredProtocol) ErrorMessage() string { return *e.Message } func (e *InvalidRequiredProtocol) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequiredProtocol" } return *e.ErrorCodeOverride @@ -1263,7 +1263,7 @@ func (e *InvalidResponseCode) ErrorMessage() string { return *e.Message } func (e *InvalidResponseCode) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidResponseCode" } return *e.ErrorCodeOverride @@ -1289,7 +1289,7 @@ func (e *InvalidTagging) ErrorMessage() string { return *e.Message } func (e *InvalidTagging) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTagging" } return *e.ErrorCodeOverride @@ -1315,7 +1315,7 @@ func (e *InvalidTTLOrder) ErrorMessage() string { return *e.Message } func (e *InvalidTTLOrder) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTTLOrder" } return *e.ErrorCodeOverride @@ -1341,7 +1341,7 @@ func (e *InvalidViewerCertificate) ErrorMessage() string { return *e.Message } func (e *InvalidViewerCertificate) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidViewerCertificate" } return *e.ErrorCodeOverride @@ -1371,7 +1371,7 @@ func (e *InvalidWebACLId) ErrorMessage() string { return *e.Message } func (e *InvalidWebACLId) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidWebACLId" } return *e.ErrorCodeOverride @@ -1398,7 +1398,7 @@ func (e *KeyGroupAlreadyExists) ErrorMessage() string { return *e.Message } func (e *KeyGroupAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KeyGroupAlreadyExists" } return *e.ErrorCodeOverride @@ -1425,7 +1425,7 @@ func (e *MissingBody) ErrorMessage() string { return *e.Message } func (e *MissingBody) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MissingBody" } return *e.ErrorCodeOverride @@ -1451,7 +1451,7 @@ func (e *MonitoringSubscriptionAlreadyExists) ErrorMessage() string { return *e.Message } func (e *MonitoringSubscriptionAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MonitoringSubscriptionAlreadyExists" } return *e.ErrorCodeOverride @@ -1479,7 +1479,7 @@ func (e *NoSuchCachePolicy) ErrorMessage() string { return *e.Message } func (e *NoSuchCachePolicy) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchCachePolicy" } return *e.ErrorCodeOverride @@ -1505,7 +1505,7 @@ func (e *NoSuchCloudFrontOriginAccessIdentity) ErrorMessage() string { return *e.Message } func (e *NoSuchCloudFrontOriginAccessIdentity) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchCloudFrontOriginAccessIdentity" } return *e.ErrorCodeOverride @@ -1533,7 +1533,7 @@ func (e *NoSuchContinuousDeploymentPolicy) ErrorMessage() string { return *e.Message } func (e *NoSuchContinuousDeploymentPolicy) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchContinuousDeploymentPolicy" } return *e.ErrorCodeOverride @@ -1559,7 +1559,7 @@ func (e *NoSuchDistribution) ErrorMessage() string { return *e.Message } func (e *NoSuchDistribution) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchDistribution" } return *e.ErrorCodeOverride @@ -1585,7 +1585,7 @@ func (e *NoSuchFieldLevelEncryptionConfig) ErrorMessage() string { return *e.Message } func (e *NoSuchFieldLevelEncryptionConfig) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchFieldLevelEncryptionConfig" } return *e.ErrorCodeOverride @@ -1611,7 +1611,7 @@ func (e *NoSuchFieldLevelEncryptionProfile) ErrorMessage() string { return *e.Message } func (e *NoSuchFieldLevelEncryptionProfile) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchFieldLevelEncryptionProfile" } return *e.ErrorCodeOverride @@ -1637,7 +1637,7 @@ func (e *NoSuchFunctionExists) ErrorMessage() string { return *e.Message } func (e *NoSuchFunctionExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchFunctionExists" } return *e.ErrorCodeOverride @@ -1663,7 +1663,7 @@ func (e *NoSuchInvalidation) ErrorMessage() string { return *e.Message } func (e *NoSuchInvalidation) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchInvalidation" } return *e.ErrorCodeOverride @@ -1689,7 +1689,7 @@ func (e *NoSuchMonitoringSubscription) ErrorMessage() string { return *e.Message } func (e *NoSuchMonitoringSubscription) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchMonitoringSubscription" } return *e.ErrorCodeOverride @@ -1715,7 +1715,7 @@ func (e *NoSuchOrigin) ErrorMessage() string { return *e.Message } func (e *NoSuchOrigin) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchOrigin" } return *e.ErrorCodeOverride @@ -1741,7 +1741,7 @@ func (e *NoSuchOriginAccessControl) ErrorMessage() string { return *e.Message } func (e *NoSuchOriginAccessControl) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchOriginAccessControl" } return *e.ErrorCodeOverride @@ -1767,7 +1767,7 @@ func (e *NoSuchOriginRequestPolicy) ErrorMessage() string { return *e.Message } func (e *NoSuchOriginRequestPolicy) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchOriginRequestPolicy" } return *e.ErrorCodeOverride @@ -1793,7 +1793,7 @@ func (e *NoSuchPublicKey) ErrorMessage() string { return *e.Message } func (e *NoSuchPublicKey) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchPublicKey" } return *e.ErrorCodeOverride @@ -1819,7 +1819,7 @@ func (e *NoSuchRealtimeLogConfig) ErrorMessage() string { return *e.Message } func (e *NoSuchRealtimeLogConfig) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchRealtimeLogConfig" } return *e.ErrorCodeOverride @@ -1845,7 +1845,7 @@ func (e *NoSuchResource) ErrorMessage() string { return *e.Message } func (e *NoSuchResource) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchResource" } return *e.ErrorCodeOverride @@ -1871,7 +1871,7 @@ func (e *NoSuchResponseHeadersPolicy) ErrorMessage() string { return *e.Message } func (e *NoSuchResponseHeadersPolicy) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchResponseHeadersPolicy" } return *e.ErrorCodeOverride @@ -1897,7 +1897,7 @@ func (e *NoSuchStreamingDistribution) ErrorMessage() string { return *e.Message } func (e *NoSuchStreamingDistribution) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchStreamingDistribution" } return *e.ErrorCodeOverride @@ -1923,7 +1923,7 @@ func (e *OriginAccessControlAlreadyExists) ErrorMessage() string { return *e.Message } func (e *OriginAccessControlAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OriginAccessControlAlreadyExists" } return *e.ErrorCodeOverride @@ -1950,7 +1950,7 @@ func (e *OriginAccessControlInUse) ErrorMessage() string { return *e.Message } func (e *OriginAccessControlInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OriginAccessControlInUse" } return *e.ErrorCodeOverride @@ -1978,7 +1978,7 @@ func (e *OriginRequestPolicyAlreadyExists) ErrorMessage() string { return *e.Message } func (e *OriginRequestPolicyAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OriginRequestPolicyAlreadyExists" } return *e.ErrorCodeOverride @@ -2005,7 +2005,7 @@ func (e *OriginRequestPolicyInUse) ErrorMessage() string { return *e.Message } func (e *OriginRequestPolicyInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OriginRequestPolicyInUse" } return *e.ErrorCodeOverride @@ -2031,7 +2031,7 @@ func (e *PreconditionFailed) ErrorMessage() string { return *e.Message } func (e *PreconditionFailed) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PreconditionFailed" } return *e.ErrorCodeOverride @@ -2057,7 +2057,7 @@ func (e *PublicKeyAlreadyExists) ErrorMessage() string { return *e.Message } func (e *PublicKeyAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PublicKeyAlreadyExists" } return *e.ErrorCodeOverride @@ -2083,7 +2083,7 @@ func (e *PublicKeyInUse) ErrorMessage() string { return *e.Message } func (e *PublicKeyInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PublicKeyInUse" } return *e.ErrorCodeOverride @@ -2109,7 +2109,7 @@ func (e *QueryArgProfileEmpty) ErrorMessage() string { return *e.Message } func (e *QueryArgProfileEmpty) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "QueryArgProfileEmpty" } return *e.ErrorCodeOverride @@ -2137,7 +2137,7 @@ func (e *RealtimeLogConfigAlreadyExists) ErrorMessage() string { return *e.Message } func (e *RealtimeLogConfigAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RealtimeLogConfigAlreadyExists" } return *e.ErrorCodeOverride @@ -2164,7 +2164,7 @@ func (e *RealtimeLogConfigInUse) ErrorMessage() string { return *e.Message } func (e *RealtimeLogConfigInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RealtimeLogConfigInUse" } return *e.ErrorCodeOverride @@ -2191,7 +2191,7 @@ func (e *RealtimeLogConfigOwnerMismatch) ErrorMessage() string { return *e.Message } func (e *RealtimeLogConfigOwnerMismatch) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RealtimeLogConfigOwnerMismatch" } return *e.ErrorCodeOverride @@ -2217,7 +2217,7 @@ func (e *ResourceInUse) ErrorMessage() string { return *e.Message } func (e *ResourceInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUse" } return *e.ErrorCodeOverride @@ -2245,7 +2245,7 @@ func (e *ResponseHeadersPolicyAlreadyExists) ErrorMessage() string { return *e.Message } func (e *ResponseHeadersPolicyAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResponseHeadersPolicyAlreadyExists" } return *e.ErrorCodeOverride @@ -2274,7 +2274,7 @@ func (e *ResponseHeadersPolicyInUse) ErrorMessage() string { return *e.Message } func (e *ResponseHeadersPolicyInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResponseHeadersPolicyInUse" } return *e.ErrorCodeOverride @@ -2300,7 +2300,7 @@ func (e *StagingDistributionInUse) ErrorMessage() string { return *e.Message } func (e *StagingDistributionInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StagingDistributionInUse" } return *e.ErrorCodeOverride @@ -2327,7 +2327,7 @@ func (e *StreamingDistributionAlreadyExists) ErrorMessage() string { return *e.Message } func (e *StreamingDistributionAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StreamingDistributionAlreadyExists" } return *e.ErrorCodeOverride @@ -2356,7 +2356,7 @@ func (e *StreamingDistributionNotDisabled) ErrorMessage() string { return *e.Message } func (e *StreamingDistributionNotDisabled) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StreamingDistributionNotDisabled" } return *e.ErrorCodeOverride @@ -2382,7 +2382,7 @@ func (e *TestFunctionFailed) ErrorMessage() string { return *e.Message } func (e *TestFunctionFailed) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TestFunctionFailed" } return *e.ErrorCodeOverride @@ -2411,7 +2411,7 @@ func (e *TooLongCSPInResponseHeadersPolicy) ErrorMessage() string { return *e.Message } func (e *TooLongCSPInResponseHeadersPolicy) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooLongCSPInResponseHeadersPolicy" } return *e.ErrorCodeOverride @@ -2437,7 +2437,7 @@ func (e *TooManyCacheBehaviors) ErrorMessage() string { return *e.Message } func (e *TooManyCacheBehaviors) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyCacheBehaviors" } return *e.ErrorCodeOverride @@ -2466,7 +2466,7 @@ func (e *TooManyCachePolicies) ErrorMessage() string { return *e.Message } func (e *TooManyCachePolicies) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyCachePolicies" } return *e.ErrorCodeOverride @@ -2492,7 +2492,7 @@ func (e *TooManyCertificates) ErrorMessage() string { return *e.Message } func (e *TooManyCertificates) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyCertificates" } return *e.ErrorCodeOverride @@ -2519,7 +2519,7 @@ func (e *TooManyCloudFrontOriginAccessIdentities) ErrorMessage() string { return *e.Message } func (e *TooManyCloudFrontOriginAccessIdentities) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyCloudFrontOriginAccessIdentities" } return *e.ErrorCodeOverride @@ -2548,7 +2548,7 @@ func (e *TooManyContinuousDeploymentPolicies) ErrorMessage() string { return *e.Message } func (e *TooManyContinuousDeploymentPolicies) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyContinuousDeploymentPolicies" } return *e.ErrorCodeOverride @@ -2577,7 +2577,7 @@ func (e *TooManyCookieNamesInWhiteList) ErrorMessage() string { return *e.Message } func (e *TooManyCookieNamesInWhiteList) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyCookieNamesInWhiteList" } return *e.ErrorCodeOverride @@ -2606,7 +2606,7 @@ func (e *TooManyCookiesInCachePolicy) ErrorMessage() string { return *e.Message } func (e *TooManyCookiesInCachePolicy) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyCookiesInCachePolicy" } return *e.ErrorCodeOverride @@ -2635,7 +2635,7 @@ func (e *TooManyCookiesInOriginRequestPolicy) ErrorMessage() string { return *e.Message } func (e *TooManyCookiesInOriginRequestPolicy) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyCookiesInOriginRequestPolicy" } return *e.ErrorCodeOverride @@ -2666,7 +2666,7 @@ func (e *TooManyCustomHeadersInResponseHeadersPolicy) ErrorMessage() string { return *e.Message } func (e *TooManyCustomHeadersInResponseHeadersPolicy) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyCustomHeadersInResponseHeadersPolicy" } return *e.ErrorCodeOverride @@ -2694,7 +2694,7 @@ func (e *TooManyDistributionCNAMEs) ErrorMessage() string { return *e.Message } func (e *TooManyDistributionCNAMEs) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyDistributionCNAMEs" } return *e.ErrorCodeOverride @@ -2721,7 +2721,7 @@ func (e *TooManyDistributions) ErrorMessage() string { return *e.Message } func (e *TooManyDistributions) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyDistributions" } return *e.ErrorCodeOverride @@ -2750,7 +2750,7 @@ func (e *TooManyDistributionsAssociatedToCachePolicy) ErrorMessage() string { return *e.Message } func (e *TooManyDistributionsAssociatedToCachePolicy) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyDistributionsAssociatedToCachePolicy" } return *e.ErrorCodeOverride @@ -2779,7 +2779,7 @@ func (e *TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorMessag return *e.Message } func (e *TooManyDistributionsAssociatedToFieldLevelEncryptionConfig) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig" } return *e.ErrorCodeOverride @@ -2810,7 +2810,7 @@ func (e *TooManyDistributionsAssociatedToKeyGroup) ErrorMessage() string { return *e.Message } func (e *TooManyDistributionsAssociatedToKeyGroup) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyDistributionsAssociatedToKeyGroup" } return *e.ErrorCodeOverride @@ -2841,7 +2841,7 @@ func (e *TooManyDistributionsAssociatedToOriginAccessControl) ErrorMessage() str return *e.Message } func (e *TooManyDistributionsAssociatedToOriginAccessControl) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyDistributionsAssociatedToOriginAccessControl" } return *e.ErrorCodeOverride @@ -2872,7 +2872,7 @@ func (e *TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorMessage() str return *e.Message } func (e *TooManyDistributionsAssociatedToOriginRequestPolicy) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyDistributionsAssociatedToOriginRequestPolicy" } return *e.ErrorCodeOverride @@ -2903,7 +2903,7 @@ func (e *TooManyDistributionsAssociatedToResponseHeadersPolicy) ErrorMessage() s return *e.Message } func (e *TooManyDistributionsAssociatedToResponseHeadersPolicy) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyDistributionsAssociatedToResponseHeadersPolicy" } return *e.ErrorCodeOverride @@ -2934,7 +2934,7 @@ func (e *TooManyDistributionsWithFunctionAssociations) ErrorMessage() string { return *e.Message } func (e *TooManyDistributionsWithFunctionAssociations) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyDistributionsWithFunctionAssociations" } return *e.ErrorCodeOverride @@ -2963,7 +2963,7 @@ func (e *TooManyDistributionsWithLambdaAssociations) ErrorMessage() string { return *e.Message } func (e *TooManyDistributionsWithLambdaAssociations) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyDistributionsWithLambdaAssociations" } return *e.ErrorCodeOverride @@ -2992,7 +2992,7 @@ func (e *TooManyDistributionsWithSingleFunctionARN) ErrorMessage() string { return *e.Message } func (e *TooManyDistributionsWithSingleFunctionARN) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyDistributionsWithSingleFunctionARN" } return *e.ErrorCodeOverride @@ -3021,7 +3021,7 @@ func (e *TooManyFieldLevelEncryptionConfigs) ErrorMessage() string { return *e.Message } func (e *TooManyFieldLevelEncryptionConfigs) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyFieldLevelEncryptionConfigs" } return *e.ErrorCodeOverride @@ -3050,7 +3050,7 @@ func (e *TooManyFieldLevelEncryptionContentTypeProfiles) ErrorMessage() string { return *e.Message } func (e *TooManyFieldLevelEncryptionContentTypeProfiles) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyFieldLevelEncryptionContentTypeProfiles" } return *e.ErrorCodeOverride @@ -3079,7 +3079,7 @@ func (e *TooManyFieldLevelEncryptionEncryptionEntities) ErrorMessage() string { return *e.Message } func (e *TooManyFieldLevelEncryptionEncryptionEntities) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyFieldLevelEncryptionEncryptionEntities" } return *e.ErrorCodeOverride @@ -3108,7 +3108,7 @@ func (e *TooManyFieldLevelEncryptionFieldPatterns) ErrorMessage() string { return *e.Message } func (e *TooManyFieldLevelEncryptionFieldPatterns) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyFieldLevelEncryptionFieldPatterns" } return *e.ErrorCodeOverride @@ -3136,7 +3136,7 @@ func (e *TooManyFieldLevelEncryptionProfiles) ErrorMessage() string { return *e.Message } func (e *TooManyFieldLevelEncryptionProfiles) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyFieldLevelEncryptionProfiles" } return *e.ErrorCodeOverride @@ -3165,7 +3165,7 @@ func (e *TooManyFieldLevelEncryptionQueryArgProfiles) ErrorMessage() string { return *e.Message } func (e *TooManyFieldLevelEncryptionQueryArgProfiles) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyFieldLevelEncryptionQueryArgProfiles" } return *e.ErrorCodeOverride @@ -3196,7 +3196,7 @@ func (e *TooManyFunctionAssociations) ErrorMessage() string { return *e.Message } func (e *TooManyFunctionAssociations) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyFunctionAssociations" } return *e.ErrorCodeOverride @@ -3225,7 +3225,7 @@ func (e *TooManyFunctions) ErrorMessage() string { return *e.Message } func (e *TooManyFunctions) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyFunctions" } return *e.ErrorCodeOverride @@ -3254,7 +3254,7 @@ func (e *TooManyHeadersInCachePolicy) ErrorMessage() string { return *e.Message } func (e *TooManyHeadersInCachePolicy) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyHeadersInCachePolicy" } return *e.ErrorCodeOverride @@ -3280,7 +3280,7 @@ func (e *TooManyHeadersInForwardedValues) ErrorMessage() string { return *e.Message } func (e *TooManyHeadersInForwardedValues) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyHeadersInForwardedValues" } return *e.ErrorCodeOverride @@ -3309,7 +3309,7 @@ func (e *TooManyHeadersInOriginRequestPolicy) ErrorMessage() string { return *e.Message } func (e *TooManyHeadersInOriginRequestPolicy) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyHeadersInOriginRequestPolicy" } return *e.ErrorCodeOverride @@ -3338,7 +3338,7 @@ func (e *TooManyInvalidationsInProgress) ErrorMessage() string { return *e.Message } func (e *TooManyInvalidationsInProgress) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyInvalidationsInProgress" } return *e.ErrorCodeOverride @@ -3367,7 +3367,7 @@ func (e *TooManyKeyGroups) ErrorMessage() string { return *e.Message } func (e *TooManyKeyGroups) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyKeyGroups" } return *e.ErrorCodeOverride @@ -3396,7 +3396,7 @@ func (e *TooManyKeyGroupsAssociatedToDistribution) ErrorMessage() string { return *e.Message } func (e *TooManyKeyGroupsAssociatedToDistribution) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyKeyGroupsAssociatedToDistribution" } return *e.ErrorCodeOverride @@ -3425,7 +3425,7 @@ func (e *TooManyLambdaFunctionAssociations) ErrorMessage() string { return *e.Message } func (e *TooManyLambdaFunctionAssociations) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyLambdaFunctionAssociations" } return *e.ErrorCodeOverride @@ -3454,7 +3454,7 @@ func (e *TooManyOriginAccessControls) ErrorMessage() string { return *e.Message } func (e *TooManyOriginAccessControls) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyOriginAccessControls" } return *e.ErrorCodeOverride @@ -3480,7 +3480,7 @@ func (e *TooManyOriginCustomHeaders) ErrorMessage() string { return *e.Message } func (e *TooManyOriginCustomHeaders) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyOriginCustomHeaders" } return *e.ErrorCodeOverride @@ -3507,7 +3507,7 @@ func (e *TooManyOriginGroupsPerDistribution) ErrorMessage() string { return *e.Message } func (e *TooManyOriginGroupsPerDistribution) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyOriginGroupsPerDistribution" } return *e.ErrorCodeOverride @@ -3538,7 +3538,7 @@ func (e *TooManyOriginRequestPolicies) ErrorMessage() string { return *e.Message } func (e *TooManyOriginRequestPolicies) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyOriginRequestPolicies" } return *e.ErrorCodeOverride @@ -3564,7 +3564,7 @@ func (e *TooManyOrigins) ErrorMessage() string { return *e.Message } func (e *TooManyOrigins) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyOrigins" } return *e.ErrorCodeOverride @@ -3591,7 +3591,7 @@ func (e *TooManyPublicKeys) ErrorMessage() string { return *e.Message } func (e *TooManyPublicKeys) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyPublicKeys" } return *e.ErrorCodeOverride @@ -3620,7 +3620,7 @@ func (e *TooManyPublicKeysInKeyGroup) ErrorMessage() string { return *e.Message } func (e *TooManyPublicKeysInKeyGroup) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyPublicKeysInKeyGroup" } return *e.ErrorCodeOverride @@ -3646,7 +3646,7 @@ func (e *TooManyQueryStringParameters) ErrorMessage() string { return *e.Message } func (e *TooManyQueryStringParameters) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyQueryStringParameters" } return *e.ErrorCodeOverride @@ -3675,7 +3675,7 @@ func (e *TooManyQueryStringsInCachePolicy) ErrorMessage() string { return *e.Message } func (e *TooManyQueryStringsInCachePolicy) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyQueryStringsInCachePolicy" } return *e.ErrorCodeOverride @@ -3704,7 +3704,7 @@ func (e *TooManyQueryStringsInOriginRequestPolicy) ErrorMessage() string { return *e.Message } func (e *TooManyQueryStringsInOriginRequestPolicy) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyQueryStringsInOriginRequestPolicy" } return *e.ErrorCodeOverride @@ -3735,7 +3735,7 @@ func (e *TooManyRealtimeLogConfigs) ErrorMessage() string { return *e.Message } func (e *TooManyRealtimeLogConfigs) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRealtimeLogConfigs" } return *e.ErrorCodeOverride @@ -3764,7 +3764,7 @@ func (e *TooManyRemoveHeadersInResponseHeadersPolicy) ErrorMessage() string { return *e.Message } func (e *TooManyRemoveHeadersInResponseHeadersPolicy) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRemoveHeadersInResponseHeadersPolicy" } return *e.ErrorCodeOverride @@ -3795,7 +3795,7 @@ func (e *TooManyResponseHeadersPolicies) ErrorMessage() string { return *e.Message } func (e *TooManyResponseHeadersPolicies) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyResponseHeadersPolicies" } return *e.ErrorCodeOverride @@ -3821,7 +3821,7 @@ func (e *TooManyStreamingDistributionCNAMEs) ErrorMessage() string { return *e.Message } func (e *TooManyStreamingDistributionCNAMEs) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyStreamingDistributionCNAMEs" } return *e.ErrorCodeOverride @@ -3850,7 +3850,7 @@ func (e *TooManyStreamingDistributions) ErrorMessage() string { return *e.Message } func (e *TooManyStreamingDistributions) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyStreamingDistributions" } return *e.ErrorCodeOverride @@ -3876,7 +3876,7 @@ func (e *TooManyTrustedSigners) ErrorMessage() string { return *e.Message } func (e *TooManyTrustedSigners) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTrustedSigners" } return *e.ErrorCodeOverride @@ -3902,7 +3902,7 @@ func (e *TrustedKeyGroupDoesNotExist) ErrorMessage() string { return *e.Message } func (e *TrustedKeyGroupDoesNotExist) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TrustedKeyGroupDoesNotExist" } return *e.ErrorCodeOverride @@ -3928,7 +3928,7 @@ func (e *TrustedSignerDoesNotExist) ErrorMessage() string { return *e.Message } func (e *TrustedSignerDoesNotExist) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TrustedSignerDoesNotExist" } return *e.ErrorCodeOverride @@ -3954,7 +3954,7 @@ func (e *UnsupportedOperation) ErrorMessage() string { return *e.Message } func (e *UnsupportedOperation) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedOperation" } return *e.ErrorCodeOverride diff --git a/service/cloudhsm/types/errors.go b/service/cloudhsm/types/errors.go index cb61524321a..be4b16e623e 100644 --- a/service/cloudhsm/types/errors.go +++ b/service/cloudhsm/types/errors.go @@ -28,7 +28,7 @@ func (e *CloudHsmInternalException) ErrorMessage() string { return *e.Message } func (e *CloudHsmInternalException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CloudHsmInternalException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *CloudHsmServiceException) ErrorMessage() string { return *e.Message } func (e *CloudHsmServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CloudHsmServiceException" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride diff --git a/service/cloudhsmv2/types/errors.go b/service/cloudhsmv2/types/errors.go index 60fb2492f96..13c9437c3bb 100644 --- a/service/cloudhsmv2/types/errors.go +++ b/service/cloudhsmv2/types/errors.go @@ -27,7 +27,7 @@ func (e *CloudHsmAccessDeniedException) ErrorMessage() string { return *e.Message } func (e *CloudHsmAccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CloudHsmAccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *CloudHsmInternalFailureException) ErrorMessage() string { return *e.Message } func (e *CloudHsmInternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CloudHsmInternalFailureException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *CloudHsmInvalidRequestException) ErrorMessage() string { return *e.Message } func (e *CloudHsmInvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CloudHsmInvalidRequestException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *CloudHsmResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *CloudHsmResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CloudHsmResourceNotFoundException" } return *e.ErrorCodeOverride @@ -132,7 +132,7 @@ func (e *CloudHsmServiceException) ErrorMessage() string { return *e.Message } func (e *CloudHsmServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CloudHsmServiceException" } return *e.ErrorCodeOverride @@ -159,7 +159,7 @@ func (e *CloudHsmTagException) ErrorMessage() string { return *e.Message } func (e *CloudHsmTagException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CloudHsmTagException" } return *e.ErrorCodeOverride diff --git a/service/cloudsearch/types/errors.go b/service/cloudsearch/types/errors.go index b2bb1025778..6bd5367aef3 100644 --- a/service/cloudsearch/types/errors.go +++ b/service/cloudsearch/types/errors.go @@ -28,7 +28,7 @@ func (e *BaseException) ErrorMessage() string { return *e.Message } func (e *BaseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BaseException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *DisabledOperationException) ErrorMessage() string { return *e.Message } func (e *DisabledOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DisabledAction" } return *e.ErrorCodeOverride @@ -86,7 +86,7 @@ func (e *InternalException) ErrorMessage() string { return *e.Message } func (e *InternalException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalException" } return *e.ErrorCodeOverride @@ -114,7 +114,7 @@ func (e *InvalidTypeException) ErrorMessage() string { return *e.Message } func (e *InvalidTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidType" } return *e.ErrorCodeOverride @@ -142,7 +142,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceeded" } return *e.ErrorCodeOverride @@ -171,7 +171,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExists" } return *e.ErrorCodeOverride @@ -200,7 +200,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFound" } return *e.ErrorCodeOverride @@ -228,7 +228,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/cloudsearchdomain/types/errors.go b/service/cloudsearchdomain/types/errors.go index 11af8e740aa..c7e9a7e5f37 100644 --- a/service/cloudsearchdomain/types/errors.go +++ b/service/cloudsearchdomain/types/errors.go @@ -28,7 +28,7 @@ func (e *DocumentServiceException) ErrorMessage() string { return *e.Message } func (e *DocumentServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DocumentServiceException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *SearchException) ErrorMessage() string { return *e.Message } func (e *SearchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SearchException" } return *e.ErrorCodeOverride diff --git a/service/cloudtrail/types/errors.go b/service/cloudtrail/types/errors.go index c434340e6d5..f86e36a01bc 100644 --- a/service/cloudtrail/types/errors.go +++ b/service/cloudtrail/types/errors.go @@ -27,7 +27,7 @@ func (e *AccountHasOngoingImportException) ErrorMessage() string { return *e.Message } func (e *AccountHasOngoingImportException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccountHasOngoingImportException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *AccountNotFoundException) ErrorMessage() string { return *e.Message } func (e *AccountNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccountNotFoundException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *AccountNotRegisteredException) ErrorMessage() string { return *e.Message } func (e *AccountNotRegisteredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccountNotRegisteredException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *AccountRegisteredException) ErrorMessage() string { return *e.Message } func (e *AccountRegisteredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccountRegisteredException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *CannotDelegateManagementAccountException) ErrorMessage() string { return *e.Message } func (e *CannotDelegateManagementAccountException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CannotDelegateManagementAccountException" } return *e.ErrorCodeOverride @@ -163,7 +163,7 @@ func (e *ChannelAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ChannelAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ChannelAlreadyExistsException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *ChannelARNInvalidException) ErrorMessage() string { return *e.Message } func (e *ChannelARNInvalidException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ChannelARNInvalidException" } return *e.ErrorCodeOverride @@ -216,7 +216,7 @@ func (e *ChannelExistsForEDSException) ErrorMessage() string { return *e.Message } func (e *ChannelExistsForEDSException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ChannelExistsForEDSException" } return *e.ErrorCodeOverride @@ -242,7 +242,7 @@ func (e *ChannelMaxLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ChannelMaxLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ChannelMaxLimitExceededException" } return *e.ErrorCodeOverride @@ -268,7 +268,7 @@ func (e *ChannelNotFoundException) ErrorMessage() string { return *e.Message } func (e *ChannelNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ChannelNotFoundException" } return *e.ErrorCodeOverride @@ -299,7 +299,7 @@ func (e *CloudTrailAccessNotEnabledException) ErrorMessage() string { return *e.Message } func (e *CloudTrailAccessNotEnabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CloudTrailAccessNotEnabledException" } return *e.ErrorCodeOverride @@ -335,7 +335,7 @@ func (e *CloudTrailARNInvalidException) ErrorMessage() string { return *e.Message } func (e *CloudTrailARNInvalidException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CloudTrailARNInvalidException" } return *e.ErrorCodeOverride @@ -364,7 +364,7 @@ func (e *CloudTrailInvalidClientTokenIdException) ErrorMessage() string { return *e.Message } func (e *CloudTrailInvalidClientTokenIdException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CloudTrailInvalidClientTokenIdException" } return *e.ErrorCodeOverride @@ -392,7 +392,7 @@ func (e *CloudWatchLogsDeliveryUnavailableException) ErrorMessage() string { return *e.Message } func (e *CloudWatchLogsDeliveryUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CloudWatchLogsDeliveryUnavailableException" } return *e.ErrorCodeOverride @@ -424,7 +424,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -451,7 +451,7 @@ func (e *DelegatedAdminAccountLimitExceededException) ErrorMessage() string { return *e.Message } func (e *DelegatedAdminAccountLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DelegatedAdminAccountLimitExceededException" } return *e.ErrorCodeOverride @@ -479,7 +479,7 @@ func (e *EventDataStoreAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *EventDataStoreAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EventDataStoreAlreadyExistsException" } return *e.ErrorCodeOverride @@ -508,7 +508,7 @@ func (e *EventDataStoreARNInvalidException) ErrorMessage() string { return *e.Message } func (e *EventDataStoreARNInvalidException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EventDataStoreARNInvalidException" } return *e.ErrorCodeOverride @@ -535,7 +535,7 @@ func (e *EventDataStoreHasOngoingImportException) ErrorMessage() string { return *e.Message } func (e *EventDataStoreHasOngoingImportException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EventDataStoreHasOngoingImportException" } return *e.ErrorCodeOverride @@ -563,7 +563,7 @@ func (e *EventDataStoreMaxLimitExceededException) ErrorMessage() string { return *e.Message } func (e *EventDataStoreMaxLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EventDataStoreMaxLimitExceededException" } return *e.ErrorCodeOverride @@ -591,7 +591,7 @@ func (e *EventDataStoreNotFoundException) ErrorMessage() string { return *e.Message } func (e *EventDataStoreNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EventDataStoreNotFoundException" } return *e.ErrorCodeOverride @@ -618,7 +618,7 @@ func (e *EventDataStoreTerminationProtectedException) ErrorMessage() string { return *e.Message } func (e *EventDataStoreTerminationProtectedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EventDataStoreTerminationProtectedException" } return *e.ErrorCodeOverride @@ -646,7 +646,7 @@ func (e *ImportNotFoundException) ErrorMessage() string { return *e.Message } func (e *ImportNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ImportNotFoundException" } return *e.ErrorCodeOverride @@ -672,7 +672,7 @@ func (e *InactiveEventDataStoreException) ErrorMessage() string { return *e.Message } func (e *InactiveEventDataStoreException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InactiveEventDataStoreException" } return *e.ErrorCodeOverride @@ -699,7 +699,7 @@ func (e *InactiveQueryException) ErrorMessage() string { return *e.Message } func (e *InactiveQueryException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InactiveQueryException" } return *e.ErrorCodeOverride @@ -726,7 +726,7 @@ func (e *InsightNotEnabledException) ErrorMessage() string { return *e.Message } func (e *InsightNotEnabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsightNotEnabledException" } return *e.ErrorCodeOverride @@ -754,7 +754,7 @@ func (e *InsufficientDependencyServiceAccessPermissionException) ErrorMessage() return *e.Message } func (e *InsufficientDependencyServiceAccessPermissionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientDependencyServiceAccessPermissionException" } return *e.ErrorCodeOverride @@ -783,7 +783,7 @@ func (e *InsufficientEncryptionPolicyException) ErrorMessage() string { return *e.Message } func (e *InsufficientEncryptionPolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientEncryptionPolicyException" } return *e.ErrorCodeOverride @@ -811,7 +811,7 @@ func (e *InsufficientS3BucketPolicyException) ErrorMessage() string { return *e.Message } func (e *InsufficientS3BucketPolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientS3BucketPolicyException" } return *e.ErrorCodeOverride @@ -840,7 +840,7 @@ func (e *InsufficientSnsTopicPolicyException) ErrorMessage() string { return *e.Message } func (e *InsufficientSnsTopicPolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientSnsTopicPolicyException" } return *e.ErrorCodeOverride @@ -869,7 +869,7 @@ func (e *InvalidCloudWatchLogsLogGroupArnException) ErrorMessage() string { return *e.Message } func (e *InvalidCloudWatchLogsLogGroupArnException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCloudWatchLogsLogGroupArnException" } return *e.ErrorCodeOverride @@ -897,7 +897,7 @@ func (e *InvalidCloudWatchLogsRoleArnException) ErrorMessage() string { return *e.Message } func (e *InvalidCloudWatchLogsRoleArnException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCloudWatchLogsRoleArnException" } return *e.ErrorCodeOverride @@ -929,7 +929,7 @@ func (e *InvalidDateRangeException) ErrorMessage() string { return *e.Message } func (e *InvalidDateRangeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDateRangeException" } return *e.ErrorCodeOverride @@ -956,7 +956,7 @@ func (e *InvalidEventCategoryException) ErrorMessage() string { return *e.Message } func (e *InvalidEventCategoryException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidEventCategoryException" } return *e.ErrorCodeOverride @@ -983,7 +983,7 @@ func (e *InvalidEventDataStoreCategoryException) ErrorMessage() string { return *e.Message } func (e *InvalidEventDataStoreCategoryException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidEventDataStoreCategoryException" } return *e.ErrorCodeOverride @@ -1011,7 +1011,7 @@ func (e *InvalidEventDataStoreStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidEventDataStoreStatusException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidEventDataStoreStatusException" } return *e.ErrorCodeOverride @@ -1062,7 +1062,7 @@ func (e *InvalidEventSelectorsException) ErrorMessage() string { return *e.Message } func (e *InvalidEventSelectorsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidEventSelectorsException" } return *e.ErrorCodeOverride @@ -1089,7 +1089,7 @@ func (e *InvalidHomeRegionException) ErrorMessage() string { return *e.Message } func (e *InvalidHomeRegionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidHomeRegionException" } return *e.ErrorCodeOverride @@ -1116,7 +1116,7 @@ func (e *InvalidImportSourceException) ErrorMessage() string { return *e.Message } func (e *InvalidImportSourceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidImportSourceException" } return *e.ErrorCodeOverride @@ -1145,7 +1145,7 @@ func (e *InvalidInsightSelectorsException) ErrorMessage() string { return *e.Message } func (e *InvalidInsightSelectorsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInsightSelectorsException" } return *e.ErrorCodeOverride @@ -1171,7 +1171,7 @@ func (e *InvalidKmsKeyIdException) ErrorMessage() string { return *e.Message } func (e *InvalidKmsKeyIdException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidKmsKeyIdException" } return *e.ErrorCodeOverride @@ -1197,7 +1197,7 @@ func (e *InvalidLookupAttributesException) ErrorMessage() string { return *e.Message } func (e *InvalidLookupAttributesException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidLookupAttributesException" } return *e.ErrorCodeOverride @@ -1223,7 +1223,7 @@ func (e *InvalidMaxResultsException) ErrorMessage() string { return *e.Message } func (e *InvalidMaxResultsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidMaxResultsException" } return *e.ErrorCodeOverride @@ -1250,7 +1250,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -1277,7 +1277,7 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterCombinationException" } return *e.ErrorCodeOverride @@ -1305,7 +1305,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -1335,7 +1335,7 @@ func (e *InvalidQueryStatementException) ErrorMessage() string { return *e.Message } func (e *InvalidQueryStatementException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidQueryStatementException" } return *e.ErrorCodeOverride @@ -1361,7 +1361,7 @@ func (e *InvalidQueryStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidQueryStatusException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidQueryStatusException" } return *e.ErrorCodeOverride @@ -1387,7 +1387,7 @@ func (e *InvalidS3BucketNameException) ErrorMessage() string { return *e.Message } func (e *InvalidS3BucketNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidS3BucketNameException" } return *e.ErrorCodeOverride @@ -1413,7 +1413,7 @@ func (e *InvalidS3PrefixException) ErrorMessage() string { return *e.Message } func (e *InvalidS3PrefixException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidS3PrefixException" } return *e.ErrorCodeOverride @@ -1439,7 +1439,7 @@ func (e *InvalidSnsTopicNameException) ErrorMessage() string { return *e.Message } func (e *InvalidSnsTopicNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSnsTopicNameException" } return *e.ErrorCodeOverride @@ -1465,7 +1465,7 @@ func (e *InvalidSourceException) ErrorMessage() string { return *e.Message } func (e *InvalidSourceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSourceException" } return *e.ErrorCodeOverride @@ -1492,7 +1492,7 @@ func (e *InvalidTagParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidTagParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTagParameterException" } return *e.ErrorCodeOverride @@ -1519,7 +1519,7 @@ func (e *InvalidTimeRangeException) ErrorMessage() string { return *e.Message } func (e *InvalidTimeRangeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTimeRangeException" } return *e.ErrorCodeOverride @@ -1545,7 +1545,7 @@ func (e *InvalidTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTokenException" } return *e.ErrorCodeOverride @@ -1587,7 +1587,7 @@ func (e *InvalidTrailNameException) ErrorMessage() string { return *e.Message } func (e *InvalidTrailNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTrailNameException" } return *e.ErrorCodeOverride @@ -1614,7 +1614,7 @@ func (e *KmsException) ErrorMessage() string { return *e.Message } func (e *KmsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KmsException" } return *e.ErrorCodeOverride @@ -1640,7 +1640,7 @@ func (e *KmsKeyDisabledException) ErrorMessage() string { return *e.Message } func (e *KmsKeyDisabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KmsKeyDisabledException" } return *e.ErrorCodeOverride @@ -1668,7 +1668,7 @@ func (e *KmsKeyNotFoundException) ErrorMessage() string { return *e.Message } func (e *KmsKeyNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KmsKeyNotFoundException" } return *e.ErrorCodeOverride @@ -1695,7 +1695,7 @@ func (e *MaxConcurrentQueriesException) ErrorMessage() string { return *e.Message } func (e *MaxConcurrentQueriesException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaxConcurrentQueriesException" } return *e.ErrorCodeOverride @@ -1721,7 +1721,7 @@ func (e *MaximumNumberOfTrailsExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumNumberOfTrailsExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaximumNumberOfTrailsExceededException" } return *e.ErrorCodeOverride @@ -1750,7 +1750,7 @@ func (e *NoManagementAccountSLRExistsException) ErrorMessage() string { return *e.Message } func (e *NoManagementAccountSLRExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoManagementAccountSLRExistsException" } return *e.ErrorCodeOverride @@ -1779,7 +1779,7 @@ func (e *NotOrganizationManagementAccountException) ErrorMessage() string { return *e.Message } func (e *NotOrganizationManagementAccountException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotOrganizationManagementAccountException" } return *e.ErrorCodeOverride @@ -1813,7 +1813,7 @@ func (e *NotOrganizationMasterAccountException) ErrorMessage() string { return *e.Message } func (e *NotOrganizationMasterAccountException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotOrganizationMasterAccountException" } return *e.ErrorCodeOverride @@ -1841,7 +1841,7 @@ func (e *OperationNotPermittedException) ErrorMessage() string { return *e.Message } func (e *OperationNotPermittedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationNotPermittedException" } return *e.ErrorCodeOverride @@ -1869,7 +1869,7 @@ func (e *OrganizationNotInAllFeaturesModeException) ErrorMessage() string { return *e.Message } func (e *OrganizationNotInAllFeaturesModeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OrganizationNotInAllFeaturesModeException" } return *e.ErrorCodeOverride @@ -1899,7 +1899,7 @@ func (e *OrganizationsNotInUseException) ErrorMessage() string { return *e.Message } func (e *OrganizationsNotInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OrganizationsNotInUseException" } return *e.ErrorCodeOverride @@ -1925,7 +1925,7 @@ func (e *QueryIdNotFoundException) ErrorMessage() string { return *e.Message } func (e *QueryIdNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "QueryIdNotFoundException" } return *e.ErrorCodeOverride @@ -1953,7 +1953,7 @@ func (e *ResourceARNNotValidException) ErrorMessage() string { return *e.Message } func (e *ResourceARNNotValidException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceARNNotValidException" } return *e.ErrorCodeOverride @@ -1979,7 +1979,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -2005,7 +2005,7 @@ func (e *ResourcePolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourcePolicyNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourcePolicyNotFoundException" } return *e.ErrorCodeOverride @@ -2042,7 +2042,7 @@ func (e *ResourcePolicyNotValidException) ErrorMessage() string { return *e.Message } func (e *ResourcePolicyNotValidException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourcePolicyNotValidException" } return *e.ErrorCodeOverride @@ -2069,7 +2069,7 @@ func (e *ResourceTypeNotSupportedException) ErrorMessage() string { return *e.Message } func (e *ResourceTypeNotSupportedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceTypeNotSupportedException" } return *e.ErrorCodeOverride @@ -2095,7 +2095,7 @@ func (e *S3BucketDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *S3BucketDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "S3BucketDoesNotExistException" } return *e.ErrorCodeOverride @@ -2122,7 +2122,7 @@ func (e *TagsLimitExceededException) ErrorMessage() string { return *e.Message } func (e *TagsLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagsLimitExceededException" } return *e.ErrorCodeOverride @@ -2148,7 +2148,7 @@ func (e *TrailAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *TrailAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TrailAlreadyExistsException" } return *e.ErrorCodeOverride @@ -2174,7 +2174,7 @@ func (e *TrailNotFoundException) ErrorMessage() string { return *e.Message } func (e *TrailNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TrailNotFoundException" } return *e.ErrorCodeOverride @@ -2200,7 +2200,7 @@ func (e *TrailNotProvidedException) ErrorMessage() string { return *e.Message } func (e *TrailNotProvidedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TrailNotProvidedException" } return *e.ErrorCodeOverride @@ -2226,7 +2226,7 @@ func (e *UnsupportedOperationException) ErrorMessage() string { return *e.Message } func (e *UnsupportedOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedOperationException" } return *e.ErrorCodeOverride diff --git a/service/cloudtraildata/types/errors.go b/service/cloudtraildata/types/errors.go index c4b04e4117b..35b60796406 100644 --- a/service/cloudtraildata/types/errors.go +++ b/service/cloudtraildata/types/errors.go @@ -26,7 +26,7 @@ func (e *ChannelInsufficientPermission) ErrorMessage() string { return *e.Message } func (e *ChannelInsufficientPermission) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ChannelInsufficientPermission" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ChannelNotFound) ErrorMessage() string { return *e.Message } func (e *ChannelNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ChannelNotFound" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ChannelUnsupportedSchema) ErrorMessage() string { return *e.Message } func (e *ChannelUnsupportedSchema) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ChannelUnsupportedSchema" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *DuplicatedAuditEventId) ErrorMessage() string { return *e.Message } func (e *DuplicatedAuditEventId) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicatedAuditEventId" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *InvalidChannelARN) ErrorMessage() string { return *e.Message } func (e *InvalidChannelARN) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidChannelARN" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *UnsupportedOperationException) ErrorMessage() string { return *e.Message } func (e *UnsupportedOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedOperationException" } return *e.ErrorCodeOverride diff --git a/service/cloudwatch/types/errors.go b/service/cloudwatch/types/errors.go index fea1839a616..6b4dbd93a01 100644 --- a/service/cloudwatch/types/errors.go +++ b/service/cloudwatch/types/errors.go @@ -26,7 +26,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *DashboardInvalidInputError) ErrorMessage() string { return *e.Message } func (e *DashboardInvalidInputError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterInput" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *DashboardNotFoundError) ErrorMessage() string { return *e.Message } func (e *DashboardNotFoundError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFound" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *InternalServiceFault) ErrorMessage() string { return *e.Message } func (e *InternalServiceFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceError" } return *e.ErrorCodeOverride @@ -132,7 +132,7 @@ func (e *InvalidFormatFault) ErrorMessage() string { return *e.Message } func (e *InvalidFormatFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidFormat" } return *e.ErrorCodeOverride @@ -158,7 +158,7 @@ func (e *InvalidNextToken) ErrorMessage() string { return *e.Message } func (e *InvalidNextToken) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextToken" } return *e.ErrorCodeOverride @@ -184,7 +184,7 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterCombination" } return *e.ErrorCodeOverride @@ -212,7 +212,7 @@ func (e *InvalidParameterValueException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterValue" } return *e.ErrorCodeOverride @@ -238,7 +238,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -264,7 +264,7 @@ func (e *LimitExceededFault) ErrorMessage() string { return *e.Message } func (e *LimitExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceeded" } return *e.ErrorCodeOverride @@ -290,7 +290,7 @@ func (e *MissingRequiredParameterException) ErrorMessage() string { return *e.Message } func (e *MissingRequiredParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MissingParameter" } return *e.ErrorCodeOverride @@ -316,7 +316,7 @@ func (e *ResourceNotFound) ErrorMessage() string { return *e.Message } func (e *ResourceNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFound" } return *e.ErrorCodeOverride @@ -345,7 +345,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/cloudwatchevents/types/errors.go b/service/cloudwatchevents/types/errors.go index 427c4c046b4..fb8b0a0a165 100644 --- a/service/cloudwatchevents/types/errors.go +++ b/service/cloudwatchevents/types/errors.go @@ -26,7 +26,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *IllegalStatusException) ErrorMessage() string { return *e.Message } func (e *IllegalStatusException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IllegalStatusException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *InternalException) ErrorMessage() string { return *e.Message } func (e *InternalException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *InvalidEventPatternException) ErrorMessage() string { return *e.Message } func (e *InvalidEventPatternException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidEventPatternException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *InvalidStateException) ErrorMessage() string { return *e.Message } func (e *InvalidStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidStateException" } return *e.ErrorCodeOverride @@ -158,7 +158,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *ManagedRuleException) ErrorMessage() string { return *e.Message } func (e *ManagedRuleException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ManagedRuleException" } return *e.ErrorCodeOverride @@ -215,7 +215,7 @@ func (e *OperationDisabledException) ErrorMessage() string { return *e.Message } func (e *OperationDisabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationDisabledException" } return *e.ErrorCodeOverride @@ -241,7 +241,7 @@ func (e *PolicyLengthExceededException) ErrorMessage() string { return *e.Message } func (e *PolicyLengthExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PolicyLengthExceededException" } return *e.ErrorCodeOverride @@ -267,7 +267,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -293,7 +293,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/cloudwatchlogs/types/errors.go b/service/cloudwatchlogs/types/errors.go index 82355926bfa..b7e3437d7f1 100644 --- a/service/cloudwatchlogs/types/errors.go +++ b/service/cloudwatchlogs/types/errors.go @@ -30,7 +30,7 @@ func (e *DataAlreadyAcceptedException) ErrorMessage() string { return *e.Message } func (e *DataAlreadyAcceptedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DataAlreadyAcceptedException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *InvalidOperationException) ErrorMessage() string { return *e.Message } func (e *InvalidOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOperationException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -113,7 +113,7 @@ func (e *InvalidSequenceTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidSequenceTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSequenceTokenException" } return *e.ErrorCodeOverride @@ -139,7 +139,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -172,7 +172,7 @@ func (e *MalformedQueryException) ErrorMessage() string { return *e.Message } func (e *MalformedQueryException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MalformedQueryException" } return *e.ErrorCodeOverride @@ -198,7 +198,7 @@ func (e *OperationAbortedException) ErrorMessage() string { return *e.Message } func (e *OperationAbortedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationAbortedException" } return *e.ErrorCodeOverride @@ -224,7 +224,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -250,7 +250,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -276,7 +276,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -304,7 +304,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -331,7 +331,7 @@ func (e *UnrecognizedClientException) ErrorMessage() string { return *e.Message } func (e *UnrecognizedClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnrecognizedClientException" } return *e.ErrorCodeOverride diff --git a/service/codeartifact/types/errors.go b/service/codeartifact/types/errors.go index c8a62642501..09f16415ffb 100644 --- a/service/codeartifact/types/errors.go +++ b/service/codeartifact/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -112,7 +112,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -142,7 +142,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -170,7 +170,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -199,7 +199,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/codebuild/types/errors.go b/service/codebuild/types/errors.go index a29e45d95ab..c13454af741 100644 --- a/service/codebuild/types/errors.go +++ b/service/codebuild/types/errors.go @@ -27,7 +27,7 @@ func (e *AccountLimitExceededException) ErrorMessage() string { return *e.Message } func (e *AccountLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccountLimitExceededException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *InvalidInputException) ErrorMessage() string { return *e.Message } func (e *InvalidInputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *OAuthProviderException) ErrorMessage() string { return *e.Message } func (e *OAuthProviderException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OAuthProviderException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -132,7 +132,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/codecatalyst/types/errors.go b/service/codecatalyst/types/errors.go index 87db5f48e5a..83d630d1b73 100644 --- a/service/codecatalyst/types/errors.go +++ b/service/codecatalyst/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -111,7 +111,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -137,7 +137,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -165,7 +165,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/codecommit/types/errors.go b/service/codecommit/types/errors.go index 2c76fcb2a23..ed7ffbf95a6 100644 --- a/service/codecommit/types/errors.go +++ b/service/codecommit/types/errors.go @@ -26,7 +26,7 @@ func (e *ActorDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *ActorDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ActorDoesNotExistException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ApprovalRuleContentRequiredException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleContentRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ApprovalRuleContentRequiredException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *ApprovalRuleDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ApprovalRuleDoesNotExistException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *ApprovalRuleNameAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleNameAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ApprovalRuleNameAlreadyExistsException" } return *e.ErrorCodeOverride @@ -136,7 +136,7 @@ func (e *ApprovalRuleNameRequiredException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleNameRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ApprovalRuleNameRequiredException" } return *e.ErrorCodeOverride @@ -163,7 +163,7 @@ func (e *ApprovalRuleTemplateContentRequiredException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleTemplateContentRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ApprovalRuleTemplateContentRequiredException" } return *e.ErrorCodeOverride @@ -193,7 +193,7 @@ func (e *ApprovalRuleTemplateDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleTemplateDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ApprovalRuleTemplateDoesNotExistException" } return *e.ErrorCodeOverride @@ -223,7 +223,7 @@ func (e *ApprovalRuleTemplateInUseException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleTemplateInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ApprovalRuleTemplateInUseException" } return *e.ErrorCodeOverride @@ -253,7 +253,7 @@ func (e *ApprovalRuleTemplateNameAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleTemplateNameAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ApprovalRuleTemplateNameAlreadyExistsException" } return *e.ErrorCodeOverride @@ -281,7 +281,7 @@ func (e *ApprovalRuleTemplateNameRequiredException) ErrorMessage() string { return *e.Message } func (e *ApprovalRuleTemplateNameRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ApprovalRuleTemplateNameRequiredException" } return *e.ErrorCodeOverride @@ -309,7 +309,7 @@ func (e *ApprovalStateRequiredException) ErrorMessage() string { return *e.Message } func (e *ApprovalStateRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ApprovalStateRequiredException" } return *e.ErrorCodeOverride @@ -335,7 +335,7 @@ func (e *AuthorDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *AuthorDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AuthorDoesNotExistException" } return *e.ErrorCodeOverride @@ -362,7 +362,7 @@ func (e *BeforeCommitIdAndAfterCommitIdAreSameException) ErrorMessage() string { return *e.Message } func (e *BeforeCommitIdAndAfterCommitIdAreSameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BeforeCommitIdAndAfterCommitIdAreSameException" } return *e.ErrorCodeOverride @@ -390,7 +390,7 @@ func (e *BlobIdDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *BlobIdDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BlobIdDoesNotExistException" } return *e.ErrorCodeOverride @@ -416,7 +416,7 @@ func (e *BlobIdRequiredException) ErrorMessage() string { return *e.Message } func (e *BlobIdRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BlobIdRequiredException" } return *e.ErrorCodeOverride @@ -442,7 +442,7 @@ func (e *BranchDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *BranchDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BranchDoesNotExistException" } return *e.ErrorCodeOverride @@ -469,7 +469,7 @@ func (e *BranchNameExistsException) ErrorMessage() string { return *e.Message } func (e *BranchNameExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BranchNameExistsException" } return *e.ErrorCodeOverride @@ -497,7 +497,7 @@ func (e *BranchNameIsTagNameException) ErrorMessage() string { return *e.Message } func (e *BranchNameIsTagNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BranchNameIsTagNameException" } return *e.ErrorCodeOverride @@ -523,7 +523,7 @@ func (e *BranchNameRequiredException) ErrorMessage() string { return *e.Message } func (e *BranchNameRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BranchNameRequiredException" } return *e.ErrorCodeOverride @@ -550,7 +550,7 @@ func (e *CannotDeleteApprovalRuleFromTemplateException) ErrorMessage() string { return *e.Message } func (e *CannotDeleteApprovalRuleFromTemplateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CannotDeleteApprovalRuleFromTemplateException" } return *e.ErrorCodeOverride @@ -579,7 +579,7 @@ func (e *CannotModifyApprovalRuleFromTemplateException) ErrorMessage() string { return *e.Message } func (e *CannotModifyApprovalRuleFromTemplateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CannotModifyApprovalRuleFromTemplateException" } return *e.ErrorCodeOverride @@ -611,7 +611,7 @@ func (e *ClientRequestTokenRequiredException) ErrorMessage() string { return *e.Message } func (e *ClientRequestTokenRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClientRequestTokenRequiredException" } return *e.ErrorCodeOverride @@ -640,7 +640,7 @@ func (e *CommentContentRequiredException) ErrorMessage() string { return *e.Message } func (e *CommentContentRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CommentContentRequiredException" } return *e.ErrorCodeOverride @@ -666,7 +666,7 @@ func (e *CommentContentSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *CommentContentSizeLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CommentContentSizeLimitExceededException" } return *e.ErrorCodeOverride @@ -695,7 +695,7 @@ func (e *CommentDeletedException) ErrorMessage() string { return *e.Message } func (e *CommentDeletedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CommentDeletedException" } return *e.ErrorCodeOverride @@ -722,7 +722,7 @@ func (e *CommentDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *CommentDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CommentDoesNotExistException" } return *e.ErrorCodeOverride @@ -748,7 +748,7 @@ func (e *CommentIdRequiredException) ErrorMessage() string { return *e.Message } func (e *CommentIdRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CommentIdRequiredException" } return *e.ErrorCodeOverride @@ -775,7 +775,7 @@ func (e *CommentNotCreatedByCallerException) ErrorMessage() string { return *e.Message } func (e *CommentNotCreatedByCallerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CommentNotCreatedByCallerException" } return *e.ErrorCodeOverride @@ -804,7 +804,7 @@ func (e *CommitDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *CommitDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CommitDoesNotExistException" } return *e.ErrorCodeOverride @@ -830,7 +830,7 @@ func (e *CommitIdDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *CommitIdDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CommitIdDoesNotExistException" } return *e.ErrorCodeOverride @@ -856,7 +856,7 @@ func (e *CommitIdRequiredException) ErrorMessage() string { return *e.Message } func (e *CommitIdRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CommitIdRequiredException" } return *e.ErrorCodeOverride @@ -883,7 +883,7 @@ func (e *CommitIdsLimitExceededException) ErrorMessage() string { return *e.Message } func (e *CommitIdsLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CommitIdsLimitExceededException" } return *e.ErrorCodeOverride @@ -910,7 +910,7 @@ func (e *CommitIdsListRequiredException) ErrorMessage() string { return *e.Message } func (e *CommitIdsListRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CommitIdsListRequiredException" } return *e.ErrorCodeOverride @@ -936,7 +936,7 @@ func (e *CommitMessageLengthExceededException) ErrorMessage() string { return *e.Message } func (e *CommitMessageLengthExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CommitMessageLengthExceededException" } return *e.ErrorCodeOverride @@ -964,7 +964,7 @@ func (e *CommitRequiredException) ErrorMessage() string { return *e.Message } func (e *CommitRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CommitRequiredException" } return *e.ErrorCodeOverride @@ -992,7 +992,7 @@ func (e *ConcurrentReferenceUpdateException) ErrorMessage() string { return *e.Message } func (e *ConcurrentReferenceUpdateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentReferenceUpdateException" } return *e.ErrorCodeOverride @@ -1022,7 +1022,7 @@ func (e *DefaultBranchCannotBeDeletedException) ErrorMessage() string { return *e.Message } func (e *DefaultBranchCannotBeDeletedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DefaultBranchCannotBeDeletedException" } return *e.ErrorCodeOverride @@ -1052,7 +1052,7 @@ func (e *DirectoryNameConflictsWithFileNameException) ErrorMessage() string { return *e.Message } func (e *DirectoryNameConflictsWithFileNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DirectoryNameConflictsWithFileNameException" } return *e.ErrorCodeOverride @@ -1080,7 +1080,7 @@ func (e *EncryptionIntegrityChecksFailedException) ErrorMessage() string { return *e.Message } func (e *EncryptionIntegrityChecksFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EncryptionIntegrityChecksFailedException" } return *e.ErrorCodeOverride @@ -1108,7 +1108,7 @@ func (e *EncryptionKeyAccessDeniedException) ErrorMessage() string { return *e.Message } func (e *EncryptionKeyAccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EncryptionKeyAccessDeniedException" } return *e.ErrorCodeOverride @@ -1136,7 +1136,7 @@ func (e *EncryptionKeyDisabledException) ErrorMessage() string { return *e.Message } func (e *EncryptionKeyDisabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EncryptionKeyDisabledException" } return *e.ErrorCodeOverride @@ -1162,7 +1162,7 @@ func (e *EncryptionKeyNotFoundException) ErrorMessage() string { return *e.Message } func (e *EncryptionKeyNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EncryptionKeyNotFoundException" } return *e.ErrorCodeOverride @@ -1188,7 +1188,7 @@ func (e *EncryptionKeyUnavailableException) ErrorMessage() string { return *e.Message } func (e *EncryptionKeyUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EncryptionKeyUnavailableException" } return *e.ErrorCodeOverride @@ -1216,7 +1216,7 @@ func (e *FileContentAndSourceFileSpecifiedException) ErrorMessage() string { return *e.Message } func (e *FileContentAndSourceFileSpecifiedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FileContentAndSourceFileSpecifiedException" } return *e.ErrorCodeOverride @@ -1245,7 +1245,7 @@ func (e *FileContentRequiredException) ErrorMessage() string { return *e.Message } func (e *FileContentRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FileContentRequiredException" } return *e.ErrorCodeOverride @@ -1273,7 +1273,7 @@ func (e *FileContentSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *FileContentSizeLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FileContentSizeLimitExceededException" } return *e.ErrorCodeOverride @@ -1302,7 +1302,7 @@ func (e *FileDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *FileDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FileDoesNotExistException" } return *e.ErrorCodeOverride @@ -1329,7 +1329,7 @@ func (e *FileEntryRequiredException) ErrorMessage() string { return *e.Message } func (e *FileEntryRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FileEntryRequiredException" } return *e.ErrorCodeOverride @@ -1356,7 +1356,7 @@ func (e *FileModeRequiredException) ErrorMessage() string { return *e.Message } func (e *FileModeRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FileModeRequiredException" } return *e.ErrorCodeOverride @@ -1384,7 +1384,7 @@ func (e *FileNameConflictsWithDirectoryNameException) ErrorMessage() string { return *e.Message } func (e *FileNameConflictsWithDirectoryNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FileNameConflictsWithDirectoryNameException" } return *e.ErrorCodeOverride @@ -1414,7 +1414,7 @@ func (e *FilePathConflictsWithSubmodulePathException) ErrorMessage() string { return *e.Message } func (e *FilePathConflictsWithSubmodulePathException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FilePathConflictsWithSubmodulePathException" } return *e.ErrorCodeOverride @@ -1444,7 +1444,7 @@ func (e *FileTooLargeException) ErrorMessage() string { return *e.Message } func (e *FileTooLargeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FileTooLargeException" } return *e.ErrorCodeOverride @@ -1473,7 +1473,7 @@ func (e *FolderContentSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *FolderContentSizeLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FolderContentSizeLimitExceededException" } return *e.ErrorCodeOverride @@ -1502,7 +1502,7 @@ func (e *FolderDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *FolderDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FolderDoesNotExistException" } return *e.ErrorCodeOverride @@ -1529,7 +1529,7 @@ func (e *IdempotencyParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotencyParameterMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IdempotencyParameterMismatchException" } return *e.ErrorCodeOverride @@ -1559,7 +1559,7 @@ func (e *InvalidActorArnException) ErrorMessage() string { return *e.Message } func (e *InvalidActorArnException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidActorArnException" } return *e.ErrorCodeOverride @@ -1585,7 +1585,7 @@ func (e *InvalidApprovalRuleContentException) ErrorMessage() string { return *e.Message } func (e *InvalidApprovalRuleContentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidApprovalRuleContentException" } return *e.ErrorCodeOverride @@ -1613,7 +1613,7 @@ func (e *InvalidApprovalRuleNameException) ErrorMessage() string { return *e.Message } func (e *InvalidApprovalRuleNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidApprovalRuleNameException" } return *e.ErrorCodeOverride @@ -1639,7 +1639,7 @@ func (e *InvalidApprovalRuleTemplateContentException) ErrorMessage() string { return *e.Message } func (e *InvalidApprovalRuleTemplateContentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidApprovalRuleTemplateContentException" } return *e.ErrorCodeOverride @@ -1670,7 +1670,7 @@ func (e *InvalidApprovalRuleTemplateDescriptionException) ErrorMessage() string return *e.Message } func (e *InvalidApprovalRuleTemplateDescriptionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidApprovalRuleTemplateDescriptionException" } return *e.ErrorCodeOverride @@ -1701,7 +1701,7 @@ func (e *InvalidApprovalRuleTemplateNameException) ErrorMessage() string { return *e.Message } func (e *InvalidApprovalRuleTemplateNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidApprovalRuleTemplateNameException" } return *e.ErrorCodeOverride @@ -1730,7 +1730,7 @@ func (e *InvalidApprovalStateException) ErrorMessage() string { return *e.Message } func (e *InvalidApprovalStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidApprovalStateException" } return *e.ErrorCodeOverride @@ -1757,7 +1757,7 @@ func (e *InvalidAuthorArnException) ErrorMessage() string { return *e.Message } func (e *InvalidAuthorArnException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAuthorArnException" } return *e.ErrorCodeOverride @@ -1783,7 +1783,7 @@ func (e *InvalidBlobIdException) ErrorMessage() string { return *e.Message } func (e *InvalidBlobIdException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidBlobIdException" } return *e.ErrorCodeOverride @@ -1809,7 +1809,7 @@ func (e *InvalidBranchNameException) ErrorMessage() string { return *e.Message } func (e *InvalidBranchNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidBranchNameException" } return *e.ErrorCodeOverride @@ -1835,7 +1835,7 @@ func (e *InvalidClientRequestTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidClientRequestTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidClientRequestTokenException" } return *e.ErrorCodeOverride @@ -1864,7 +1864,7 @@ func (e *InvalidCommentIdException) ErrorMessage() string { return *e.Message } func (e *InvalidCommentIdException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCommentIdException" } return *e.ErrorCodeOverride @@ -1890,7 +1890,7 @@ func (e *InvalidCommitException) ErrorMessage() string { return *e.Message } func (e *InvalidCommitException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCommitException" } return *e.ErrorCodeOverride @@ -1916,7 +1916,7 @@ func (e *InvalidCommitIdException) ErrorMessage() string { return *e.Message } func (e *InvalidCommitIdException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCommitIdException" } return *e.ErrorCodeOverride @@ -1942,7 +1942,7 @@ func (e *InvalidConflictDetailLevelException) ErrorMessage() string { return *e.Message } func (e *InvalidConflictDetailLevelException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidConflictDetailLevelException" } return *e.ErrorCodeOverride @@ -1970,7 +1970,7 @@ func (e *InvalidConflictResolutionException) ErrorMessage() string { return *e.Message } func (e *InvalidConflictResolutionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidConflictResolutionException" } return *e.ErrorCodeOverride @@ -1998,7 +1998,7 @@ func (e *InvalidConflictResolutionStrategyException) ErrorMessage() string { return *e.Message } func (e *InvalidConflictResolutionStrategyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidConflictResolutionStrategyException" } return *e.ErrorCodeOverride @@ -2026,7 +2026,7 @@ func (e *InvalidContinuationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidContinuationTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidContinuationTokenException" } return *e.ErrorCodeOverride @@ -2052,7 +2052,7 @@ func (e *InvalidDeletionParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidDeletionParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDeletionParameterException" } return *e.ErrorCodeOverride @@ -2079,7 +2079,7 @@ func (e *InvalidDescriptionException) ErrorMessage() string { return *e.Message } func (e *InvalidDescriptionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDescriptionException" } return *e.ErrorCodeOverride @@ -2106,7 +2106,7 @@ func (e *InvalidDestinationCommitSpecifierException) ErrorMessage() string { return *e.Message } func (e *InvalidDestinationCommitSpecifierException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDestinationCommitSpecifierException" } return *e.ErrorCodeOverride @@ -2136,7 +2136,7 @@ func (e *InvalidEmailException) ErrorMessage() string { return *e.Message } func (e *InvalidEmailException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidEmailException" } return *e.ErrorCodeOverride @@ -2163,7 +2163,7 @@ func (e *InvalidFileLocationException) ErrorMessage() string { return *e.Message } func (e *InvalidFileLocationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidFileLocationException" } return *e.ErrorCodeOverride @@ -2190,7 +2190,7 @@ func (e *InvalidFileModeException) ErrorMessage() string { return *e.Message } func (e *InvalidFileModeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidFileModeException" } return *e.ErrorCodeOverride @@ -2217,7 +2217,7 @@ func (e *InvalidFilePositionException) ErrorMessage() string { return *e.Message } func (e *InvalidFilePositionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidFilePositionException" } return *e.ErrorCodeOverride @@ -2243,7 +2243,7 @@ func (e *InvalidMaxConflictFilesException) ErrorMessage() string { return *e.Message } func (e *InvalidMaxConflictFilesException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidMaxConflictFilesException" } return *e.ErrorCodeOverride @@ -2269,7 +2269,7 @@ func (e *InvalidMaxMergeHunksException) ErrorMessage() string { return *e.Message } func (e *InvalidMaxMergeHunksException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidMaxMergeHunksException" } return *e.ErrorCodeOverride @@ -2295,7 +2295,7 @@ func (e *InvalidMaxResultsException) ErrorMessage() string { return *e.Message } func (e *InvalidMaxResultsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidMaxResultsException" } return *e.ErrorCodeOverride @@ -2322,7 +2322,7 @@ func (e *InvalidMergeOptionException) ErrorMessage() string { return *e.Message } func (e *InvalidMergeOptionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidMergeOptionException" } return *e.ErrorCodeOverride @@ -2348,7 +2348,7 @@ func (e *InvalidOrderException) ErrorMessage() string { return *e.Message } func (e *InvalidOrderException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOrderException" } return *e.ErrorCodeOverride @@ -2374,7 +2374,7 @@ func (e *InvalidOverrideStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidOverrideStatusException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOverrideStatusException" } return *e.ErrorCodeOverride @@ -2402,7 +2402,7 @@ func (e *InvalidParentCommitIdException) ErrorMessage() string { return *e.Message } func (e *InvalidParentCommitIdException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParentCommitIdException" } return *e.ErrorCodeOverride @@ -2428,7 +2428,7 @@ func (e *InvalidPathException) ErrorMessage() string { return *e.Message } func (e *InvalidPathException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPathException" } return *e.ErrorCodeOverride @@ -2454,7 +2454,7 @@ func (e *InvalidPullRequestEventTypeException) ErrorMessage() string { return *e.Message } func (e *InvalidPullRequestEventTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPullRequestEventTypeException" } return *e.ErrorCodeOverride @@ -2483,7 +2483,7 @@ func (e *InvalidPullRequestIdException) ErrorMessage() string { return *e.Message } func (e *InvalidPullRequestIdException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPullRequestIdException" } return *e.ErrorCodeOverride @@ -2509,7 +2509,7 @@ func (e *InvalidPullRequestStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidPullRequestStatusException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPullRequestStatusException" } return *e.ErrorCodeOverride @@ -2536,7 +2536,7 @@ func (e *InvalidPullRequestStatusUpdateException) ErrorMessage() string { return *e.Message } func (e *InvalidPullRequestStatusUpdateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPullRequestStatusUpdateException" } return *e.ErrorCodeOverride @@ -2564,7 +2564,7 @@ func (e *InvalidReactionUserArnException) ErrorMessage() string { return *e.Message } func (e *InvalidReactionUserArnException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidReactionUserArnException" } return *e.ErrorCodeOverride @@ -2592,7 +2592,7 @@ func (e *InvalidReactionValueException) ErrorMessage() string { return *e.Message } func (e *InvalidReactionValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidReactionValueException" } return *e.ErrorCodeOverride @@ -2622,7 +2622,7 @@ func (e *InvalidReferenceNameException) ErrorMessage() string { return *e.Message } func (e *InvalidReferenceNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidReferenceNameException" } return *e.ErrorCodeOverride @@ -2649,7 +2649,7 @@ func (e *InvalidRelativeFileVersionEnumException) ErrorMessage() string { return *e.Message } func (e *InvalidRelativeFileVersionEnumException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRelativeFileVersionEnumException" } return *e.ErrorCodeOverride @@ -2678,7 +2678,7 @@ func (e *InvalidReplacementContentException) ErrorMessage() string { return *e.Message } func (e *InvalidReplacementContentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidReplacementContentException" } return *e.ErrorCodeOverride @@ -2707,7 +2707,7 @@ func (e *InvalidReplacementTypeException) ErrorMessage() string { return *e.Message } func (e *InvalidReplacementTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidReplacementTypeException" } return *e.ErrorCodeOverride @@ -2733,7 +2733,7 @@ func (e *InvalidRepositoryDescriptionException) ErrorMessage() string { return *e.Message } func (e *InvalidRepositoryDescriptionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRepositoryDescriptionException" } return *e.ErrorCodeOverride @@ -2763,7 +2763,7 @@ func (e *InvalidRepositoryNameException) ErrorMessage() string { return *e.Message } func (e *InvalidRepositoryNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRepositoryNameException" } return *e.ErrorCodeOverride @@ -2789,7 +2789,7 @@ func (e *InvalidRepositoryTriggerBranchNameException) ErrorMessage() string { return *e.Message } func (e *InvalidRepositoryTriggerBranchNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRepositoryTriggerBranchNameException" } return *e.ErrorCodeOverride @@ -2817,7 +2817,7 @@ func (e *InvalidRepositoryTriggerCustomDataException) ErrorMessage() string { return *e.Message } func (e *InvalidRepositoryTriggerCustomDataException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRepositoryTriggerCustomDataException" } return *e.ErrorCodeOverride @@ -2847,7 +2847,7 @@ func (e *InvalidRepositoryTriggerDestinationArnException) ErrorMessage() string return *e.Message } func (e *InvalidRepositoryTriggerDestinationArnException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRepositoryTriggerDestinationArnException" } return *e.ErrorCodeOverride @@ -2876,7 +2876,7 @@ func (e *InvalidRepositoryTriggerEventsException) ErrorMessage() string { return *e.Message } func (e *InvalidRepositoryTriggerEventsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRepositoryTriggerEventsException" } return *e.ErrorCodeOverride @@ -2904,7 +2904,7 @@ func (e *InvalidRepositoryTriggerNameException) ErrorMessage() string { return *e.Message } func (e *InvalidRepositoryTriggerNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRepositoryTriggerNameException" } return *e.ErrorCodeOverride @@ -2934,7 +2934,7 @@ func (e *InvalidRepositoryTriggerRegionException) ErrorMessage() string { return *e.Message } func (e *InvalidRepositoryTriggerRegionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRepositoryTriggerRegionException" } return *e.ErrorCodeOverride @@ -2965,7 +2965,7 @@ func (e *InvalidResourceArnException) ErrorMessage() string { return *e.Message } func (e *InvalidResourceArnException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidResourceArnException" } return *e.ErrorCodeOverride @@ -2991,7 +2991,7 @@ func (e *InvalidRevisionIdException) ErrorMessage() string { return *e.Message } func (e *InvalidRevisionIdException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRevisionIdException" } return *e.ErrorCodeOverride @@ -3017,7 +3017,7 @@ func (e *InvalidRuleContentSha256Exception) ErrorMessage() string { return *e.Message } func (e *InvalidRuleContentSha256Exception) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRuleContentSha256Exception" } return *e.ErrorCodeOverride @@ -3043,7 +3043,7 @@ func (e *InvalidSortByException) ErrorMessage() string { return *e.Message } func (e *InvalidSortByException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSortByException" } return *e.ErrorCodeOverride @@ -3070,7 +3070,7 @@ func (e *InvalidSourceCommitSpecifierException) ErrorMessage() string { return *e.Message } func (e *InvalidSourceCommitSpecifierException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSourceCommitSpecifierException" } return *e.ErrorCodeOverride @@ -3098,7 +3098,7 @@ func (e *InvalidSystemTagUsageException) ErrorMessage() string { return *e.Message } func (e *InvalidSystemTagUsageException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSystemTagUsageException" } return *e.ErrorCodeOverride @@ -3124,7 +3124,7 @@ func (e *InvalidTagKeysListException) ErrorMessage() string { return *e.Message } func (e *InvalidTagKeysListException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTagKeysListException" } return *e.ErrorCodeOverride @@ -3150,7 +3150,7 @@ func (e *InvalidTagsMapException) ErrorMessage() string { return *e.Message } func (e *InvalidTagsMapException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTagsMapException" } return *e.ErrorCodeOverride @@ -3176,7 +3176,7 @@ func (e *InvalidTargetBranchException) ErrorMessage() string { return *e.Message } func (e *InvalidTargetBranchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTargetBranchException" } return *e.ErrorCodeOverride @@ -3204,7 +3204,7 @@ func (e *InvalidTargetException) ErrorMessage() string { return *e.Message } func (e *InvalidTargetException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTargetException" } return *e.ErrorCodeOverride @@ -3233,7 +3233,7 @@ func (e *InvalidTargetsException) ErrorMessage() string { return *e.Message } func (e *InvalidTargetsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTargetsException" } return *e.ErrorCodeOverride @@ -3260,7 +3260,7 @@ func (e *InvalidTitleException) ErrorMessage() string { return *e.Message } func (e *InvalidTitleException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTitleException" } return *e.ErrorCodeOverride @@ -3287,7 +3287,7 @@ func (e *ManualMergeRequiredException) ErrorMessage() string { return *e.Message } func (e *ManualMergeRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ManualMergeRequiredException" } return *e.ErrorCodeOverride @@ -3313,7 +3313,7 @@ func (e *MaximumBranchesExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumBranchesExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaximumBranchesExceededException" } return *e.ErrorCodeOverride @@ -3339,7 +3339,7 @@ func (e *MaximumConflictResolutionEntriesExceededException) ErrorMessage() strin return *e.Message } func (e *MaximumConflictResolutionEntriesExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaximumConflictResolutionEntriesExceededException" } return *e.ErrorCodeOverride @@ -3367,7 +3367,7 @@ func (e *MaximumFileContentToLoadExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumFileContentToLoadExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaximumFileContentToLoadExceededException" } return *e.ErrorCodeOverride @@ -3397,7 +3397,7 @@ func (e *MaximumFileEntriesExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumFileEntriesExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaximumFileEntriesExceededException" } return *e.ErrorCodeOverride @@ -3426,7 +3426,7 @@ func (e *MaximumItemsToCompareExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumItemsToCompareExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaximumItemsToCompareExceededException" } return *e.ErrorCodeOverride @@ -3455,7 +3455,7 @@ func (e *MaximumNumberOfApprovalsExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumNumberOfApprovalsExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaximumNumberOfApprovalsExceededException" } return *e.ErrorCodeOverride @@ -3485,7 +3485,7 @@ func (e *MaximumOpenPullRequestsExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumOpenPullRequestsExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaximumOpenPullRequestsExceededException" } return *e.ErrorCodeOverride @@ -3514,7 +3514,7 @@ func (e *MaximumRepositoryNamesExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumRepositoryNamesExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaximumRepositoryNamesExceededException" } return *e.ErrorCodeOverride @@ -3542,7 +3542,7 @@ func (e *MaximumRepositoryTriggersExceededException) ErrorMessage() string { return *e.Message } func (e *MaximumRepositoryTriggersExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaximumRepositoryTriggersExceededException" } return *e.ErrorCodeOverride @@ -3572,7 +3572,7 @@ func (e *MaximumRuleTemplatesAssociatedWithRepositoryException) ErrorMessage() s return *e.Message } func (e *MaximumRuleTemplatesAssociatedWithRepositoryException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaximumRuleTemplatesAssociatedWithRepositoryException" } return *e.ErrorCodeOverride @@ -3600,7 +3600,7 @@ func (e *MergeOptionRequiredException) ErrorMessage() string { return *e.Message } func (e *MergeOptionRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MergeOptionRequiredException" } return *e.ErrorCodeOverride @@ -3627,7 +3627,7 @@ func (e *MultipleConflictResolutionEntriesException) ErrorMessage() string { return *e.Message } func (e *MultipleConflictResolutionEntriesException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MultipleConflictResolutionEntriesException" } return *e.ErrorCodeOverride @@ -3656,7 +3656,7 @@ func (e *MultipleRepositoriesInPullRequestException) ErrorMessage() string { return *e.Message } func (e *MultipleRepositoriesInPullRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MultipleRepositoriesInPullRequestException" } return *e.ErrorCodeOverride @@ -3685,7 +3685,7 @@ func (e *NameLengthExceededException) ErrorMessage() string { return *e.Message } func (e *NameLengthExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NameLengthExceededException" } return *e.ErrorCodeOverride @@ -3712,7 +3712,7 @@ func (e *NoChangeException) ErrorMessage() string { return *e.Message } func (e *NoChangeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoChangeException" } return *e.ErrorCodeOverride @@ -3739,7 +3739,7 @@ func (e *NumberOfRulesExceededException) ErrorMessage() string { return *e.Message } func (e *NumberOfRulesExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NumberOfRulesExceededException" } return *e.ErrorCodeOverride @@ -3766,7 +3766,7 @@ func (e *NumberOfRuleTemplatesExceededException) ErrorMessage() string { return *e.Message } func (e *NumberOfRuleTemplatesExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NumberOfRuleTemplatesExceededException" } return *e.ErrorCodeOverride @@ -3794,7 +3794,7 @@ func (e *OverrideAlreadySetException) ErrorMessage() string { return *e.Message } func (e *OverrideAlreadySetException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OverrideAlreadySetException" } return *e.ErrorCodeOverride @@ -3821,7 +3821,7 @@ func (e *OverrideStatusRequiredException) ErrorMessage() string { return *e.Message } func (e *OverrideStatusRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OverrideStatusRequiredException" } return *e.ErrorCodeOverride @@ -3848,7 +3848,7 @@ func (e *ParentCommitDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *ParentCommitDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ParentCommitDoesNotExistException" } return *e.ErrorCodeOverride @@ -3876,7 +3876,7 @@ func (e *ParentCommitIdOutdatedException) ErrorMessage() string { return *e.Message } func (e *ParentCommitIdOutdatedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ParentCommitIdOutdatedException" } return *e.ErrorCodeOverride @@ -3903,7 +3903,7 @@ func (e *ParentCommitIdRequiredException) ErrorMessage() string { return *e.Message } func (e *ParentCommitIdRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ParentCommitIdRequiredException" } return *e.ErrorCodeOverride @@ -3929,7 +3929,7 @@ func (e *PathDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *PathDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PathDoesNotExistException" } return *e.ErrorCodeOverride @@ -3955,7 +3955,7 @@ func (e *PathRequiredException) ErrorMessage() string { return *e.Message } func (e *PathRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PathRequiredException" } return *e.ErrorCodeOverride @@ -3981,7 +3981,7 @@ func (e *PullRequestAlreadyClosedException) ErrorMessage() string { return *e.Message } func (e *PullRequestAlreadyClosedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PullRequestAlreadyClosedException" } return *e.ErrorCodeOverride @@ -4008,7 +4008,7 @@ func (e *PullRequestApprovalRulesNotSatisfiedException) ErrorMessage() string { return *e.Message } func (e *PullRequestApprovalRulesNotSatisfiedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PullRequestApprovalRulesNotSatisfiedException" } return *e.ErrorCodeOverride @@ -4038,7 +4038,7 @@ func (e *PullRequestCannotBeApprovedByAuthorException) ErrorMessage() string { return *e.Message } func (e *PullRequestCannotBeApprovedByAuthorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PullRequestCannotBeApprovedByAuthorException" } return *e.ErrorCodeOverride @@ -4067,7 +4067,7 @@ func (e *PullRequestDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *PullRequestDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PullRequestDoesNotExistException" } return *e.ErrorCodeOverride @@ -4093,7 +4093,7 @@ func (e *PullRequestIdRequiredException) ErrorMessage() string { return *e.Message } func (e *PullRequestIdRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PullRequestIdRequiredException" } return *e.ErrorCodeOverride @@ -4119,7 +4119,7 @@ func (e *PullRequestStatusRequiredException) ErrorMessage() string { return *e.Message } func (e *PullRequestStatusRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PullRequestStatusRequiredException" } return *e.ErrorCodeOverride @@ -4148,7 +4148,7 @@ func (e *PutFileEntryConflictException) ErrorMessage() string { return *e.Message } func (e *PutFileEntryConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PutFileEntryConflictException" } return *e.ErrorCodeOverride @@ -4175,7 +4175,7 @@ func (e *ReactionLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ReactionLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReactionLimitExceededException" } return *e.ErrorCodeOverride @@ -4201,7 +4201,7 @@ func (e *ReactionValueRequiredException) ErrorMessage() string { return *e.Message } func (e *ReactionValueRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReactionValueRequiredException" } return *e.ErrorCodeOverride @@ -4227,7 +4227,7 @@ func (e *ReferenceDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *ReferenceDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReferenceDoesNotExistException" } return *e.ErrorCodeOverride @@ -4253,7 +4253,7 @@ func (e *ReferenceNameRequiredException) ErrorMessage() string { return *e.Message } func (e *ReferenceNameRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReferenceNameRequiredException" } return *e.ErrorCodeOverride @@ -4279,7 +4279,7 @@ func (e *ReferenceTypeNotSupportedException) ErrorMessage() string { return *e.Message } func (e *ReferenceTypeNotSupportedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReferenceTypeNotSupportedException" } return *e.ErrorCodeOverride @@ -4307,7 +4307,7 @@ func (e *ReplacementContentRequiredException) ErrorMessage() string { return *e.Message } func (e *ReplacementContentRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReplacementContentRequiredException" } return *e.ErrorCodeOverride @@ -4335,7 +4335,7 @@ func (e *ReplacementTypeRequiredException) ErrorMessage() string { return *e.Message } func (e *ReplacementTypeRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReplacementTypeRequiredException" } return *e.ErrorCodeOverride @@ -4361,7 +4361,7 @@ func (e *RepositoryDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *RepositoryDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RepositoryDoesNotExistException" } return *e.ErrorCodeOverride @@ -4387,7 +4387,7 @@ func (e *RepositoryLimitExceededException) ErrorMessage() string { return *e.Message } func (e *RepositoryLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RepositoryLimitExceededException" } return *e.ErrorCodeOverride @@ -4413,7 +4413,7 @@ func (e *RepositoryNameExistsException) ErrorMessage() string { return *e.Message } func (e *RepositoryNameExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RepositoryNameExistsException" } return *e.ErrorCodeOverride @@ -4439,7 +4439,7 @@ func (e *RepositoryNameRequiredException) ErrorMessage() string { return *e.Message } func (e *RepositoryNameRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RepositoryNameRequiredException" } return *e.ErrorCodeOverride @@ -4465,7 +4465,7 @@ func (e *RepositoryNamesRequiredException) ErrorMessage() string { return *e.Message } func (e *RepositoryNamesRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RepositoryNamesRequiredException" } return *e.ErrorCodeOverride @@ -4492,7 +4492,7 @@ func (e *RepositoryNotAssociatedWithPullRequestException) ErrorMessage() string return *e.Message } func (e *RepositoryNotAssociatedWithPullRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RepositoryNotAssociatedWithPullRequestException" } return *e.ErrorCodeOverride @@ -4521,7 +4521,7 @@ func (e *RepositoryTriggerBranchNameListRequiredException) ErrorMessage() string return *e.Message } func (e *RepositoryTriggerBranchNameListRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RepositoryTriggerBranchNameListRequiredException" } return *e.ErrorCodeOverride @@ -4550,7 +4550,7 @@ func (e *RepositoryTriggerDestinationArnRequiredException) ErrorMessage() string return *e.Message } func (e *RepositoryTriggerDestinationArnRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RepositoryTriggerDestinationArnRequiredException" } return *e.ErrorCodeOverride @@ -4578,7 +4578,7 @@ func (e *RepositoryTriggerEventsListRequiredException) ErrorMessage() string { return *e.Message } func (e *RepositoryTriggerEventsListRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RepositoryTriggerEventsListRequiredException" } return *e.ErrorCodeOverride @@ -4606,7 +4606,7 @@ func (e *RepositoryTriggerNameRequiredException) ErrorMessage() string { return *e.Message } func (e *RepositoryTriggerNameRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RepositoryTriggerNameRequiredException" } return *e.ErrorCodeOverride @@ -4634,7 +4634,7 @@ func (e *RepositoryTriggersListRequiredException) ErrorMessage() string { return *e.Message } func (e *RepositoryTriggersListRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RepositoryTriggersListRequiredException" } return *e.ErrorCodeOverride @@ -4666,7 +4666,7 @@ func (e *ResourceArnRequiredException) ErrorMessage() string { return *e.Message } func (e *ResourceArnRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceArnRequiredException" } return *e.ErrorCodeOverride @@ -4693,7 +4693,7 @@ func (e *RestrictedSourceFileException) ErrorMessage() string { return *e.Message } func (e *RestrictedSourceFileException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RestrictedSourceFileException" } return *e.ErrorCodeOverride @@ -4719,7 +4719,7 @@ func (e *RevisionIdRequiredException) ErrorMessage() string { return *e.Message } func (e *RevisionIdRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RevisionIdRequiredException" } return *e.ErrorCodeOverride @@ -4746,7 +4746,7 @@ func (e *RevisionNotCurrentException) ErrorMessage() string { return *e.Message } func (e *RevisionNotCurrentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RevisionNotCurrentException" } return *e.ErrorCodeOverride @@ -4774,7 +4774,7 @@ func (e *SameFileContentException) ErrorMessage() string { return *e.Message } func (e *SameFileContentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SameFileContentException" } return *e.ErrorCodeOverride @@ -4803,7 +4803,7 @@ func (e *SamePathRequestException) ErrorMessage() string { return *e.Message } func (e *SamePathRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SamePathRequestException" } return *e.ErrorCodeOverride @@ -4830,7 +4830,7 @@ func (e *SourceAndDestinationAreSameException) ErrorMessage() string { return *e.Message } func (e *SourceAndDestinationAreSameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SourceAndDestinationAreSameException" } return *e.ErrorCodeOverride @@ -4859,7 +4859,7 @@ func (e *SourceFileOrContentRequiredException) ErrorMessage() string { return *e.Message } func (e *SourceFileOrContentRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SourceFileOrContentRequiredException" } return *e.ErrorCodeOverride @@ -4887,7 +4887,7 @@ func (e *TagKeysListRequiredException) ErrorMessage() string { return *e.Message } func (e *TagKeysListRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagKeysListRequiredException" } return *e.ErrorCodeOverride @@ -4913,7 +4913,7 @@ func (e *TagPolicyException) ErrorMessage() string { return *e.Message } func (e *TagPolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagPolicyException" } return *e.ErrorCodeOverride @@ -4939,7 +4939,7 @@ func (e *TagsMapRequiredException) ErrorMessage() string { return *e.Message } func (e *TagsMapRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagsMapRequiredException" } return *e.ErrorCodeOverride @@ -4967,7 +4967,7 @@ func (e *TargetRequiredException) ErrorMessage() string { return *e.Message } func (e *TargetRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TargetRequiredException" } return *e.ErrorCodeOverride @@ -4993,7 +4993,7 @@ func (e *TargetsRequiredException) ErrorMessage() string { return *e.Message } func (e *TargetsRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TargetsRequiredException" } return *e.ErrorCodeOverride @@ -5021,7 +5021,7 @@ func (e *TipOfSourceReferenceIsDifferentException) ErrorMessage() string { return *e.Message } func (e *TipOfSourceReferenceIsDifferentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TipOfSourceReferenceIsDifferentException" } return *e.ErrorCodeOverride @@ -5051,7 +5051,7 @@ func (e *TipsDivergenceExceededException) ErrorMessage() string { return *e.Message } func (e *TipsDivergenceExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TipsDivergenceExceededException" } return *e.ErrorCodeOverride @@ -5077,7 +5077,7 @@ func (e *TitleRequiredException) ErrorMessage() string { return *e.Message } func (e *TitleRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TitleRequiredException" } return *e.ErrorCodeOverride @@ -5103,7 +5103,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride diff --git a/service/codedeploy/types/errors.go b/service/codedeploy/types/errors.go index e54b3013e66..bdcca1c38e6 100644 --- a/service/codedeploy/types/errors.go +++ b/service/codedeploy/types/errors.go @@ -26,7 +26,7 @@ func (e *AlarmsLimitExceededException) ErrorMessage() string { return *e.Message } func (e *AlarmsLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AlarmsLimitExceededException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ApplicationAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ApplicationAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ApplicationAlreadyExistsException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *ApplicationDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *ApplicationDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ApplicationDoesNotExistException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *ApplicationLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ApplicationLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ApplicationLimitExceededException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *ApplicationNameRequiredException) ErrorMessage() string { return *e.Message } func (e *ApplicationNameRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ApplicationNameRequiredException" } return *e.ErrorCodeOverride @@ -158,7 +158,7 @@ func (e *ArnNotSupportedException) ErrorMessage() string { return *e.Message } func (e *ArnNotSupportedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ArnNotSupportedException" } return *e.ErrorCodeOverride @@ -184,7 +184,7 @@ func (e *BatchLimitExceededException) ErrorMessage() string { return *e.Message } func (e *BatchLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BatchLimitExceededException" } return *e.ErrorCodeOverride @@ -210,7 +210,7 @@ func (e *BucketNameFilterRequiredException) ErrorMessage() string { return *e.Message } func (e *BucketNameFilterRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BucketNameFilterRequiredException" } return *e.ErrorCodeOverride @@ -236,7 +236,7 @@ func (e *DeploymentAlreadyCompletedException) ErrorMessage() string { return *e.Message } func (e *DeploymentAlreadyCompletedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeploymentAlreadyCompletedException" } return *e.ErrorCodeOverride @@ -265,7 +265,7 @@ func (e *DeploymentConfigAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *DeploymentConfigAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeploymentConfigAlreadyExistsException" } return *e.ErrorCodeOverride @@ -294,7 +294,7 @@ func (e *DeploymentConfigDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *DeploymentConfigDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeploymentConfigDoesNotExistException" } return *e.ErrorCodeOverride @@ -322,7 +322,7 @@ func (e *DeploymentConfigInUseException) ErrorMessage() string { return *e.Message } func (e *DeploymentConfigInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeploymentConfigInUseException" } return *e.ErrorCodeOverride @@ -348,7 +348,7 @@ func (e *DeploymentConfigLimitExceededException) ErrorMessage() string { return *e.Message } func (e *DeploymentConfigLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeploymentConfigLimitExceededException" } return *e.ErrorCodeOverride @@ -376,7 +376,7 @@ func (e *DeploymentConfigNameRequiredException) ErrorMessage() string { return *e.Message } func (e *DeploymentConfigNameRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeploymentConfigNameRequiredException" } return *e.ErrorCodeOverride @@ -404,7 +404,7 @@ func (e *DeploymentDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *DeploymentDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeploymentDoesNotExistException" } return *e.ErrorCodeOverride @@ -431,7 +431,7 @@ func (e *DeploymentGroupAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *DeploymentGroupAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeploymentGroupAlreadyExistsException" } return *e.ErrorCodeOverride @@ -460,7 +460,7 @@ func (e *DeploymentGroupDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *DeploymentGroupDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeploymentGroupDoesNotExistException" } return *e.ErrorCodeOverride @@ -488,7 +488,7 @@ func (e *DeploymentGroupLimitExceededException) ErrorMessage() string { return *e.Message } func (e *DeploymentGroupLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeploymentGroupLimitExceededException" } return *e.ErrorCodeOverride @@ -516,7 +516,7 @@ func (e *DeploymentGroupNameRequiredException) ErrorMessage() string { return *e.Message } func (e *DeploymentGroupNameRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeploymentGroupNameRequiredException" } return *e.ErrorCodeOverride @@ -544,7 +544,7 @@ func (e *DeploymentIdRequiredException) ErrorMessage() string { return *e.Message } func (e *DeploymentIdRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeploymentIdRequiredException" } return *e.ErrorCodeOverride @@ -570,7 +570,7 @@ func (e *DeploymentIsNotInReadyStateException) ErrorMessage() string { return *e.Message } func (e *DeploymentIsNotInReadyStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeploymentIsNotInReadyStateException" } return *e.ErrorCodeOverride @@ -598,7 +598,7 @@ func (e *DeploymentLimitExceededException) ErrorMessage() string { return *e.Message } func (e *DeploymentLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeploymentLimitExceededException" } return *e.ErrorCodeOverride @@ -624,7 +624,7 @@ func (e *DeploymentNotStartedException) ErrorMessage() string { return *e.Message } func (e *DeploymentNotStartedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeploymentNotStartedException" } return *e.ErrorCodeOverride @@ -650,7 +650,7 @@ func (e *DeploymentTargetDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *DeploymentTargetDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeploymentTargetDoesNotExistException" } return *e.ErrorCodeOverride @@ -678,7 +678,7 @@ func (e *DeploymentTargetIdRequiredException) ErrorMessage() string { return *e.Message } func (e *DeploymentTargetIdRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeploymentTargetIdRequiredException" } return *e.ErrorCodeOverride @@ -709,7 +709,7 @@ func (e *DeploymentTargetListSizeExceededException) ErrorMessage() string { return *e.Message } func (e *DeploymentTargetListSizeExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeploymentTargetListSizeExceededException" } return *e.ErrorCodeOverride @@ -737,7 +737,7 @@ func (e *DescriptionTooLongException) ErrorMessage() string { return *e.Message } func (e *DescriptionTooLongException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DescriptionTooLongException" } return *e.ErrorCodeOverride @@ -764,7 +764,7 @@ func (e *ECSServiceMappingLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ECSServiceMappingLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ECSServiceMappingLimitExceededException" } return *e.ErrorCodeOverride @@ -792,7 +792,7 @@ func (e *GitHubAccountTokenDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *GitHubAccountTokenDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GitHubAccountTokenDoesNotExistException" } return *e.ErrorCodeOverride @@ -820,7 +820,7 @@ func (e *GitHubAccountTokenNameRequiredException) ErrorMessage() string { return *e.Message } func (e *GitHubAccountTokenNameRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GitHubAccountTokenNameRequiredException" } return *e.ErrorCodeOverride @@ -849,7 +849,7 @@ func (e *IamArnRequiredException) ErrorMessage() string { return *e.Message } func (e *IamArnRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IamArnRequiredException" } return *e.ErrorCodeOverride @@ -876,7 +876,7 @@ func (e *IamSessionArnAlreadyRegisteredException) ErrorMessage() string { return *e.Message } func (e *IamSessionArnAlreadyRegisteredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IamSessionArnAlreadyRegisteredException" } return *e.ErrorCodeOverride @@ -904,7 +904,7 @@ func (e *IamUserArnAlreadyRegisteredException) ErrorMessage() string { return *e.Message } func (e *IamUserArnAlreadyRegisteredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IamUserArnAlreadyRegisteredException" } return *e.ErrorCodeOverride @@ -932,7 +932,7 @@ func (e *IamUserArnRequiredException) ErrorMessage() string { return *e.Message } func (e *IamUserArnRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IamUserArnRequiredException" } return *e.ErrorCodeOverride @@ -958,7 +958,7 @@ func (e *InstanceDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *InstanceDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InstanceDoesNotExistException" } return *e.ErrorCodeOverride @@ -984,7 +984,7 @@ func (e *InstanceIdRequiredException) ErrorMessage() string { return *e.Message } func (e *InstanceIdRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InstanceIdRequiredException" } return *e.ErrorCodeOverride @@ -1011,7 +1011,7 @@ func (e *InstanceLimitExceededException) ErrorMessage() string { return *e.Message } func (e *InstanceLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InstanceLimitExceededException" } return *e.ErrorCodeOverride @@ -1037,7 +1037,7 @@ func (e *InstanceNameAlreadyRegisteredException) ErrorMessage() string { return *e.Message } func (e *InstanceNameAlreadyRegisteredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InstanceNameAlreadyRegisteredException" } return *e.ErrorCodeOverride @@ -1065,7 +1065,7 @@ func (e *InstanceNameRequiredException) ErrorMessage() string { return *e.Message } func (e *InstanceNameRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InstanceNameRequiredException" } return *e.ErrorCodeOverride @@ -1091,7 +1091,7 @@ func (e *InstanceNotRegisteredException) ErrorMessage() string { return *e.Message } func (e *InstanceNotRegisteredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InstanceNotRegisteredException" } return *e.ErrorCodeOverride @@ -1131,7 +1131,7 @@ func (e *InvalidAlarmConfigException) ErrorMessage() string { return *e.Message } func (e *InvalidAlarmConfigException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAlarmConfigException" } return *e.ErrorCodeOverride @@ -1157,7 +1157,7 @@ func (e *InvalidApplicationNameException) ErrorMessage() string { return *e.Message } func (e *InvalidApplicationNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidApplicationNameException" } return *e.ErrorCodeOverride @@ -1183,7 +1183,7 @@ func (e *InvalidArnException) ErrorMessage() string { return *e.Message } func (e *InvalidArnException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArnException" } return *e.ErrorCodeOverride @@ -1211,7 +1211,7 @@ func (e *InvalidAutoRollbackConfigException) ErrorMessage() string { return *e.Message } func (e *InvalidAutoRollbackConfigException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAutoRollbackConfigException" } return *e.ErrorCodeOverride @@ -1239,7 +1239,7 @@ func (e *InvalidAutoScalingGroupException) ErrorMessage() string { return *e.Message } func (e *InvalidAutoScalingGroupException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAutoScalingGroupException" } return *e.ErrorCodeOverride @@ -1267,7 +1267,7 @@ func (e *InvalidBlueGreenDeploymentConfigurationException) ErrorMessage() string return *e.Message } func (e *InvalidBlueGreenDeploymentConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidBlueGreenDeploymentConfigurationException" } return *e.ErrorCodeOverride @@ -1295,7 +1295,7 @@ func (e *InvalidBucketNameFilterException) ErrorMessage() string { return *e.Message } func (e *InvalidBucketNameFilterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidBucketNameFilterException" } return *e.ErrorCodeOverride @@ -1322,7 +1322,7 @@ func (e *InvalidComputePlatformException) ErrorMessage() string { return *e.Message } func (e *InvalidComputePlatformException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidComputePlatformException" } return *e.ErrorCodeOverride @@ -1348,7 +1348,7 @@ func (e *InvalidDeployedStateFilterException) ErrorMessage() string { return *e.Message } func (e *InvalidDeployedStateFilterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDeployedStateFilterException" } return *e.ErrorCodeOverride @@ -1376,7 +1376,7 @@ func (e *InvalidDeploymentConfigNameException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentConfigNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDeploymentConfigNameException" } return *e.ErrorCodeOverride @@ -1404,7 +1404,7 @@ func (e *InvalidDeploymentGroupNameException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentGroupNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDeploymentGroupNameException" } return *e.ErrorCodeOverride @@ -1432,7 +1432,7 @@ func (e *InvalidDeploymentIdException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentIdException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDeploymentIdException" } return *e.ErrorCodeOverride @@ -1459,7 +1459,7 @@ func (e *InvalidDeploymentInstanceTypeException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentInstanceTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDeploymentInstanceTypeException" } return *e.ErrorCodeOverride @@ -1487,7 +1487,7 @@ func (e *InvalidDeploymentStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentStatusException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDeploymentStatusException" } return *e.ErrorCodeOverride @@ -1515,7 +1515,7 @@ func (e *InvalidDeploymentStyleException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentStyleException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDeploymentStyleException" } return *e.ErrorCodeOverride @@ -1541,7 +1541,7 @@ func (e *InvalidDeploymentTargetIdException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentTargetIdException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDeploymentTargetIdException" } return *e.ErrorCodeOverride @@ -1569,7 +1569,7 @@ func (e *InvalidDeploymentWaitTypeException) ErrorMessage() string { return *e.Message } func (e *InvalidDeploymentWaitTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDeploymentWaitTypeException" } return *e.ErrorCodeOverride @@ -1598,7 +1598,7 @@ func (e *InvalidEC2TagCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidEC2TagCombinationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidEC2TagCombinationException" } return *e.ErrorCodeOverride @@ -1624,7 +1624,7 @@ func (e *InvalidEC2TagException) ErrorMessage() string { return *e.Message } func (e *InvalidEC2TagException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidEC2TagException" } return *e.ErrorCodeOverride @@ -1650,7 +1650,7 @@ func (e *InvalidECSServiceException) ErrorMessage() string { return *e.Message } func (e *InvalidECSServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidECSServiceException" } return *e.ErrorCodeOverride @@ -1676,7 +1676,7 @@ func (e *InvalidExternalIdException) ErrorMessage() string { return *e.Message } func (e *InvalidExternalIdException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidExternalIdException" } return *e.ErrorCodeOverride @@ -1705,7 +1705,7 @@ func (e *InvalidFileExistsBehaviorException) ErrorMessage() string { return *e.Message } func (e *InvalidFileExistsBehaviorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidFileExistsBehaviorException" } return *e.ErrorCodeOverride @@ -1733,7 +1733,7 @@ func (e *InvalidGitHubAccountTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidGitHubAccountTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidGitHubAccountTokenException" } return *e.ErrorCodeOverride @@ -1761,7 +1761,7 @@ func (e *InvalidGitHubAccountTokenNameException) ErrorMessage() string { return *e.Message } func (e *InvalidGitHubAccountTokenNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidGitHubAccountTokenNameException" } return *e.ErrorCodeOverride @@ -1789,7 +1789,7 @@ func (e *InvalidIamSessionArnException) ErrorMessage() string { return *e.Message } func (e *InvalidIamSessionArnException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidIamSessionArnException" } return *e.ErrorCodeOverride @@ -1815,7 +1815,7 @@ func (e *InvalidIamUserArnException) ErrorMessage() string { return *e.Message } func (e *InvalidIamUserArnException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidIamUserArnException" } return *e.ErrorCodeOverride @@ -1842,7 +1842,7 @@ func (e *InvalidIgnoreApplicationStopFailuresValueException) ErrorMessage() stri return *e.Message } func (e *InvalidIgnoreApplicationStopFailuresValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidIgnoreApplicationStopFailuresValueException" } return *e.ErrorCodeOverride @@ -1870,7 +1870,7 @@ func (e *InvalidInputException) ErrorMessage() string { return *e.Message } func (e *InvalidInputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputException" } return *e.ErrorCodeOverride @@ -1896,7 +1896,7 @@ func (e *InvalidInstanceNameException) ErrorMessage() string { return *e.Message } func (e *InvalidInstanceNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInstanceNameException" } return *e.ErrorCodeOverride @@ -1922,7 +1922,7 @@ func (e *InvalidInstanceStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidInstanceStatusException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInstanceStatusException" } return *e.ErrorCodeOverride @@ -1950,7 +1950,7 @@ func (e *InvalidInstanceTypeException) ErrorMessage() string { return *e.Message } func (e *InvalidInstanceTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInstanceTypeException" } return *e.ErrorCodeOverride @@ -1976,7 +1976,7 @@ func (e *InvalidKeyPrefixFilterException) ErrorMessage() string { return *e.Message } func (e *InvalidKeyPrefixFilterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidKeyPrefixFilterException" } return *e.ErrorCodeOverride @@ -2003,7 +2003,7 @@ func (e *InvalidLifecycleEventHookExecutionIdException) ErrorMessage() string { return *e.Message } func (e *InvalidLifecycleEventHookExecutionIdException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidLifecycleEventHookExecutionIdException" } return *e.ErrorCodeOverride @@ -2032,7 +2032,7 @@ func (e *InvalidLifecycleEventHookExecutionStatusException) ErrorMessage() strin return *e.Message } func (e *InvalidLifecycleEventHookExecutionStatusException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidLifecycleEventHookExecutionStatusException" } return *e.ErrorCodeOverride @@ -2060,7 +2060,7 @@ func (e *InvalidLoadBalancerInfoException) ErrorMessage() string { return *e.Message } func (e *InvalidLoadBalancerInfoException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidLoadBalancerInfoException" } return *e.ErrorCodeOverride @@ -2086,7 +2086,7 @@ func (e *InvalidMinimumHealthyHostValueException) ErrorMessage() string { return *e.Message } func (e *InvalidMinimumHealthyHostValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidMinimumHealthyHostValueException" } return *e.ErrorCodeOverride @@ -2114,7 +2114,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -2141,7 +2141,7 @@ func (e *InvalidOnPremisesTagCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidOnPremisesTagCombinationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOnPremisesTagCombinationException" } return *e.ErrorCodeOverride @@ -2169,7 +2169,7 @@ func (e *InvalidOperationException) ErrorMessage() string { return *e.Message } func (e *InvalidOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOperationException" } return *e.ErrorCodeOverride @@ -2195,7 +2195,7 @@ func (e *InvalidRegistrationStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidRegistrationStatusException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRegistrationStatusException" } return *e.ErrorCodeOverride @@ -2223,7 +2223,7 @@ func (e *InvalidRevisionException) ErrorMessage() string { return *e.Message } func (e *InvalidRevisionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRevisionException" } return *e.ErrorCodeOverride @@ -2251,7 +2251,7 @@ func (e *InvalidRoleException) ErrorMessage() string { return *e.Message } func (e *InvalidRoleException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRoleException" } return *e.ErrorCodeOverride @@ -2278,7 +2278,7 @@ func (e *InvalidSortByException) ErrorMessage() string { return *e.Message } func (e *InvalidSortByException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSortByException" } return *e.ErrorCodeOverride @@ -2304,7 +2304,7 @@ func (e *InvalidSortOrderException) ErrorMessage() string { return *e.Message } func (e *InvalidSortOrderException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSortOrderException" } return *e.ErrorCodeOverride @@ -2330,7 +2330,7 @@ func (e *InvalidTagException) ErrorMessage() string { return *e.Message } func (e *InvalidTagException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTagException" } return *e.ErrorCodeOverride @@ -2356,7 +2356,7 @@ func (e *InvalidTagFilterException) ErrorMessage() string { return *e.Message } func (e *InvalidTagFilterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTagFilterException" } return *e.ErrorCodeOverride @@ -2382,7 +2382,7 @@ func (e *InvalidTagsToAddException) ErrorMessage() string { return *e.Message } func (e *InvalidTagsToAddException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTagsToAddException" } return *e.ErrorCodeOverride @@ -2408,7 +2408,7 @@ func (e *InvalidTargetFilterNameException) ErrorMessage() string { return *e.Message } func (e *InvalidTargetFilterNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTargetFilterNameException" } return *e.ErrorCodeOverride @@ -2434,7 +2434,7 @@ func (e *InvalidTargetGroupPairException) ErrorMessage() string { return *e.Message } func (e *InvalidTargetGroupPairException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTargetGroupPairException" } return *e.ErrorCodeOverride @@ -2472,7 +2472,7 @@ func (e *InvalidTargetInstancesException) ErrorMessage() string { return *e.Message } func (e *InvalidTargetInstancesException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTargetInstancesException" } return *e.ErrorCodeOverride @@ -2498,7 +2498,7 @@ func (e *InvalidTimeRangeException) ErrorMessage() string { return *e.Message } func (e *InvalidTimeRangeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTimeRangeException" } return *e.ErrorCodeOverride @@ -2525,7 +2525,7 @@ func (e *InvalidTrafficRoutingConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidTrafficRoutingConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTrafficRoutingConfigurationException" } return *e.ErrorCodeOverride @@ -2553,7 +2553,7 @@ func (e *InvalidTriggerConfigException) ErrorMessage() string { return *e.Message } func (e *InvalidTriggerConfigException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTriggerConfigException" } return *e.ErrorCodeOverride @@ -2580,7 +2580,7 @@ func (e *InvalidUpdateOutdatedInstancesOnlyValueException) ErrorMessage() string return *e.Message } func (e *InvalidUpdateOutdatedInstancesOnlyValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidUpdateOutdatedInstancesOnlyValueException" } return *e.ErrorCodeOverride @@ -2609,7 +2609,7 @@ func (e *LifecycleEventAlreadyCompletedException) ErrorMessage() string { return *e.Message } func (e *LifecycleEventAlreadyCompletedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LifecycleEventAlreadyCompletedException" } return *e.ErrorCodeOverride @@ -2637,7 +2637,7 @@ func (e *LifecycleHookLimitExceededException) ErrorMessage() string { return *e.Message } func (e *LifecycleHookLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LifecycleHookLimitExceededException" } return *e.ErrorCodeOverride @@ -2666,7 +2666,7 @@ func (e *MultipleIamArnsProvidedException) ErrorMessage() string { return *e.Message } func (e *MultipleIamArnsProvidedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MultipleIamArnsProvidedException" } return *e.ErrorCodeOverride @@ -2692,7 +2692,7 @@ func (e *OperationNotSupportedException) ErrorMessage() string { return *e.Message } func (e *OperationNotSupportedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationNotSupportedException" } return *e.ErrorCodeOverride @@ -2718,7 +2718,7 @@ func (e *ResourceArnRequiredException) ErrorMessage() string { return *e.Message } func (e *ResourceArnRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceArnRequiredException" } return *e.ErrorCodeOverride @@ -2744,7 +2744,7 @@ func (e *ResourceValidationException) ErrorMessage() string { return *e.Message } func (e *ResourceValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceValidationException" } return *e.ErrorCodeOverride @@ -2771,7 +2771,7 @@ func (e *RevisionDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *RevisionDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RevisionDoesNotExistException" } return *e.ErrorCodeOverride @@ -2797,7 +2797,7 @@ func (e *RevisionRequiredException) ErrorMessage() string { return *e.Message } func (e *RevisionRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RevisionRequiredException" } return *e.ErrorCodeOverride @@ -2823,7 +2823,7 @@ func (e *RoleRequiredException) ErrorMessage() string { return *e.Message } func (e *RoleRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RoleRequiredException" } return *e.ErrorCodeOverride @@ -2849,7 +2849,7 @@ func (e *TagLimitExceededException) ErrorMessage() string { return *e.Message } func (e *TagLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagLimitExceededException" } return *e.ErrorCodeOverride @@ -2875,7 +2875,7 @@ func (e *TagRequiredException) ErrorMessage() string { return *e.Message } func (e *TagRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagRequiredException" } return *e.ErrorCodeOverride @@ -2902,7 +2902,7 @@ func (e *TagSetListLimitExceededException) ErrorMessage() string { return *e.Message } func (e *TagSetListLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagSetListLimitExceededException" } return *e.ErrorCodeOverride @@ -2928,7 +2928,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -2954,7 +2954,7 @@ func (e *TriggerTargetsLimitExceededException) ErrorMessage() string { return *e.Message } func (e *TriggerTargetsLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TriggerTargetsLimitExceededException" } return *e.ErrorCodeOverride @@ -2982,7 +2982,7 @@ func (e *UnsupportedActionForDeploymentTypeException) ErrorMessage() string { return *e.Message } func (e *UnsupportedActionForDeploymentTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedActionForDeploymentTypeException" } return *e.ErrorCodeOverride diff --git a/service/codeguruprofiler/types/errors.go b/service/codeguruprofiler/types/errors.go index c0cbb99f90c..b7d9e8187f1 100644 --- a/service/codeguruprofiler/types/errors.go +++ b/service/codeguruprofiler/types/errors.go @@ -28,7 +28,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -109,7 +109,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -161,7 +161,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/codegurureviewer/types/errors.go b/service/codegurureviewer/types/errors.go index 2bd29951fd2..3584f67dc0c 100644 --- a/service/codegurureviewer/types/errors.go +++ b/service/codegurureviewer/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -132,7 +132,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -158,7 +158,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -184,7 +184,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/codepipeline/types/errors.go b/service/codepipeline/types/errors.go index a184fbd7e64..d908294ad41 100644 --- a/service/codepipeline/types/errors.go +++ b/service/codepipeline/types/errors.go @@ -26,7 +26,7 @@ func (e *ActionNotFoundException) ErrorMessage() string { return *e.Message } func (e *ActionNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ActionNotFoundException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ActionTypeNotFoundException) ErrorMessage() string { return *e.Message } func (e *ActionTypeNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ActionTypeNotFoundException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ApprovalAlreadyCompletedException) ErrorMessage() string { return *e.Message } func (e *ApprovalAlreadyCompletedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ApprovalAlreadyCompletedException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -161,7 +161,7 @@ func (e *DuplicatedStopRequestException) ErrorMessage() string { return *e.Message } func (e *DuplicatedStopRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicatedStopRequestException" } return *e.ErrorCodeOverride @@ -187,7 +187,7 @@ func (e *InvalidActionDeclarationException) ErrorMessage() string { return *e.Message } func (e *InvalidActionDeclarationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidActionDeclarationException" } return *e.ErrorCodeOverride @@ -213,7 +213,7 @@ func (e *InvalidApprovalTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidApprovalTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidApprovalTokenException" } return *e.ErrorCodeOverride @@ -239,7 +239,7 @@ func (e *InvalidArnException) ErrorMessage() string { return *e.Message } func (e *InvalidArnException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArnException" } return *e.ErrorCodeOverride @@ -265,7 +265,7 @@ func (e *InvalidBlockerDeclarationException) ErrorMessage() string { return *e.Message } func (e *InvalidBlockerDeclarationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidBlockerDeclarationException" } return *e.ErrorCodeOverride @@ -293,7 +293,7 @@ func (e *InvalidClientTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidClientTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidClientTokenException" } return *e.ErrorCodeOverride @@ -319,7 +319,7 @@ func (e *InvalidJobException) ErrorMessage() string { return *e.Message } func (e *InvalidJobException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidJobException" } return *e.ErrorCodeOverride @@ -345,7 +345,7 @@ func (e *InvalidJobStateException) ErrorMessage() string { return *e.Message } func (e *InvalidJobStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidJobStateException" } return *e.ErrorCodeOverride @@ -372,7 +372,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -398,7 +398,7 @@ func (e *InvalidNonceException) ErrorMessage() string { return *e.Message } func (e *InvalidNonceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNonceException" } return *e.ErrorCodeOverride @@ -424,7 +424,7 @@ func (e *InvalidStageDeclarationException) ErrorMessage() string { return *e.Message } func (e *InvalidStageDeclarationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidStageDeclarationException" } return *e.ErrorCodeOverride @@ -450,7 +450,7 @@ func (e *InvalidStructureException) ErrorMessage() string { return *e.Message } func (e *InvalidStructureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidStructureException" } return *e.ErrorCodeOverride @@ -476,7 +476,7 @@ func (e *InvalidTagsException) ErrorMessage() string { return *e.Message } func (e *InvalidTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTagsException" } return *e.ErrorCodeOverride @@ -502,7 +502,7 @@ func (e *InvalidWebhookAuthenticationParametersException) ErrorMessage() string return *e.Message } func (e *InvalidWebhookAuthenticationParametersException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidWebhookAuthenticationParametersException" } return *e.ErrorCodeOverride @@ -530,7 +530,7 @@ func (e *InvalidWebhookFilterPatternException) ErrorMessage() string { return *e.Message } func (e *InvalidWebhookFilterPatternException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidWebhookFilterPatternException" } return *e.ErrorCodeOverride @@ -558,7 +558,7 @@ func (e *JobNotFoundException) ErrorMessage() string { return *e.Message } func (e *JobNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "JobNotFoundException" } return *e.ErrorCodeOverride @@ -585,7 +585,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -612,7 +612,7 @@ func (e *NotLatestPipelineExecutionException) ErrorMessage() string { return *e.Message } func (e *NotLatestPipelineExecutionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotLatestPipelineExecutionException" } return *e.ErrorCodeOverride @@ -640,7 +640,7 @@ func (e *OutputVariablesSizeExceededException) ErrorMessage() string { return *e.Message } func (e *OutputVariablesSizeExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OutputVariablesSizeExceededException" } return *e.ErrorCodeOverride @@ -669,7 +669,7 @@ func (e *PipelineExecutionNotFoundException) ErrorMessage() string { return *e.Message } func (e *PipelineExecutionNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PipelineExecutionNotFoundException" } return *e.ErrorCodeOverride @@ -698,7 +698,7 @@ func (e *PipelineExecutionNotStoppableException) ErrorMessage() string { return *e.Message } func (e *PipelineExecutionNotStoppableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PipelineExecutionNotStoppableException" } return *e.ErrorCodeOverride @@ -726,7 +726,7 @@ func (e *PipelineNameInUseException) ErrorMessage() string { return *e.Message } func (e *PipelineNameInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PipelineNameInUseException" } return *e.ErrorCodeOverride @@ -752,7 +752,7 @@ func (e *PipelineNotFoundException) ErrorMessage() string { return *e.Message } func (e *PipelineNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PipelineNotFoundException" } return *e.ErrorCodeOverride @@ -778,7 +778,7 @@ func (e *PipelineVersionNotFoundException) ErrorMessage() string { return *e.Message } func (e *PipelineVersionNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PipelineVersionNotFoundException" } return *e.ErrorCodeOverride @@ -804,7 +804,7 @@ func (e *RequestFailedException) ErrorMessage() string { return *e.Message } func (e *RequestFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestFailedException" } return *e.ErrorCodeOverride @@ -830,7 +830,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -856,7 +856,7 @@ func (e *StageNotFoundException) ErrorMessage() string { return *e.Message } func (e *StageNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StageNotFoundException" } return *e.ErrorCodeOverride @@ -883,7 +883,7 @@ func (e *StageNotRetryableException) ErrorMessage() string { return *e.Message } func (e *StageNotRetryableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StageNotRetryableException" } return *e.ErrorCodeOverride @@ -909,7 +909,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -935,7 +935,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride @@ -961,7 +961,7 @@ func (e *WebhookNotFoundException) ErrorMessage() string { return *e.Message } func (e *WebhookNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WebhookNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/codestar/types/errors.go b/service/codestar/types/errors.go index 458b314eaeb..65917b7eb5b 100644 --- a/service/codestar/types/errors.go +++ b/service/codestar/types/errors.go @@ -27,7 +27,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *InvalidServiceRoleException) ErrorMessage() string { return *e.Message } func (e *InvalidServiceRoleException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidServiceRoleException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *ProjectAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ProjectAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ProjectAlreadyExistsException" } return *e.ErrorCodeOverride @@ -159,7 +159,7 @@ func (e *ProjectConfigurationException) ErrorMessage() string { return *e.Message } func (e *ProjectConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ProjectConfigurationException" } return *e.ErrorCodeOverride @@ -187,7 +187,7 @@ func (e *ProjectCreationFailedException) ErrorMessage() string { return *e.Message } func (e *ProjectCreationFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ProjectCreationFailedException" } return *e.ErrorCodeOverride @@ -213,7 +213,7 @@ func (e *ProjectNotFoundException) ErrorMessage() string { return *e.Message } func (e *ProjectNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ProjectNotFoundException" } return *e.ErrorCodeOverride @@ -239,7 +239,7 @@ func (e *TeamMemberAlreadyAssociatedException) ErrorMessage() string { return *e.Message } func (e *TeamMemberAlreadyAssociatedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TeamMemberAlreadyAssociatedException" } return *e.ErrorCodeOverride @@ -267,7 +267,7 @@ func (e *TeamMemberNotFoundException) ErrorMessage() string { return *e.Message } func (e *TeamMemberNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TeamMemberNotFoundException" } return *e.ErrorCodeOverride @@ -295,7 +295,7 @@ func (e *UserProfileAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *UserProfileAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UserProfileAlreadyExistsException" } return *e.ErrorCodeOverride @@ -321,7 +321,7 @@ func (e *UserProfileNotFoundException) ErrorMessage() string { return *e.Message } func (e *UserProfileNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UserProfileNotFoundException" } return *e.ErrorCodeOverride @@ -347,7 +347,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/codestarconnections/types/errors.go b/service/codestarconnections/types/errors.go index 49672e60c5c..46bc17758cb 100644 --- a/service/codestarconnections/types/errors.go +++ b/service/codestarconnections/types/errors.go @@ -26,7 +26,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ResourceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ResourceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceUnavailableException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *UnsupportedOperationException) ErrorMessage() string { return *e.Message } func (e *UnsupportedOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedOperationException" } return *e.ErrorCodeOverride diff --git a/service/codestarnotifications/types/errors.go b/service/codestarnotifications/types/errors.go index acfcf2288ac..6d592fcfa8d 100644 --- a/service/codestarnotifications/types/errors.go +++ b/service/codestarnotifications/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *ConfigurationException) ErrorMessage() string { return *e.Message } func (e *ConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConfigurationException" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -188,7 +188,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -214,7 +214,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/cognitoidentity/types/errors.go b/service/cognitoidentity/types/errors.go index 738ac14817b..d87a6973982 100644 --- a/service/cognitoidentity/types/errors.go +++ b/service/cognitoidentity/types/errors.go @@ -26,7 +26,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *DeveloperUserAlreadyRegisteredException) ErrorMessage() string { return *e.Message } func (e *DeveloperUserAlreadyRegisteredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeveloperUserAlreadyRegisteredException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *ExternalServiceException) ErrorMessage() string { return *e.Message } func (e *ExternalServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ExternalServiceException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *InternalErrorException) ErrorMessage() string { return *e.Message } func (e *InternalErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalErrorException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *InvalidIdentityPoolConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidIdentityPoolConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidIdentityPoolConfigurationException" } return *e.ErrorCodeOverride @@ -163,7 +163,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -215,7 +215,7 @@ func (e *NotAuthorizedException) ErrorMessage() string { return *e.Message } func (e *NotAuthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotAuthorizedException" } return *e.ErrorCodeOverride @@ -242,7 +242,7 @@ func (e *ResourceConflictException) ErrorMessage() string { return *e.Message } func (e *ResourceConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceConflictException" } return *e.ErrorCodeOverride @@ -269,7 +269,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -295,7 +295,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride diff --git a/service/cognitoidentityprovider/types/errors.go b/service/cognitoidentityprovider/types/errors.go index af6d942a362..e4f7d172e62 100644 --- a/service/cognitoidentityprovider/types/errors.go +++ b/service/cognitoidentityprovider/types/errors.go @@ -30,7 +30,7 @@ func (e *AliasExistsException) ErrorMessage() string { return *e.Message } func (e *AliasExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AliasExistsException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *CodeDeliveryFailureException) ErrorMessage() string { return *e.Message } func (e *CodeDeliveryFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CodeDeliveryFailureException" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *CodeMismatchException) ErrorMessage() string { return *e.Message } func (e *CodeMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CodeMismatchException" } return *e.ErrorCodeOverride @@ -110,7 +110,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -137,7 +137,7 @@ func (e *DuplicateProviderException) ErrorMessage() string { return *e.Message } func (e *DuplicateProviderException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateProviderException" } return *e.ErrorCodeOverride @@ -164,7 +164,7 @@ func (e *EnableSoftwareTokenMFAException) ErrorMessage() string { return *e.Message } func (e *EnableSoftwareTokenMFAException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EnableSoftwareTokenMFAException" } return *e.ErrorCodeOverride @@ -190,7 +190,7 @@ func (e *ExpiredCodeException) ErrorMessage() string { return *e.Message } func (e *ExpiredCodeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ExpiredCodeException" } return *e.ErrorCodeOverride @@ -217,7 +217,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -244,7 +244,7 @@ func (e *GroupExistsException) ErrorMessage() string { return *e.Message } func (e *GroupExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GroupExistsException" } return *e.ErrorCodeOverride @@ -270,7 +270,7 @@ func (e *InternalErrorException) ErrorMessage() string { return *e.Message } func (e *InternalErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalErrorException" } return *e.ErrorCodeOverride @@ -297,7 +297,7 @@ func (e *InvalidEmailRoleAccessPolicyException) ErrorMessage() string { return *e.Message } func (e *InvalidEmailRoleAccessPolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidEmailRoleAccessPolicyException" } return *e.ErrorCodeOverride @@ -326,7 +326,7 @@ func (e *InvalidLambdaResponseException) ErrorMessage() string { return *e.Message } func (e *InvalidLambdaResponseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidLambdaResponseException" } return *e.ErrorCodeOverride @@ -352,7 +352,7 @@ func (e *InvalidOAuthFlowException) ErrorMessage() string { return *e.Message } func (e *InvalidOAuthFlowException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOAuthFlowException" } return *e.ErrorCodeOverride @@ -379,7 +379,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -405,7 +405,7 @@ func (e *InvalidPasswordException) ErrorMessage() string { return *e.Message } func (e *InvalidPasswordException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPasswordException" } return *e.ErrorCodeOverride @@ -432,7 +432,7 @@ func (e *InvalidSmsRoleAccessPolicyException) ErrorMessage() string { return *e.Message } func (e *InvalidSmsRoleAccessPolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSmsRoleAccessPolicyException" } return *e.ErrorCodeOverride @@ -463,7 +463,7 @@ func (e *InvalidSmsRoleTrustRelationshipException) ErrorMessage() string { return *e.Message } func (e *InvalidSmsRoleTrustRelationshipException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSmsRoleTrustRelationshipException" } return *e.ErrorCodeOverride @@ -491,7 +491,7 @@ func (e *InvalidUserPoolConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidUserPoolConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidUserPoolConfigurationException" } return *e.ErrorCodeOverride @@ -520,7 +520,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -547,7 +547,7 @@ func (e *MFAMethodNotFoundException) ErrorMessage() string { return *e.Message } func (e *MFAMethodNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MFAMethodNotFoundException" } return *e.ErrorCodeOverride @@ -573,7 +573,7 @@ func (e *NotAuthorizedException) ErrorMessage() string { return *e.Message } func (e *NotAuthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotAuthorizedException" } return *e.ErrorCodeOverride @@ -599,7 +599,7 @@ func (e *PasswordResetRequiredException) ErrorMessage() string { return *e.Message } func (e *PasswordResetRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PasswordResetRequiredException" } return *e.ErrorCodeOverride @@ -625,7 +625,7 @@ func (e *PreconditionNotMetException) ErrorMessage() string { return *e.Message } func (e *PreconditionNotMetException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PreconditionNotMetException" } return *e.ErrorCodeOverride @@ -652,7 +652,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -678,7 +678,7 @@ func (e *ScopeDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *ScopeDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ScopeDoesNotExistException" } return *e.ErrorCodeOverride @@ -705,7 +705,7 @@ func (e *SoftwareTokenMFANotFoundException) ErrorMessage() string { return *e.Message } func (e *SoftwareTokenMFANotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SoftwareTokenMFANotFoundException" } return *e.ErrorCodeOverride @@ -732,7 +732,7 @@ func (e *TooManyFailedAttemptsException) ErrorMessage() string { return *e.Message } func (e *TooManyFailedAttemptsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyFailedAttemptsException" } return *e.ErrorCodeOverride @@ -759,7 +759,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -786,7 +786,7 @@ func (e *UnauthorizedException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedException" } return *e.ErrorCodeOverride @@ -813,7 +813,7 @@ func (e *UnexpectedLambdaException) ErrorMessage() string { return *e.Message } func (e *UnexpectedLambdaException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnexpectedLambdaException" } return *e.ErrorCodeOverride @@ -839,7 +839,7 @@ func (e *UnsupportedIdentityProviderException) ErrorMessage() string { return *e.Message } func (e *UnsupportedIdentityProviderException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedIdentityProviderException" } return *e.ErrorCodeOverride @@ -868,7 +868,7 @@ func (e *UnsupportedOperationException) ErrorMessage() string { return *e.Message } func (e *UnsupportedOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedOperationException" } return *e.ErrorCodeOverride @@ -894,7 +894,7 @@ func (e *UnsupportedTokenTypeException) ErrorMessage() string { return *e.Message } func (e *UnsupportedTokenTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedTokenTypeException" } return *e.ErrorCodeOverride @@ -920,7 +920,7 @@ func (e *UnsupportedUserStateException) ErrorMessage() string { return *e.Message } func (e *UnsupportedUserStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedUserStateException" } return *e.ErrorCodeOverride @@ -947,7 +947,7 @@ func (e *UserImportInProgressException) ErrorMessage() string { return *e.Message } func (e *UserImportInProgressException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UserImportInProgressException" } return *e.ErrorCodeOverride @@ -974,7 +974,7 @@ func (e *UserLambdaValidationException) ErrorMessage() string { return *e.Message } func (e *UserLambdaValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UserLambdaValidationException" } return *e.ErrorCodeOverride @@ -1001,7 +1001,7 @@ func (e *UsernameExistsException) ErrorMessage() string { return *e.Message } func (e *UsernameExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UsernameExistsException" } return *e.ErrorCodeOverride @@ -1027,7 +1027,7 @@ func (e *UserNotConfirmedException) ErrorMessage() string { return *e.Message } func (e *UserNotConfirmedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UserNotConfirmedException" } return *e.ErrorCodeOverride @@ -1053,7 +1053,7 @@ func (e *UserNotFoundException) ErrorMessage() string { return *e.Message } func (e *UserNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UserNotFoundException" } return *e.ErrorCodeOverride @@ -1079,7 +1079,7 @@ func (e *UserPoolAddOnNotEnabledException) ErrorMessage() string { return *e.Message } func (e *UserPoolAddOnNotEnabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UserPoolAddOnNotEnabledException" } return *e.ErrorCodeOverride @@ -1105,7 +1105,7 @@ func (e *UserPoolTaggingException) ErrorMessage() string { return *e.Message } func (e *UserPoolTaggingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UserPoolTaggingException" } return *e.ErrorCodeOverride diff --git a/service/cognitosync/types/errors.go b/service/cognitosync/types/errors.go index 4785bb2d844..0d21e220a32 100644 --- a/service/cognitosync/types/errors.go +++ b/service/cognitosync/types/errors.go @@ -27,7 +27,7 @@ func (e *AlreadyStreamedException) ErrorMessage() string { return *e.Message } func (e *AlreadyStreamedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AlreadyStreamedException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *DuplicateRequestException) ErrorMessage() string { return *e.Message } func (e *DuplicateRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateRequestException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *InternalErrorException) ErrorMessage() string { return *e.Message } func (e *InternalErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalErrorException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *InvalidConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidConfigurationException" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *InvalidLambdaFunctionOutputException) ErrorMessage() string { return *e.Message } func (e *InvalidLambdaFunctionOutputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidLambdaFunctionOutputException" } return *e.ErrorCodeOverride @@ -185,7 +185,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -211,7 +211,7 @@ func (e *LambdaThrottledException) ErrorMessage() string { return *e.Message } func (e *LambdaThrottledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LambdaThrottledException" } return *e.ErrorCodeOverride @@ -237,7 +237,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -263,7 +263,7 @@ func (e *NotAuthorizedException) ErrorMessage() string { return *e.Message } func (e *NotAuthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotAuthorizedException" } return *e.ErrorCodeOverride @@ -290,7 +290,7 @@ func (e *ResourceConflictException) ErrorMessage() string { return *e.Message } func (e *ResourceConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceConflictException" } return *e.ErrorCodeOverride @@ -316,7 +316,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -342,7 +342,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride diff --git a/service/comprehend/types/errors.go b/service/comprehend/types/errors.go index 1e4814f0b1d..2000ea6abf6 100644 --- a/service/comprehend/types/errors.go +++ b/service/comprehend/types/errors.go @@ -27,7 +27,7 @@ func (e *BatchSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *BatchSizeLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BatchSizeLimitExceededException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *InvalidFilterException) ErrorMessage() string { return *e.Message } func (e *InvalidFilterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidFilterException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -161,7 +161,7 @@ func (e *JobNotFoundException) ErrorMessage() string { return *e.Message } func (e *JobNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "JobNotFoundException" } return *e.ErrorCodeOverride @@ -188,7 +188,7 @@ func (e *KmsKeyValidationException) ErrorMessage() string { return *e.Message } func (e *KmsKeyValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KmsKeyValidationException" } return *e.ErrorCodeOverride @@ -215,7 +215,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -242,7 +242,7 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceLimitExceededException" } return *e.ErrorCodeOverride @@ -269,7 +269,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -296,7 +296,7 @@ func (e *ResourceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ResourceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceUnavailableException" } return *e.ErrorCodeOverride @@ -322,7 +322,7 @@ func (e *TextSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *TextSizeLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TextSizeLimitExceededException" } return *e.ErrorCodeOverride @@ -348,7 +348,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -375,7 +375,7 @@ func (e *TooManyTagKeysException) ErrorMessage() string { return *e.Message } func (e *TooManyTagKeysException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagKeysException" } return *e.ErrorCodeOverride @@ -403,7 +403,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -433,7 +433,7 @@ func (e *UnsupportedLanguageException) ErrorMessage() string { return *e.Message } func (e *UnsupportedLanguageException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedLanguageException" } return *e.ErrorCodeOverride diff --git a/service/comprehendmedical/types/errors.go b/service/comprehendmedical/types/errors.go index 0f13b08c0a4..1fbf57033d0 100644 --- a/service/comprehendmedical/types/errors.go +++ b/service/comprehendmedical/types/errors.go @@ -26,7 +26,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *InvalidEncodingException) ErrorMessage() string { return *e.Message } func (e *InvalidEncodingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidEncodingException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -134,7 +134,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -161,7 +161,7 @@ func (e *TextSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *TextSizeLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TextSizeLimitExceededException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -216,7 +216,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/computeoptimizer/types/errors.go b/service/computeoptimizer/types/errors.go index 90aa799be4c..23ef647f6ff 100644 --- a/service/computeoptimizer/types/errors.go +++ b/service/computeoptimizer/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InvalidParameterValueException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterValueException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *MissingAuthenticationToken) ErrorMessage() string { return *e.Message } func (e *MissingAuthenticationToken) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MissingAuthenticationToken" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *OptInRequiredException) ErrorMessage() string { return *e.Message } func (e *OptInRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OptInRequiredException" } return *e.ErrorCodeOverride @@ -183,7 +183,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -209,7 +209,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -235,7 +235,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride diff --git a/service/configservice/types/errors.go b/service/configservice/types/errors.go index 1f6f6dc8a56..e0f36486de1 100644 --- a/service/configservice/types/errors.go +++ b/service/configservice/types/errors.go @@ -26,7 +26,7 @@ func (e *ConformancePackTemplateValidationException) ErrorMessage() string { return *e.Message } func (e *ConformancePackTemplateValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConformancePackTemplateValidationException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *IdempotentParameterMismatch) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatch) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IdempotentParameterMismatch" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *InsufficientDeliveryPolicyException) ErrorMessage() string { return *e.Message } func (e *InsufficientDeliveryPolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientDeliveryPolicyException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *InsufficientPermissionsException) ErrorMessage() string { return *e.Message } func (e *InsufficientPermissionsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientPermissionsException" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *InvalidConfigurationRecorderNameException) ErrorMessage() string { return *e.Message } func (e *InvalidConfigurationRecorderNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidConfigurationRecorderNameException" } return *e.ErrorCodeOverride @@ -185,7 +185,7 @@ func (e *InvalidDeliveryChannelNameException) ErrorMessage() string { return *e.Message } func (e *InvalidDeliveryChannelNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDeliveryChannelNameException" } return *e.ErrorCodeOverride @@ -213,7 +213,7 @@ func (e *InvalidExpressionException) ErrorMessage() string { return *e.Message } func (e *InvalidExpressionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidExpressionException" } return *e.ErrorCodeOverride @@ -239,7 +239,7 @@ func (e *InvalidLimitException) ErrorMessage() string { return *e.Message } func (e *InvalidLimitException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidLimitException" } return *e.ErrorCodeOverride @@ -266,7 +266,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -293,7 +293,7 @@ func (e *InvalidParameterValueException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterValueException" } return *e.ErrorCodeOverride @@ -320,7 +320,7 @@ func (e *InvalidRecordingGroupException) ErrorMessage() string { return *e.Message } func (e *InvalidRecordingGroupException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRecordingGroupException" } return *e.ErrorCodeOverride @@ -346,7 +346,7 @@ func (e *InvalidResultTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidResultTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidResultTokenException" } return *e.ErrorCodeOverride @@ -372,7 +372,7 @@ func (e *InvalidRoleException) ErrorMessage() string { return *e.Message } func (e *InvalidRoleException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRoleException" } return *e.ErrorCodeOverride @@ -398,7 +398,7 @@ func (e *InvalidS3KeyPrefixException) ErrorMessage() string { return *e.Message } func (e *InvalidS3KeyPrefixException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidS3KeyPrefixException" } return *e.ErrorCodeOverride @@ -424,7 +424,7 @@ func (e *InvalidS3KmsKeyArnException) ErrorMessage() string { return *e.Message } func (e *InvalidS3KmsKeyArnException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidS3KmsKeyArnException" } return *e.ErrorCodeOverride @@ -450,7 +450,7 @@ func (e *InvalidSNSTopicARNException) ErrorMessage() string { return *e.Message } func (e *InvalidSNSTopicARNException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSNSTopicARNException" } return *e.ErrorCodeOverride @@ -477,7 +477,7 @@ func (e *InvalidTimeRangeException) ErrorMessage() string { return *e.Message } func (e *InvalidTimeRangeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTimeRangeException" } return *e.ErrorCodeOverride @@ -504,7 +504,7 @@ func (e *LastDeliveryChannelDeleteFailedException) ErrorMessage() string { return *e.Message } func (e *LastDeliveryChannelDeleteFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LastDeliveryChannelDeleteFailedException" } return *e.ErrorCodeOverride @@ -535,7 +535,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -563,7 +563,7 @@ func (e *MaxActiveResourcesExceededException) ErrorMessage() string { return *e.Message } func (e *MaxActiveResourcesExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaxActiveResourcesExceededException" } return *e.ErrorCodeOverride @@ -593,7 +593,7 @@ func (e *MaxNumberOfConfigRulesExceededException) ErrorMessage() string { return *e.Message } func (e *MaxNumberOfConfigRulesExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaxNumberOfConfigRulesExceededException" } return *e.ErrorCodeOverride @@ -621,7 +621,7 @@ func (e *MaxNumberOfConfigurationRecordersExceededException) ErrorMessage() stri return *e.Message } func (e *MaxNumberOfConfigurationRecordersExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaxNumberOfConfigurationRecordersExceededException" } return *e.ErrorCodeOverride @@ -652,7 +652,7 @@ func (e *MaxNumberOfConformancePacksExceededException) ErrorMessage() string { return *e.Message } func (e *MaxNumberOfConformancePacksExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaxNumberOfConformancePacksExceededException" } return *e.ErrorCodeOverride @@ -680,7 +680,7 @@ func (e *MaxNumberOfDeliveryChannelsExceededException) ErrorMessage() string { return *e.Message } func (e *MaxNumberOfDeliveryChannelsExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaxNumberOfDeliveryChannelsExceededException" } return *e.ErrorCodeOverride @@ -711,7 +711,7 @@ func (e *MaxNumberOfOrganizationConfigRulesExceededException) ErrorMessage() str return *e.Message } func (e *MaxNumberOfOrganizationConfigRulesExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaxNumberOfOrganizationConfigRulesExceededException" } return *e.ErrorCodeOverride @@ -742,7 +742,7 @@ func (e *MaxNumberOfOrganizationConformancePacksExceededException) ErrorMessage( return *e.Message } func (e *MaxNumberOfOrganizationConformancePacksExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaxNumberOfOrganizationConformancePacksExceededException" } return *e.ErrorCodeOverride @@ -771,7 +771,7 @@ func (e *MaxNumberOfRetentionConfigurationsExceededException) ErrorMessage() str return *e.Message } func (e *MaxNumberOfRetentionConfigurationsExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaxNumberOfRetentionConfigurationsExceededException" } return *e.ErrorCodeOverride @@ -800,7 +800,7 @@ func (e *NoAvailableConfigurationRecorderException) ErrorMessage() string { return *e.Message } func (e *NoAvailableConfigurationRecorderException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoAvailableConfigurationRecorderException" } return *e.ErrorCodeOverride @@ -828,7 +828,7 @@ func (e *NoAvailableDeliveryChannelException) ErrorMessage() string { return *e.Message } func (e *NoAvailableDeliveryChannelException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoAvailableDeliveryChannelException" } return *e.ErrorCodeOverride @@ -856,7 +856,7 @@ func (e *NoAvailableOrganizationException) ErrorMessage() string { return *e.Message } func (e *NoAvailableOrganizationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoAvailableOrganizationException" } return *e.ErrorCodeOverride @@ -882,7 +882,7 @@ func (e *NoRunningConfigurationRecorderException) ErrorMessage() string { return *e.Message } func (e *NoRunningConfigurationRecorderException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoRunningConfigurationRecorderException" } return *e.ErrorCodeOverride @@ -910,7 +910,7 @@ func (e *NoSuchBucketException) ErrorMessage() string { return *e.Message } func (e *NoSuchBucketException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchBucketException" } return *e.ErrorCodeOverride @@ -938,7 +938,7 @@ func (e *NoSuchConfigRuleException) ErrorMessage() string { return *e.Message } func (e *NoSuchConfigRuleException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchConfigRuleException" } return *e.ErrorCodeOverride @@ -964,7 +964,7 @@ func (e *NoSuchConfigRuleInConformancePackException) ErrorMessage() string { return *e.Message } func (e *NoSuchConfigRuleInConformancePackException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchConfigRuleInConformancePackException" } return *e.ErrorCodeOverride @@ -992,7 +992,7 @@ func (e *NoSuchConfigurationAggregatorException) ErrorMessage() string { return *e.Message } func (e *NoSuchConfigurationAggregatorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchConfigurationAggregatorException" } return *e.ErrorCodeOverride @@ -1020,7 +1020,7 @@ func (e *NoSuchConfigurationRecorderException) ErrorMessage() string { return *e.Message } func (e *NoSuchConfigurationRecorderException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchConfigurationRecorderException" } return *e.ErrorCodeOverride @@ -1048,7 +1048,7 @@ func (e *NoSuchConformancePackException) ErrorMessage() string { return *e.Message } func (e *NoSuchConformancePackException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchConformancePackException" } return *e.ErrorCodeOverride @@ -1074,7 +1074,7 @@ func (e *NoSuchDeliveryChannelException) ErrorMessage() string { return *e.Message } func (e *NoSuchDeliveryChannelException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchDeliveryChannelException" } return *e.ErrorCodeOverride @@ -1102,7 +1102,7 @@ func (e *NoSuchOrganizationConfigRuleException) ErrorMessage() string { return *e.Message } func (e *NoSuchOrganizationConfigRuleException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchOrganizationConfigRuleException" } return *e.ErrorCodeOverride @@ -1132,7 +1132,7 @@ func (e *NoSuchOrganizationConformancePackException) ErrorMessage() string { return *e.Message } func (e *NoSuchOrganizationConformancePackException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchOrganizationConformancePackException" } return *e.ErrorCodeOverride @@ -1160,7 +1160,7 @@ func (e *NoSuchRemediationConfigurationException) ErrorMessage() string { return *e.Message } func (e *NoSuchRemediationConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchRemediationConfigurationException" } return *e.ErrorCodeOverride @@ -1188,7 +1188,7 @@ func (e *NoSuchRemediationExceptionException) ErrorMessage() string { return *e.Message } func (e *NoSuchRemediationExceptionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchRemediationExceptionException" } return *e.ErrorCodeOverride @@ -1216,7 +1216,7 @@ func (e *NoSuchRetentionConfigurationException) ErrorMessage() string { return *e.Message } func (e *NoSuchRetentionConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchRetentionConfigurationException" } return *e.ErrorCodeOverride @@ -1269,7 +1269,7 @@ func (e *OrganizationAccessDeniedException) ErrorMessage() string { return *e.Message } func (e *OrganizationAccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OrganizationAccessDeniedException" } return *e.ErrorCodeOverride @@ -1296,7 +1296,7 @@ func (e *OrganizationAllFeaturesNotEnabledException) ErrorMessage() string { return *e.Message } func (e *OrganizationAllFeaturesNotEnabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OrganizationAllFeaturesNotEnabledException" } return *e.ErrorCodeOverride @@ -1324,7 +1324,7 @@ func (e *OrganizationConformancePackTemplateValidationException) ErrorMessage() return *e.Message } func (e *OrganizationConformancePackTemplateValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OrganizationConformancePackTemplateValidationException" } return *e.ErrorCodeOverride @@ -1352,7 +1352,7 @@ func (e *OversizedConfigurationItemException) ErrorMessage() string { return *e.Message } func (e *OversizedConfigurationItemException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OversizedConfigurationItemException" } return *e.ErrorCodeOverride @@ -1381,7 +1381,7 @@ func (e *RemediationInProgressException) ErrorMessage() string { return *e.Message } func (e *RemediationInProgressException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RemediationInProgressException" } return *e.ErrorCodeOverride @@ -1408,7 +1408,7 @@ func (e *ResourceConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ResourceConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceConcurrentModificationException" } return *e.ErrorCodeOverride @@ -1462,7 +1462,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -1488,7 +1488,7 @@ func (e *ResourceNotDiscoveredException) ErrorMessage() string { return *e.Message } func (e *ResourceNotDiscoveredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotDiscoveredException" } return *e.ErrorCodeOverride @@ -1514,7 +1514,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -1543,7 +1543,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -1573,7 +1573,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/connect/types/errors.go b/service/connect/types/errors.go index f3ae909b9b1..05327d9dade 100644 --- a/service/connect/types/errors.go +++ b/service/connect/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ContactFlowNotPublishedException) ErrorMessage() string { return *e.Message } func (e *ContactFlowNotPublishedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ContactFlowNotPublishedException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *ContactNotFoundException) ErrorMessage() string { return *e.Message } func (e *ContactNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ContactNotFoundException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *DestinationNotAllowedException) ErrorMessage() string { return *e.Message } func (e *DestinationNotAllowedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DestinationNotAllowedException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *DuplicateResourceException) ErrorMessage() string { return *e.Message } func (e *DuplicateResourceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateResourceException" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *IdempotencyException) ErrorMessage() string { return *e.Message } func (e *IdempotencyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IdempotencyException" } return *e.ErrorCodeOverride @@ -183,7 +183,7 @@ func (e *InternalServiceException) ErrorMessage() string { return *e.Message } func (e *InternalServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceException" } return *e.ErrorCodeOverride @@ -211,7 +211,7 @@ func (e *InvalidContactFlowException) ErrorMessage() string { return *e.Message } func (e *InvalidContactFlowException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidContactFlowException" } return *e.ErrorCodeOverride @@ -239,7 +239,7 @@ func (e *InvalidContactFlowModuleException) ErrorMessage() string { return *e.Message } func (e *InvalidContactFlowModuleException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidContactFlowModuleException" } return *e.ErrorCodeOverride @@ -265,7 +265,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -291,7 +291,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -317,7 +317,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -343,7 +343,7 @@ func (e *OutboundContactNotPermittedException) ErrorMessage() string { return *e.Message } func (e *OutboundContactNotPermittedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OutboundContactNotPermittedException" } return *e.ErrorCodeOverride @@ -373,7 +373,7 @@ func (e *PropertyValidationException) ErrorMessage() string { return *e.Message } func (e *PropertyValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PropertyValidationException" } return *e.ErrorCodeOverride @@ -399,7 +399,7 @@ func (e *ResourceConflictException) ErrorMessage() string { return *e.Message } func (e *ResourceConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceConflictException" } return *e.ErrorCodeOverride @@ -428,7 +428,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -454,7 +454,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -480,7 +480,7 @@ func (e *ResourceNotReadyException) ErrorMessage() string { return *e.Message } func (e *ResourceNotReadyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotReadyException" } return *e.ErrorCodeOverride @@ -506,7 +506,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -532,7 +532,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -558,7 +558,7 @@ func (e *UserNotFoundException) ErrorMessage() string { return *e.Message } func (e *UserNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UserNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/connectcampaigns/types/errors.go b/service/connectcampaigns/types/errors.go index 8efe5da0a77..b3d165bd4b9 100644 --- a/service/connectcampaigns/types/errors.go +++ b/service/connectcampaigns/types/errors.go @@ -28,7 +28,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -85,7 +85,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -115,7 +115,7 @@ func (e *InvalidCampaignStateException) ErrorMessage() string { return *e.Message } func (e *InvalidCampaignStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCampaignStateException" } return *e.ErrorCodeOverride @@ -143,7 +143,7 @@ func (e *InvalidStateException) ErrorMessage() string { return *e.Message } func (e *InvalidStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidStateException" } return *e.ErrorCodeOverride @@ -171,7 +171,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -199,7 +199,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -227,7 +227,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -255,7 +255,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/connectcases/types/errors.go b/service/connectcases/types/errors.go index c7fba45ee72..7a56c0a4a08 100644 --- a/service/connectcases/types/errors.go +++ b/service/connectcases/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -114,7 +114,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -143,7 +143,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -169,7 +169,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -195,7 +195,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/connectcontactlens/types/errors.go b/service/connectcontactlens/types/errors.go index 29f95d7151c..9725cc07b1f 100644 --- a/service/connectcontactlens/types/errors.go +++ b/service/connectcontactlens/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InternalServiceException) ErrorMessage() string { return *e.Message } func (e *InternalServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride diff --git a/service/connectparticipant/types/errors.go b/service/connectparticipant/types/errors.go index 8443760ab27..2f1b381d4ad 100644 --- a/service/connectparticipant/types/errors.go +++ b/service/connectparticipant/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/controltower/types/errors.go b/service/controltower/types/errors.go index f229bf87e3d..4002980011b 100644 --- a/service/controltower/types/errors.go +++ b/service/controltower/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -161,7 +161,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -187,7 +187,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/costandusagereportservice/types/errors.go b/service/costandusagereportservice/types/errors.go index 53828c54fdc..671e93bddde 100644 --- a/service/costandusagereportservice/types/errors.go +++ b/service/costandusagereportservice/types/errors.go @@ -27,7 +27,7 @@ func (e *DuplicateReportNameException) ErrorMessage() string { return *e.Message } func (e *DuplicateReportNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateReportNameException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *InternalErrorException) ErrorMessage() string { return *e.Message } func (e *InternalErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalErrorException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *ReportLimitReachedException) ErrorMessage() string { return *e.Message } func (e *ReportLimitReachedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReportLimitReachedException" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/costexplorer/types/errors.go b/service/costexplorer/types/errors.go index 86f96d86dd3..369a77ef173 100644 --- a/service/costexplorer/types/errors.go +++ b/service/costexplorer/types/errors.go @@ -26,7 +26,7 @@ func (e *BillExpirationException) ErrorMessage() string { return *e.Message } func (e *BillExpirationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BillExpirationException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *DataUnavailableException) ErrorMessage() string { return *e.Message } func (e *DataUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DataUnavailableException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *GenerationExistsException) ErrorMessage() string { return *e.Message } func (e *GenerationExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GenerationExistsException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *RequestChangedException) ErrorMessage() string { return *e.Message } func (e *RequestChangedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestChangedException" } return *e.ErrorCodeOverride @@ -185,7 +185,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -212,7 +212,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -241,7 +241,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -267,7 +267,7 @@ func (e *UnknownMonitorException) ErrorMessage() string { return *e.Message } func (e *UnknownMonitorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnknownMonitorException" } return *e.ErrorCodeOverride @@ -293,7 +293,7 @@ func (e *UnknownSubscriptionException) ErrorMessage() string { return *e.Message } func (e *UnknownSubscriptionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnknownSubscriptionException" } return *e.ErrorCodeOverride @@ -321,7 +321,7 @@ func (e *UnresolvableUsageUnitException) ErrorMessage() string { return *e.Message } func (e *UnresolvableUsageUnitException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnresolvableUsageUnitException" } return *e.ErrorCodeOverride diff --git a/service/customerprofiles/types/errors.go b/service/customerprofiles/types/errors.go index 9b3dbf12463..4957998b3c9 100644 --- a/service/customerprofiles/types/errors.go +++ b/service/customerprofiles/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride diff --git a/service/databasemigrationservice/types/errors.go b/service/databasemigrationservice/types/errors.go index e87091f7ff3..baa08e5a610 100644 --- a/service/databasemigrationservice/types/errors.go +++ b/service/databasemigrationservice/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedFault) ErrorMessage() string { return *e.Message } func (e *AccessDeniedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedFault" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *CollectorNotFoundFault) ErrorMessage() string { return *e.Message } func (e *CollectorNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CollectorNotFoundFault" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *InsufficientResourceCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientResourceCapacityFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientResourceCapacityFault" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *InvalidCertificateFault) ErrorMessage() string { return *e.Message } func (e *InvalidCertificateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCertificateFault" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *InvalidOperationFault) ErrorMessage() string { return *e.Message } func (e *InvalidOperationFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOperationFault" } return *e.ErrorCodeOverride @@ -158,7 +158,7 @@ func (e *InvalidResourceStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidResourceStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidResourceStateFault" } return *e.ErrorCodeOverride @@ -184,7 +184,7 @@ func (e *InvalidSubnet) ErrorMessage() string { return *e.Message } func (e *InvalidSubnet) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSubnet" } return *e.ErrorCodeOverride @@ -211,7 +211,7 @@ func (e *KMSAccessDeniedFault) ErrorMessage() string { return *e.Message } func (e *KMSAccessDeniedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSAccessDeniedFault" } return *e.ErrorCodeOverride @@ -237,7 +237,7 @@ func (e *KMSDisabledFault) ErrorMessage() string { return *e.Message } func (e *KMSDisabledFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSDisabledFault" } return *e.ErrorCodeOverride @@ -263,7 +263,7 @@ func (e *KMSFault) ErrorMessage() string { return *e.Message } func (e *KMSFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSFault" } return *e.ErrorCodeOverride @@ -289,7 +289,7 @@ func (e *KMSInvalidStateFault) ErrorMessage() string { return *e.Message } func (e *KMSInvalidStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSInvalidStateFault" } return *e.ErrorCodeOverride @@ -315,7 +315,7 @@ func (e *KMSKeyNotAccessibleFault) ErrorMessage() string { return *e.Message } func (e *KMSKeyNotAccessibleFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSKeyNotAccessibleFault" } return *e.ErrorCodeOverride @@ -341,7 +341,7 @@ func (e *KMSNotFoundFault) ErrorMessage() string { return *e.Message } func (e *KMSNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSNotFoundFault" } return *e.ErrorCodeOverride @@ -367,7 +367,7 @@ func (e *KMSThrottlingFault) ErrorMessage() string { return *e.Message } func (e *KMSThrottlingFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSThrottlingFault" } return *e.ErrorCodeOverride @@ -394,7 +394,7 @@ func (e *ReplicationSubnetGroupDoesNotCoverEnoughAZs) ErrorMessage() string { return *e.Message } func (e *ReplicationSubnetGroupDoesNotCoverEnoughAZs) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReplicationSubnetGroupDoesNotCoverEnoughAZs" } return *e.ErrorCodeOverride @@ -424,7 +424,7 @@ func (e *ResourceAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -450,7 +450,7 @@ func (e *ResourceNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundFault" } return *e.ErrorCodeOverride @@ -476,7 +476,7 @@ func (e *ResourceQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ResourceQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceQuotaExceededFault" } return *e.ErrorCodeOverride @@ -502,7 +502,7 @@ func (e *S3AccessDeniedFault) ErrorMessage() string { return *e.Message } func (e *S3AccessDeniedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "S3AccessDeniedFault" } return *e.ErrorCodeOverride @@ -528,7 +528,7 @@ func (e *S3ResourceNotFoundFault) ErrorMessage() string { return *e.Message } func (e *S3ResourceNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "S3ResourceNotFoundFault" } return *e.ErrorCodeOverride @@ -554,7 +554,7 @@ func (e *SNSInvalidTopicFault) ErrorMessage() string { return *e.Message } func (e *SNSInvalidTopicFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SNSInvalidTopicFault" } return *e.ErrorCodeOverride @@ -580,7 +580,7 @@ func (e *SNSNoAuthorizationFault) ErrorMessage() string { return *e.Message } func (e *SNSNoAuthorizationFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SNSNoAuthorizationFault" } return *e.ErrorCodeOverride @@ -606,7 +606,7 @@ func (e *StorageQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *StorageQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StorageQuotaExceededFault" } return *e.ErrorCodeOverride @@ -632,7 +632,7 @@ func (e *SubnetAlreadyInUse) ErrorMessage() string { return *e.Message } func (e *SubnetAlreadyInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetAlreadyInUse" } return *e.ErrorCodeOverride @@ -658,7 +658,7 @@ func (e *UpgradeDependencyFailureFault) ErrorMessage() string { return *e.Message } func (e *UpgradeDependencyFailureFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UpgradeDependencyFailureFault" } return *e.ErrorCodeOverride diff --git a/service/databrew/types/errors.go b/service/databrew/types/errors.go index 1eea8830144..0d77e39ff3c 100644 --- a/service/databrew/types/errors.go +++ b/service/databrew/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/dataexchange/types/errors.go b/service/dataexchange/types/errors.go index 7fd9793aa60..26ade88fe6c 100644 --- a/service/dataexchange/types/errors.go +++ b/service/dataexchange/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -111,7 +111,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -140,7 +140,7 @@ func (e *ServiceLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceLimitExceededException" } return *e.ErrorCodeOverride @@ -166,7 +166,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -194,7 +194,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/datapipeline/types/errors.go b/service/datapipeline/types/errors.go index ab16b2f9dba..470097bb8e1 100644 --- a/service/datapipeline/types/errors.go +++ b/service/datapipeline/types/errors.go @@ -26,7 +26,7 @@ func (e *InternalServiceError) ErrorMessage() string { return *e.Message } func (e *InternalServiceError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceError" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *PipelineDeletedException) ErrorMessage() string { return *e.Message } func (e *PipelineDeletedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PipelineDeletedException" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *PipelineNotFoundException) ErrorMessage() string { return *e.Message } func (e *PipelineNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PipelineNotFoundException" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *TaskNotFoundException) ErrorMessage() string { return *e.Message } func (e *TaskNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TaskNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/datasync/types/errors.go b/service/datasync/types/errors.go index 164f649c63e..0648214eccb 100644 --- a/service/datasync/types/errors.go +++ b/service/datasync/types/errors.go @@ -28,7 +28,7 @@ func (e *InternalException) ErrorMessage() string { return *e.Message } func (e *InternalException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalException" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride diff --git a/service/dax/types/errors.go b/service/dax/types/errors.go index 45cb130615a..6c56304be02 100644 --- a/service/dax/types/errors.go +++ b/service/dax/types/errors.go @@ -26,7 +26,7 @@ func (e *ClusterAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ClusterAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ClusterNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ClusterNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterNotFoundFault" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *ClusterQuotaForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterQuotaForCustomerExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterQuotaForCustomerExceededFault" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *InsufficientClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientClusterCapacityFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientClusterCapacityFault" } return *e.ErrorCodeOverride @@ -134,7 +134,7 @@ func (e *InvalidARNFault) ErrorMessage() string { return *e.Message } func (e *InvalidARNFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidARNFault" } return *e.ErrorCodeOverride @@ -160,7 +160,7 @@ func (e *InvalidClusterStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidClusterStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidClusterStateFault" } return *e.ErrorCodeOverride @@ -186,7 +186,7 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterCombinationException" } return *e.ErrorCodeOverride @@ -214,7 +214,7 @@ func (e *InvalidParameterGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidParameterGroupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterGroupStateFault" } return *e.ErrorCodeOverride @@ -240,7 +240,7 @@ func (e *InvalidParameterValueException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterValueException" } return *e.ErrorCodeOverride @@ -266,7 +266,7 @@ func (e *InvalidSubnet) ErrorMessage() string { return *e.Message } func (e *InvalidSubnet) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSubnet" } return *e.ErrorCodeOverride @@ -292,7 +292,7 @@ func (e *InvalidVPCNetworkStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidVPCNetworkStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidVPCNetworkStateFault" } return *e.ErrorCodeOverride @@ -318,7 +318,7 @@ func (e *NodeNotFoundFault) ErrorMessage() string { return *e.Message } func (e *NodeNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NodeNotFoundFault" } return *e.ErrorCodeOverride @@ -344,7 +344,7 @@ func (e *NodeQuotaForClusterExceededFault) ErrorMessage() string { return *e.Message } func (e *NodeQuotaForClusterExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NodeQuotaForClusterExceededFault" } return *e.ErrorCodeOverride @@ -370,7 +370,7 @@ func (e *NodeQuotaForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *NodeQuotaForCustomerExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NodeQuotaForCustomerExceededFault" } return *e.ErrorCodeOverride @@ -396,7 +396,7 @@ func (e *ParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ParameterGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ParameterGroupAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -422,7 +422,7 @@ func (e *ParameterGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ParameterGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ParameterGroupNotFoundFault" } return *e.ErrorCodeOverride @@ -448,7 +448,7 @@ func (e *ParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ParameterGroupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ParameterGroupQuotaExceededFault" } return *e.ErrorCodeOverride @@ -474,7 +474,7 @@ func (e *ServiceLinkedRoleNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ServiceLinkedRoleNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceLinkedRoleNotFoundFault" } return *e.ErrorCodeOverride @@ -502,7 +502,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -528,7 +528,7 @@ func (e *SubnetGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *SubnetGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetGroupAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -554,7 +554,7 @@ func (e *SubnetGroupInUseFault) ErrorMessage() string { return *e.Message } func (e *SubnetGroupInUseFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetGroupInUseFault" } return *e.ErrorCodeOverride @@ -580,7 +580,7 @@ func (e *SubnetGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SubnetGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetGroupNotFoundFault" } return *e.ErrorCodeOverride @@ -607,7 +607,7 @@ func (e *SubnetGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *SubnetGroupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetGroupQuotaExceededFault" } return *e.ErrorCodeOverride @@ -633,7 +633,7 @@ func (e *SubnetInUse) ErrorMessage() string { return *e.Message } func (e *SubnetInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetInUse" } return *e.ErrorCodeOverride @@ -660,7 +660,7 @@ func (e *SubnetQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *SubnetQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetQuotaExceededFault" } return *e.ErrorCodeOverride @@ -686,7 +686,7 @@ func (e *TagNotFoundFault) ErrorMessage() string { return *e.Message } func (e *TagNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagNotFoundFault" } return *e.ErrorCodeOverride @@ -712,7 +712,7 @@ func (e *TagQuotaPerResourceExceeded) ErrorMessage() string { return *e.Message } func (e *TagQuotaPerResourceExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagQuotaPerResourceExceeded" } return *e.ErrorCodeOverride diff --git a/service/detective/types/errors.go b/service/detective/types/errors.go index b1db290352c..54f72fd4e81 100644 --- a/service/detective/types/errors.go +++ b/service/detective/types/errors.go @@ -32,7 +32,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -58,7 +58,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -110,7 +110,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -150,7 +150,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -177,7 +177,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -206,7 +206,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/devicefarm/types/errors.go b/service/devicefarm/types/errors.go index f6fea694960..f287a08685a 100644 --- a/service/devicefarm/types/errors.go +++ b/service/devicefarm/types/errors.go @@ -26,7 +26,7 @@ func (e *ArgumentException) ErrorMessage() string { return *e.Message } func (e *ArgumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ArgumentException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *CannotDeleteException) ErrorMessage() string { return *e.Message } func (e *CannotDeleteException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CannotDeleteException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *IdempotencyException) ErrorMessage() string { return *e.Message } func (e *IdempotencyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IdempotencyException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *InternalServiceException) ErrorMessage() string { return *e.Message } func (e *InternalServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceException" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *InvalidOperationException) ErrorMessage() string { return *e.Message } func (e *InvalidOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOperationException" } return *e.ErrorCodeOverride @@ -159,7 +159,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -186,7 +186,7 @@ func (e *NotEligibleException) ErrorMessage() string { return *e.Message } func (e *NotEligibleException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotEligibleException" } return *e.ErrorCodeOverride @@ -212,7 +212,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -238,7 +238,7 @@ func (e *ServiceAccountException) ErrorMessage() string { return *e.Message } func (e *ServiceAccountException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceAccountException" } return *e.ErrorCodeOverride @@ -266,7 +266,7 @@ func (e *TagOperationException) ErrorMessage() string { return *e.Message } func (e *TagOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagOperationException" } return *e.ErrorCodeOverride @@ -295,7 +295,7 @@ func (e *TagPolicyException) ErrorMessage() string { return *e.Message } func (e *TagPolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagPolicyException" } return *e.ErrorCodeOverride @@ -324,7 +324,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride diff --git a/service/devopsguru/types/errors.go b/service/devopsguru/types/errors.go index 5ee5c6a22b1..711ec37acf9 100644 --- a/service/devopsguru/types/errors.go +++ b/service/devopsguru/types/errors.go @@ -30,7 +30,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -59,7 +59,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -87,7 +87,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -116,7 +116,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -142,7 +142,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -172,7 +172,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -202,7 +202,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/directconnect/types/errors.go b/service/directconnect/types/errors.go index 30017fba982..5df47bbd89f 100644 --- a/service/directconnect/types/errors.go +++ b/service/directconnect/types/errors.go @@ -26,7 +26,7 @@ func (e *DirectConnectClientException) ErrorMessage() string { return *e.Message } func (e *DirectConnectClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DirectConnectClientException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *DirectConnectServerException) ErrorMessage() string { return *e.Message } func (e *DirectConnectServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DirectConnectServerException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *DuplicateTagKeysException) ErrorMessage() string { return *e.Message } func (e *DuplicateTagKeysException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateTagKeysException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride diff --git a/service/directoryservice/types/errors.go b/service/directoryservice/types/errors.go index 82fab0e6a2b..9ce2852bacd 100644 --- a/service/directoryservice/types/errors.go +++ b/service/directoryservice/types/errors.go @@ -28,7 +28,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *AuthenticationFailedException) ErrorMessage() string { return *e.Message } func (e *AuthenticationFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AuthenticationFailedException" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *CertificateAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *CertificateAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CertificateAlreadyExistsException" } return *e.ErrorCodeOverride @@ -113,7 +113,7 @@ func (e *CertificateDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *CertificateDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CertificateDoesNotExistException" } return *e.ErrorCodeOverride @@ -142,7 +142,7 @@ func (e *CertificateInUseException) ErrorMessage() string { return *e.Message } func (e *CertificateInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CertificateInUseException" } return *e.ErrorCodeOverride @@ -171,7 +171,7 @@ func (e *CertificateLimitExceededException) ErrorMessage() string { return *e.Message } func (e *CertificateLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CertificateLimitExceededException" } return *e.ErrorCodeOverride @@ -199,7 +199,7 @@ func (e *ClientException) ErrorMessage() string { return *e.Message } func (e *ClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClientException" } return *e.ErrorCodeOverride @@ -228,7 +228,7 @@ func (e *DirectoryAlreadyInRegionException) ErrorMessage() string { return *e.Message } func (e *DirectoryAlreadyInRegionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DirectoryAlreadyInRegionException" } return *e.ErrorCodeOverride @@ -257,7 +257,7 @@ func (e *DirectoryAlreadySharedException) ErrorMessage() string { return *e.Message } func (e *DirectoryAlreadySharedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DirectoryAlreadySharedException" } return *e.ErrorCodeOverride @@ -285,7 +285,7 @@ func (e *DirectoryDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *DirectoryDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DirectoryDoesNotExistException" } return *e.ErrorCodeOverride @@ -313,7 +313,7 @@ func (e *DirectoryInDesiredStateException) ErrorMessage() string { return *e.Message } func (e *DirectoryInDesiredStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DirectoryInDesiredStateException" } return *e.ErrorCodeOverride @@ -343,7 +343,7 @@ func (e *DirectoryLimitExceededException) ErrorMessage() string { return *e.Message } func (e *DirectoryLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DirectoryLimitExceededException" } return *e.ErrorCodeOverride @@ -372,7 +372,7 @@ func (e *DirectoryNotSharedException) ErrorMessage() string { return *e.Message } func (e *DirectoryNotSharedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DirectoryNotSharedException" } return *e.ErrorCodeOverride @@ -400,7 +400,7 @@ func (e *DirectoryUnavailableException) ErrorMessage() string { return *e.Message } func (e *DirectoryUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DirectoryUnavailableException" } return *e.ErrorCodeOverride @@ -429,7 +429,7 @@ func (e *DomainControllerLimitExceededException) ErrorMessage() string { return *e.Message } func (e *DomainControllerLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DomainControllerLimitExceededException" } return *e.ErrorCodeOverride @@ -459,7 +459,7 @@ func (e *EntityAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *EntityAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EntityAlreadyExistsException" } return *e.ErrorCodeOverride @@ -487,7 +487,7 @@ func (e *EntityDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *EntityDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EntityDoesNotExistException" } return *e.ErrorCodeOverride @@ -515,7 +515,7 @@ func (e *IncompatibleSettingsException) ErrorMessage() string { return *e.Message } func (e *IncompatibleSettingsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IncompatibleSettingsException" } return *e.ErrorCodeOverride @@ -543,7 +543,7 @@ func (e *InsufficientPermissionsException) ErrorMessage() string { return *e.Message } func (e *InsufficientPermissionsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientPermissionsException" } return *e.ErrorCodeOverride @@ -571,7 +571,7 @@ func (e *InvalidCertificateException) ErrorMessage() string { return *e.Message } func (e *InvalidCertificateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCertificateException" } return *e.ErrorCodeOverride @@ -599,7 +599,7 @@ func (e *InvalidClientAuthStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidClientAuthStatusException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidClientAuthStatusException" } return *e.ErrorCodeOverride @@ -628,7 +628,7 @@ func (e *InvalidLDAPSStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidLDAPSStatusException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidLDAPSStatusException" } return *e.ErrorCodeOverride @@ -656,7 +656,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -684,7 +684,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -713,7 +713,7 @@ func (e *InvalidPasswordException) ErrorMessage() string { return *e.Message } func (e *InvalidPasswordException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPasswordException" } return *e.ErrorCodeOverride @@ -741,7 +741,7 @@ func (e *InvalidTargetException) ErrorMessage() string { return *e.Message } func (e *InvalidTargetException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTargetException" } return *e.ErrorCodeOverride @@ -770,7 +770,7 @@ func (e *IpRouteLimitExceededException) ErrorMessage() string { return *e.Message } func (e *IpRouteLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IpRouteLimitExceededException" } return *e.ErrorCodeOverride @@ -799,7 +799,7 @@ func (e *NoAvailableCertificateException) ErrorMessage() string { return *e.Message } func (e *NoAvailableCertificateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoAvailableCertificateException" } return *e.ErrorCodeOverride @@ -828,7 +828,7 @@ func (e *OrganizationsException) ErrorMessage() string { return *e.Message } func (e *OrganizationsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OrganizationsException" } return *e.ErrorCodeOverride @@ -857,7 +857,7 @@ func (e *RegionLimitExceededException) ErrorMessage() string { return *e.Message } func (e *RegionLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RegionLimitExceededException" } return *e.ErrorCodeOverride @@ -885,7 +885,7 @@ func (e *ServiceException) ErrorMessage() string { return *e.Message } func (e *ServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceException" } return *e.ErrorCodeOverride @@ -914,7 +914,7 @@ func (e *ShareLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ShareLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ShareLimitExceededException" } return *e.ErrorCodeOverride @@ -944,7 +944,7 @@ func (e *SnapshotLimitExceededException) ErrorMessage() string { return *e.Message } func (e *SnapshotLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotLimitExceededException" } return *e.ErrorCodeOverride @@ -972,7 +972,7 @@ func (e *TagLimitExceededException) ErrorMessage() string { return *e.Message } func (e *TagLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagLimitExceededException" } return *e.ErrorCodeOverride @@ -1000,7 +1000,7 @@ func (e *UnsupportedOperationException) ErrorMessage() string { return *e.Message } func (e *UnsupportedOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedOperationException" } return *e.ErrorCodeOverride @@ -1028,7 +1028,7 @@ func (e *UnsupportedSettingsException) ErrorMessage() string { return *e.Message } func (e *UnsupportedSettingsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedSettingsException" } return *e.ErrorCodeOverride @@ -1056,7 +1056,7 @@ func (e *UserDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *UserDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UserDoesNotExistException" } return *e.ErrorCodeOverride diff --git a/service/dlm/types/errors.go b/service/dlm/types/errors.go index 32254e05dfa..5a0ec4c99aa 100644 --- a/service/dlm/types/errors.go +++ b/service/dlm/types/errors.go @@ -28,7 +28,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -59,7 +59,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -88,7 +88,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -118,7 +118,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/docdb/types/errors.go b/service/docdb/types/errors.go index 0770eac3d9f..5c71abb75e9 100644 --- a/service/docdb/types/errors.go +++ b/service/docdb/types/errors.go @@ -28,7 +28,7 @@ func (e *AuthorizationNotFoundFault) ErrorMessage() string { return *e.Message } func (e *AuthorizationNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AuthorizationNotFound" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *CertificateNotFoundFault) ErrorMessage() string { return *e.Message } func (e *CertificateNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CertificateNotFound" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *DBClusterAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBClusterAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *DBClusterNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterNotFoundFault" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *DBClusterParameterGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterParameterGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterParameterGroupNotFound" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *DBClusterQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBClusterQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterQuotaExceededFault" } return *e.ErrorCodeOverride @@ -188,7 +188,7 @@ func (e *DBClusterSnapshotAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBClusterSnapshotAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterSnapshotAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -216,7 +216,7 @@ func (e *DBClusterSnapshotNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterSnapshotNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterSnapshotNotFoundFault" } return *e.ErrorCodeOverride @@ -242,7 +242,7 @@ func (e *DBInstanceAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBInstanceAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBInstanceAlreadyExists" } return *e.ErrorCodeOverride @@ -268,7 +268,7 @@ func (e *DBInstanceNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBInstanceNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBInstanceNotFound" } return *e.ErrorCodeOverride @@ -294,7 +294,7 @@ func (e *DBParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBParameterGroupAlreadyExists" } return *e.ErrorCodeOverride @@ -322,7 +322,7 @@ func (e *DBParameterGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBParameterGroupNotFound" } return *e.ErrorCodeOverride @@ -348,7 +348,7 @@ func (e *DBParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBParameterGroupQuotaExceeded" } return *e.ErrorCodeOverride @@ -376,7 +376,7 @@ func (e *DBSecurityGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBSecurityGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSecurityGroupNotFound" } return *e.ErrorCodeOverride @@ -402,7 +402,7 @@ func (e *DBSnapshotAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBSnapshotAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSnapshotAlreadyExists" } return *e.ErrorCodeOverride @@ -428,7 +428,7 @@ func (e *DBSnapshotNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBSnapshotNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSnapshotNotFound" } return *e.ErrorCodeOverride @@ -454,7 +454,7 @@ func (e *DBSubnetGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBSubnetGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSubnetGroupAlreadyExists" } return *e.ErrorCodeOverride @@ -481,7 +481,7 @@ func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorMessage() string { return *e.Message } func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSubnetGroupDoesNotCoverEnoughAZs" } return *e.ErrorCodeOverride @@ -509,7 +509,7 @@ func (e *DBSubnetGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBSubnetGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSubnetGroupNotFoundFault" } return *e.ErrorCodeOverride @@ -535,7 +535,7 @@ func (e *DBSubnetGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBSubnetGroupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSubnetGroupQuotaExceeded" } return *e.ErrorCodeOverride @@ -562,7 +562,7 @@ func (e *DBSubnetQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBSubnetQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSubnetQuotaExceededFault" } return *e.ErrorCodeOverride @@ -588,7 +588,7 @@ func (e *DBUpgradeDependencyFailureFault) ErrorMessage() string { return *e.Message } func (e *DBUpgradeDependencyFailureFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBUpgradeDependencyFailure" } return *e.ErrorCodeOverride @@ -614,7 +614,7 @@ func (e *EventSubscriptionQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *EventSubscriptionQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EventSubscriptionQuotaExceeded" } return *e.ErrorCodeOverride @@ -643,7 +643,7 @@ func (e *GlobalClusterAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GlobalClusterAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -669,7 +669,7 @@ func (e *GlobalClusterNotFoundFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GlobalClusterNotFoundFault" } return *e.ErrorCodeOverride @@ -696,7 +696,7 @@ func (e *GlobalClusterQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GlobalClusterQuotaExceededFault" } return *e.ErrorCodeOverride @@ -722,7 +722,7 @@ func (e *InstanceQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *InstanceQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InstanceQuotaExceeded" } return *e.ErrorCodeOverride @@ -748,7 +748,7 @@ func (e *InsufficientDBClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientDBClusterCapacityFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientDBClusterCapacityFault" } return *e.ErrorCodeOverride @@ -776,7 +776,7 @@ func (e *InsufficientDBInstanceCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientDBInstanceCapacityFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientDBInstanceCapacity" } return *e.ErrorCodeOverride @@ -806,7 +806,7 @@ func (e *InsufficientStorageClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientStorageClusterCapacityFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientStorageClusterCapacity" } return *e.ErrorCodeOverride @@ -834,7 +834,7 @@ func (e *InvalidDBClusterSnapshotStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBClusterSnapshotStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBClusterSnapshotStateFault" } return *e.ErrorCodeOverride @@ -862,7 +862,7 @@ func (e *InvalidDBClusterStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBClusterStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBClusterStateFault" } return *e.ErrorCodeOverride @@ -888,7 +888,7 @@ func (e *InvalidDBInstanceStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBInstanceStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBInstanceState" } return *e.ErrorCodeOverride @@ -916,7 +916,7 @@ func (e *InvalidDBParameterGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBParameterGroupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBParameterGroupState" } return *e.ErrorCodeOverride @@ -942,7 +942,7 @@ func (e *InvalidDBSecurityGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBSecurityGroupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBSecurityGroupState" } return *e.ErrorCodeOverride @@ -968,7 +968,7 @@ func (e *InvalidDBSnapshotStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBSnapshotStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBSnapshotState" } return *e.ErrorCodeOverride @@ -994,7 +994,7 @@ func (e *InvalidDBSubnetGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBSubnetGroupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBSubnetGroupStateFault" } return *e.ErrorCodeOverride @@ -1020,7 +1020,7 @@ func (e *InvalidDBSubnetStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBSubnetStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBSubnetStateFault" } return *e.ErrorCodeOverride @@ -1047,7 +1047,7 @@ func (e *InvalidEventSubscriptionStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidEventSubscriptionStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidEventSubscriptionState" } return *e.ErrorCodeOverride @@ -1075,7 +1075,7 @@ func (e *InvalidGlobalClusterStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidGlobalClusterStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidGlobalClusterStateFault" } return *e.ErrorCodeOverride @@ -1102,7 +1102,7 @@ func (e *InvalidRestoreFault) ErrorMessage() string { return *e.Message } func (e *InvalidRestoreFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRestoreFault" } return *e.ErrorCodeOverride @@ -1129,7 +1129,7 @@ func (e *InvalidSubnet) ErrorMessage() string { return *e.Message } func (e *InvalidSubnet) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSubnet" } return *e.ErrorCodeOverride @@ -1156,7 +1156,7 @@ func (e *InvalidVPCNetworkStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidVPCNetworkStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidVPCNetworkStateFault" } return *e.ErrorCodeOverride @@ -1182,7 +1182,7 @@ func (e *KMSKeyNotAccessibleFault) ErrorMessage() string { return *e.Message } func (e *KMSKeyNotAccessibleFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSKeyNotAccessibleFault" } return *e.ErrorCodeOverride @@ -1208,7 +1208,7 @@ func (e *ResourceNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundFault" } return *e.ErrorCodeOverride @@ -1235,7 +1235,7 @@ func (e *SharedSnapshotQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *SharedSnapshotQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SharedSnapshotQuotaExceeded" } return *e.ErrorCodeOverride @@ -1261,7 +1261,7 @@ func (e *SnapshotQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *SnapshotQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotQuotaExceeded" } return *e.ErrorCodeOverride @@ -1287,7 +1287,7 @@ func (e *SNSInvalidTopicFault) ErrorMessage() string { return *e.Message } func (e *SNSInvalidTopicFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SNSInvalidTopic" } return *e.ErrorCodeOverride @@ -1314,7 +1314,7 @@ func (e *SNSNoAuthorizationFault) ErrorMessage() string { return *e.Message } func (e *SNSNoAuthorizationFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SNSNoAuthorization" } return *e.ErrorCodeOverride @@ -1340,7 +1340,7 @@ func (e *SNSTopicArnNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SNSTopicArnNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SNSTopicArnNotFound" } return *e.ErrorCodeOverride @@ -1366,7 +1366,7 @@ func (e *SourceNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SourceNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SourceNotFound" } return *e.ErrorCodeOverride @@ -1393,7 +1393,7 @@ func (e *StorageQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *StorageQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StorageQuotaExceeded" } return *e.ErrorCodeOverride @@ -1419,7 +1419,7 @@ func (e *StorageTypeNotSupportedFault) ErrorMessage() string { return *e.Message } func (e *StorageTypeNotSupportedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StorageTypeNotSupported" } return *e.ErrorCodeOverride @@ -1445,7 +1445,7 @@ func (e *SubnetAlreadyInUse) ErrorMessage() string { return *e.Message } func (e *SubnetAlreadyInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetAlreadyInUse" } return *e.ErrorCodeOverride @@ -1471,7 +1471,7 @@ func (e *SubscriptionAlreadyExistFault) ErrorMessage() string { return *e.Message } func (e *SubscriptionAlreadyExistFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubscriptionAlreadyExist" } return *e.ErrorCodeOverride @@ -1497,7 +1497,7 @@ func (e *SubscriptionCategoryNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SubscriptionCategoryNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubscriptionCategoryNotFound" } return *e.ErrorCodeOverride @@ -1523,7 +1523,7 @@ func (e *SubscriptionNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SubscriptionNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubscriptionNotFound" } return *e.ErrorCodeOverride diff --git a/service/docdbelastic/types/errors.go b/service/docdbelastic/types/errors.go index 9169bde5eef..d43c802d1b5 100644 --- a/service/docdbelastic/types/errors.go +++ b/service/docdbelastic/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -111,7 +111,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -137,7 +137,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -166,7 +166,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -195,7 +195,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/drs/types/errors.go b/service/drs/types/errors.go index 86c52aca870..237e67ba110 100644 --- a/service/drs/types/errors.go +++ b/service/drs/types/errors.go @@ -28,7 +28,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -59,7 +59,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -88,7 +88,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -118,7 +118,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -150,7 +150,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -180,7 +180,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -208,7 +208,7 @@ func (e *UninitializedAccountException) ErrorMessage() string { return *e.Message } func (e *UninitializedAccountException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UninitializedAccountException" } return *e.ErrorCodeOverride @@ -238,7 +238,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/dynamodb/types/errors.go b/service/dynamodb/types/errors.go index 8678dca7884..1bc159847d4 100644 --- a/service/dynamodb/types/errors.go +++ b/service/dynamodb/types/errors.go @@ -27,7 +27,7 @@ func (e *BackupInUseException) ErrorMessage() string { return *e.Message } func (e *BackupInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BackupInUseException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *BackupNotFoundException) ErrorMessage() string { return *e.Message } func (e *BackupNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BackupNotFoundException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *ConditionalCheckFailedException) ErrorMessage() string { return *e.Message } func (e *ConditionalCheckFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConditionalCheckFailedException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *ContinuousBackupsUnavailableException) ErrorMessage() string { return *e.Message } func (e *ContinuousBackupsUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ContinuousBackupsUnavailableException" } return *e.ErrorCodeOverride @@ -134,7 +134,7 @@ func (e *DuplicateItemException) ErrorMessage() string { return *e.Message } func (e *DuplicateItemException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateItemException" } return *e.ErrorCodeOverride @@ -160,7 +160,7 @@ func (e *ExportConflictException) ErrorMessage() string { return *e.Message } func (e *ExportConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ExportConflictException" } return *e.ErrorCodeOverride @@ -186,7 +186,7 @@ func (e *ExportNotFoundException) ErrorMessage() string { return *e.Message } func (e *ExportNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ExportNotFoundException" } return *e.ErrorCodeOverride @@ -212,7 +212,7 @@ func (e *GlobalTableAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *GlobalTableAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GlobalTableAlreadyExistsException" } return *e.ErrorCodeOverride @@ -238,7 +238,7 @@ func (e *GlobalTableNotFoundException) ErrorMessage() string { return *e.Message } func (e *GlobalTableNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GlobalTableNotFoundException" } return *e.ErrorCodeOverride @@ -265,7 +265,7 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IdempotentParameterMismatchException" } return *e.ErrorCodeOverride @@ -295,7 +295,7 @@ func (e *ImportConflictException) ErrorMessage() string { return *e.Message } func (e *ImportConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ImportConflictException" } return *e.ErrorCodeOverride @@ -321,7 +321,7 @@ func (e *ImportNotFoundException) ErrorMessage() string { return *e.Message } func (e *ImportNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ImportNotFoundException" } return *e.ErrorCodeOverride @@ -347,7 +347,7 @@ func (e *IndexNotFoundException) ErrorMessage() string { return *e.Message } func (e *IndexNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IndexNotFoundException" } return *e.ErrorCodeOverride @@ -373,7 +373,7 @@ func (e *InternalServerError) ErrorMessage() string { return *e.Message } func (e *InternalServerError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerError" } return *e.ErrorCodeOverride @@ -398,7 +398,7 @@ func (e *InvalidEndpointException) ErrorMessage() string { return *e.Message } func (e *InvalidEndpointException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidEndpointException" } return *e.ErrorCodeOverride @@ -424,7 +424,7 @@ func (e *InvalidExportTimeException) ErrorMessage() string { return *e.Message } func (e *InvalidExportTimeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidExportTimeException" } return *e.ErrorCodeOverride @@ -451,7 +451,7 @@ func (e *InvalidRestoreTimeException) ErrorMessage() string { return *e.Message } func (e *InvalidRestoreTimeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRestoreTimeException" } return *e.ErrorCodeOverride @@ -478,7 +478,7 @@ func (e *ItemCollectionSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ItemCollectionSizeLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ItemCollectionSizeLimitExceededException" } return *e.ErrorCodeOverride @@ -515,7 +515,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -541,7 +541,7 @@ func (e *PointInTimeRecoveryUnavailableException) ErrorMessage() string { return *e.Message } func (e *PointInTimeRecoveryUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PointInTimeRecoveryUnavailableException" } return *e.ErrorCodeOverride @@ -575,7 +575,7 @@ func (e *ProvisionedThroughputExceededException) ErrorMessage() string { return *e.Message } func (e *ProvisionedThroughputExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ProvisionedThroughputExceededException" } return *e.ErrorCodeOverride @@ -603,7 +603,7 @@ func (e *ReplicaAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ReplicaAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReplicaAlreadyExistsException" } return *e.ErrorCodeOverride @@ -629,7 +629,7 @@ func (e *ReplicaNotFoundException) ErrorMessage() string { return *e.Message } func (e *ReplicaNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReplicaNotFoundException" } return *e.ErrorCodeOverride @@ -657,7 +657,7 @@ func (e *RequestLimitExceeded) ErrorMessage() string { return *e.Message } func (e *RequestLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestLimitExceeded" } return *e.ErrorCodeOverride @@ -685,7 +685,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -712,7 +712,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -738,7 +738,7 @@ func (e *TableAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *TableAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TableAlreadyExistsException" } return *e.ErrorCodeOverride @@ -764,7 +764,7 @@ func (e *TableInUseException) ErrorMessage() string { return *e.Message } func (e *TableInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TableInUseException" } return *e.ErrorCodeOverride @@ -792,7 +792,7 @@ func (e *TableNotFoundException) ErrorMessage() string { return *e.Message } func (e *TableNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TableNotFoundException" } return *e.ErrorCodeOverride @@ -967,7 +967,7 @@ func (e *TransactionCanceledException) ErrorMessage() string { return *e.Message } func (e *TransactionCanceledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TransactionCanceledException" } return *e.ErrorCodeOverride @@ -993,7 +993,7 @@ func (e *TransactionConflictException) ErrorMessage() string { return *e.Message } func (e *TransactionConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TransactionConflictException" } return *e.ErrorCodeOverride @@ -1019,7 +1019,7 @@ func (e *TransactionInProgressException) ErrorMessage() string { return *e.Message } func (e *TransactionInProgressException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TransactionInProgressException" } return *e.ErrorCodeOverride diff --git a/service/dynamodbstreams/types/errors.go b/service/dynamodbstreams/types/errors.go index 1de894131a5..c1a3fe73872 100644 --- a/service/dynamodbstreams/types/errors.go +++ b/service/dynamodbstreams/types/errors.go @@ -28,7 +28,7 @@ func (e *ExpiredIteratorException) ErrorMessage() string { return *e.Message } func (e *ExpiredIteratorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ExpiredIteratorException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *InternalServerError) ErrorMessage() string { return *e.Message } func (e *InternalServerError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerError" } return *e.ErrorCodeOverride @@ -89,7 +89,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -116,7 +116,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -153,7 +153,7 @@ func (e *TrimmedDataAccessException) ErrorMessage() string { return *e.Message } func (e *TrimmedDataAccessException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TrimmedDataAccessException" } return *e.ErrorCodeOverride diff --git a/service/ebs/types/errors.go b/service/ebs/types/errors.go index a6fe75f64b2..0d74825ce29 100644 --- a/service/ebs/types/errors.go +++ b/service/ebs/types/errors.go @@ -28,7 +28,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *ConcurrentLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ConcurrentLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentLimitExceededException" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -109,7 +109,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -138,7 +138,7 @@ func (e *RequestThrottledException) ErrorMessage() string { return *e.Message } func (e *RequestThrottledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestThrottledException" } return *e.ErrorCodeOverride @@ -166,7 +166,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -194,7 +194,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -222,7 +222,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/ec2instanceconnect/types/errors.go b/service/ec2instanceconnect/types/errors.go index d056926d5fa..2a7f422b506 100644 --- a/service/ec2instanceconnect/types/errors.go +++ b/service/ec2instanceconnect/types/errors.go @@ -27,7 +27,7 @@ func (e *AuthException) ErrorMessage() string { return *e.Message } func (e *AuthException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AuthException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *EC2InstanceNotFoundException) ErrorMessage() string { return *e.Message } func (e *EC2InstanceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EC2InstanceNotFoundException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *EC2InstanceStateInvalidException) ErrorMessage() string { return *e.Message } func (e *EC2InstanceStateInvalidException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EC2InstanceStateInvalidException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *EC2InstanceTypeInvalidException) ErrorMessage() string { return *e.Message } func (e *EC2InstanceTypeInvalidException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EC2InstanceTypeInvalidException" } return *e.ErrorCodeOverride @@ -134,7 +134,7 @@ func (e *EC2InstanceUnavailableException) ErrorMessage() string { return *e.Message } func (e *EC2InstanceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EC2InstanceUnavailableException" } return *e.ErrorCodeOverride @@ -160,7 +160,7 @@ func (e *InvalidArgsException) ErrorMessage() string { return *e.Message } func (e *InvalidArgsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArgsException" } return *e.ErrorCodeOverride @@ -190,7 +190,7 @@ func (e *SerialConsoleAccessDisabledException) ErrorMessage() string { return *e.Message } func (e *SerialConsoleAccessDisabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SerialConsoleAccessDisabledException" } return *e.ErrorCodeOverride @@ -219,7 +219,7 @@ func (e *SerialConsoleSessionLimitExceededException) ErrorMessage() string { return *e.Message } func (e *SerialConsoleSessionLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SerialConsoleSessionLimitExceededException" } return *e.ErrorCodeOverride @@ -247,7 +247,7 @@ func (e *SerialConsoleSessionUnavailableException) ErrorMessage() string { return *e.Message } func (e *SerialConsoleSessionUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SerialConsoleSessionUnavailableException" } return *e.ErrorCodeOverride @@ -276,7 +276,7 @@ func (e *ServiceException) ErrorMessage() string { return *e.Message } func (e *ServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceException" } return *e.ErrorCodeOverride @@ -303,7 +303,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride diff --git a/service/ecr/types/errors.go b/service/ecr/types/errors.go index d41db5c5bec..3f72008bd63 100644 --- a/service/ecr/types/errors.go +++ b/service/ecr/types/errors.go @@ -26,7 +26,7 @@ func (e *EmptyUploadException) ErrorMessage() string { return *e.Message } func (e *EmptyUploadException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EmptyUploadException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ImageAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ImageAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ImageAlreadyExistsException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *ImageDigestDoesNotMatchException) ErrorMessage() string { return *e.Message } func (e *ImageDigestDoesNotMatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ImageDigestDoesNotMatchException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *ImageNotFoundException) ErrorMessage() string { return *e.Message } func (e *ImageNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ImageNotFoundException" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *ImageTagAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ImageTagAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ImageTagAlreadyExistsException" } return *e.ErrorCodeOverride @@ -160,7 +160,7 @@ func (e *InvalidLayerException) ErrorMessage() string { return *e.Message } func (e *InvalidLayerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidLayerException" } return *e.ErrorCodeOverride @@ -192,7 +192,7 @@ func (e *InvalidLayerPartException) ErrorMessage() string { return *e.Message } func (e *InvalidLayerPartException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidLayerPartException" } return *e.ErrorCodeOverride @@ -219,7 +219,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -247,7 +247,7 @@ func (e *InvalidTagParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidTagParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTagParameterException" } return *e.ErrorCodeOverride @@ -275,7 +275,7 @@ func (e *KmsException) ErrorMessage() string { return *e.Message } func (e *KmsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KmsException" } return *e.ErrorCodeOverride @@ -301,7 +301,7 @@ func (e *LayerAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *LayerAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LayerAlreadyExistsException" } return *e.ErrorCodeOverride @@ -328,7 +328,7 @@ func (e *LayerInaccessibleException) ErrorMessage() string { return *e.Message } func (e *LayerInaccessibleException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LayerInaccessibleException" } return *e.ErrorCodeOverride @@ -354,7 +354,7 @@ func (e *LayerPartTooSmallException) ErrorMessage() string { return *e.Message } func (e *LayerPartTooSmallException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LayerPartTooSmallException" } return *e.ErrorCodeOverride @@ -381,7 +381,7 @@ func (e *LayersNotFoundException) ErrorMessage() string { return *e.Message } func (e *LayersNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LayersNotFoundException" } return *e.ErrorCodeOverride @@ -407,7 +407,7 @@ func (e *LifecyclePolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *LifecyclePolicyNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LifecyclePolicyNotFoundException" } return *e.ErrorCodeOverride @@ -434,7 +434,7 @@ func (e *LifecyclePolicyPreviewInProgressException) ErrorMessage() string { return *e.Message } func (e *LifecyclePolicyPreviewInProgressException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LifecyclePolicyPreviewInProgressException" } return *e.ErrorCodeOverride @@ -462,7 +462,7 @@ func (e *LifecyclePolicyPreviewNotFoundException) ErrorMessage() string { return *e.Message } func (e *LifecyclePolicyPreviewNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LifecyclePolicyPreviewNotFoundException" } return *e.ErrorCodeOverride @@ -493,7 +493,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -520,7 +520,7 @@ func (e *PullThroughCacheRuleAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *PullThroughCacheRuleAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PullThroughCacheRuleAlreadyExistsException" } return *e.ErrorCodeOverride @@ -549,7 +549,7 @@ func (e *PullThroughCacheRuleNotFoundException) ErrorMessage() string { return *e.Message } func (e *PullThroughCacheRuleNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PullThroughCacheRuleNotFoundException" } return *e.ErrorCodeOverride @@ -577,7 +577,7 @@ func (e *ReferencedImagesNotFoundException) ErrorMessage() string { return *e.Message } func (e *ReferencedImagesNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReferencedImagesNotFoundException" } return *e.ErrorCodeOverride @@ -603,7 +603,7 @@ func (e *RegistryPolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *RegistryPolicyNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RegistryPolicyNotFoundException" } return *e.ErrorCodeOverride @@ -629,7 +629,7 @@ func (e *RepositoryAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *RepositoryAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RepositoryAlreadyExistsException" } return *e.ErrorCodeOverride @@ -656,7 +656,7 @@ func (e *RepositoryNotEmptyException) ErrorMessage() string { return *e.Message } func (e *RepositoryNotEmptyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RepositoryNotEmptyException" } return *e.ErrorCodeOverride @@ -684,7 +684,7 @@ func (e *RepositoryNotFoundException) ErrorMessage() string { return *e.Message } func (e *RepositoryNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RepositoryNotFoundException" } return *e.ErrorCodeOverride @@ -711,7 +711,7 @@ func (e *RepositoryPolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *RepositoryPolicyNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RepositoryPolicyNotFoundException" } return *e.ErrorCodeOverride @@ -738,7 +738,7 @@ func (e *ScanNotFoundException) ErrorMessage() string { return *e.Message } func (e *ScanNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ScanNotFoundException" } return *e.ErrorCodeOverride @@ -764,7 +764,7 @@ func (e *ServerException) ErrorMessage() string { return *e.Message } func (e *ServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServerException" } return *e.ErrorCodeOverride @@ -791,7 +791,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -817,7 +817,7 @@ func (e *UnsupportedImageTypeException) ErrorMessage() string { return *e.Message } func (e *UnsupportedImageTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedImageTypeException" } return *e.ErrorCodeOverride @@ -843,7 +843,7 @@ func (e *UnsupportedUpstreamRegistryException) ErrorMessage() string { return *e.Message } func (e *UnsupportedUpstreamRegistryException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedUpstreamRegistryException" } return *e.ErrorCodeOverride @@ -872,7 +872,7 @@ func (e *UploadNotFoundException) ErrorMessage() string { return *e.Message } func (e *UploadNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UploadNotFoundException" } return *e.ErrorCodeOverride @@ -898,7 +898,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/ecrpublic/types/errors.go b/service/ecrpublic/types/errors.go index 66d7e625c71..e9fd62e1b2f 100644 --- a/service/ecrpublic/types/errors.go +++ b/service/ecrpublic/types/errors.go @@ -26,7 +26,7 @@ func (e *EmptyUploadException) ErrorMessage() string { return *e.Message } func (e *EmptyUploadException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EmptyUploadException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ImageAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ImageAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ImageAlreadyExistsException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *ImageDigestDoesNotMatchException) ErrorMessage() string { return *e.Message } func (e *ImageDigestDoesNotMatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ImageDigestDoesNotMatchException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *ImageNotFoundException) ErrorMessage() string { return *e.Message } func (e *ImageNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ImageNotFoundException" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *ImageTagAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ImageTagAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ImageTagAlreadyExistsException" } return *e.ErrorCodeOverride @@ -160,7 +160,7 @@ func (e *InvalidLayerException) ErrorMessage() string { return *e.Message } func (e *InvalidLayerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidLayerException" } return *e.ErrorCodeOverride @@ -192,7 +192,7 @@ func (e *InvalidLayerPartException) ErrorMessage() string { return *e.Message } func (e *InvalidLayerPartException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidLayerPartException" } return *e.ErrorCodeOverride @@ -219,7 +219,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -247,7 +247,7 @@ func (e *InvalidTagParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidTagParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTagParameterException" } return *e.ErrorCodeOverride @@ -273,7 +273,7 @@ func (e *LayerAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *LayerAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LayerAlreadyExistsException" } return *e.ErrorCodeOverride @@ -299,7 +299,7 @@ func (e *LayerPartTooSmallException) ErrorMessage() string { return *e.Message } func (e *LayerPartTooSmallException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LayerPartTooSmallException" } return *e.ErrorCodeOverride @@ -326,7 +326,7 @@ func (e *LayersNotFoundException) ErrorMessage() string { return *e.Message } func (e *LayersNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LayersNotFoundException" } return *e.ErrorCodeOverride @@ -355,7 +355,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -381,7 +381,7 @@ func (e *ReferencedImagesNotFoundException) ErrorMessage() string { return *e.Message } func (e *ReferencedImagesNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReferencedImagesNotFoundException" } return *e.ErrorCodeOverride @@ -407,7 +407,7 @@ func (e *RegistryNotFoundException) ErrorMessage() string { return *e.Message } func (e *RegistryNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RegistryNotFoundException" } return *e.ErrorCodeOverride @@ -433,7 +433,7 @@ func (e *RepositoryAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *RepositoryAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RepositoryAlreadyExistsException" } return *e.ErrorCodeOverride @@ -459,7 +459,7 @@ func (e *RepositoryCatalogDataNotFoundException) ErrorMessage() string { return *e.Message } func (e *RepositoryCatalogDataNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RepositoryCatalogDataNotFoundException" } return *e.ErrorCodeOverride @@ -488,7 +488,7 @@ func (e *RepositoryNotEmptyException) ErrorMessage() string { return *e.Message } func (e *RepositoryNotEmptyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RepositoryNotEmptyException" } return *e.ErrorCodeOverride @@ -515,7 +515,7 @@ func (e *RepositoryNotFoundException) ErrorMessage() string { return *e.Message } func (e *RepositoryNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RepositoryNotFoundException" } return *e.ErrorCodeOverride @@ -542,7 +542,7 @@ func (e *RepositoryPolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *RepositoryPolicyNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RepositoryPolicyNotFoundException" } return *e.ErrorCodeOverride @@ -568,7 +568,7 @@ func (e *ServerException) ErrorMessage() string { return *e.Message } func (e *ServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServerException" } return *e.ErrorCodeOverride @@ -595,7 +595,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -621,7 +621,7 @@ func (e *UnsupportedCommandException) ErrorMessage() string { return *e.Message } func (e *UnsupportedCommandException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedCommandException" } return *e.ErrorCodeOverride @@ -648,7 +648,7 @@ func (e *UploadNotFoundException) ErrorMessage() string { return *e.Message } func (e *UploadNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UploadNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/ecs/types/errors.go b/service/ecs/types/errors.go index e49b2218096..0eacc593200 100644 --- a/service/ecs/types/errors.go +++ b/service/ecs/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *AttributeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *AttributeLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AttributeLimitExceededException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *BlockedException) ErrorMessage() string { return *e.Message } func (e *BlockedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BlockedException" } return *e.ErrorCodeOverride @@ -110,7 +110,7 @@ func (e *ClientException) ErrorMessage() string { return *e.Message } func (e *ClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClientException" } return *e.ErrorCodeOverride @@ -138,7 +138,7 @@ func (e *ClusterContainsContainerInstancesException) ErrorMessage() string { return *e.Message } func (e *ClusterContainsContainerInstancesException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterContainsContainerInstancesException" } return *e.ErrorCodeOverride @@ -168,7 +168,7 @@ func (e *ClusterContainsServicesException) ErrorMessage() string { return *e.Message } func (e *ClusterContainsServicesException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterContainsServicesException" } return *e.ErrorCodeOverride @@ -194,7 +194,7 @@ func (e *ClusterContainsTasksException) ErrorMessage() string { return *e.Message } func (e *ClusterContainsTasksException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterContainsTasksException" } return *e.ErrorCodeOverride @@ -221,7 +221,7 @@ func (e *ClusterNotFoundException) ErrorMessage() string { return *e.Message } func (e *ClusterNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterNotFoundException" } return *e.ErrorCodeOverride @@ -248,7 +248,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -274,7 +274,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -303,7 +303,7 @@ func (e *MissingVersionException) ErrorMessage() string { return *e.Message } func (e *MissingVersionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MissingVersionException" } return *e.ErrorCodeOverride @@ -329,7 +329,7 @@ func (e *NamespaceNotFoundException) ErrorMessage() string { return *e.Message } func (e *NamespaceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NamespaceNotFoundException" } return *e.ErrorCodeOverride @@ -357,7 +357,7 @@ func (e *NoUpdateAvailableException) ErrorMessage() string { return *e.Message } func (e *NoUpdateAvailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoUpdateAvailableException" } return *e.ErrorCodeOverride @@ -384,7 +384,7 @@ func (e *PlatformTaskDefinitionIncompatibilityException) ErrorMessage() string { return *e.Message } func (e *PlatformTaskDefinitionIncompatibilityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PlatformTaskDefinitionIncompatibilityException" } return *e.ErrorCodeOverride @@ -412,7 +412,7 @@ func (e *PlatformUnknownException) ErrorMessage() string { return *e.Message } func (e *PlatformUnknownException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PlatformUnknownException" } return *e.ErrorCodeOverride @@ -438,7 +438,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -464,7 +464,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -490,7 +490,7 @@ func (e *ServerException) ErrorMessage() string { return *e.Message } func (e *ServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServerException" } return *e.ErrorCodeOverride @@ -518,7 +518,7 @@ func (e *ServiceNotActiveException) ErrorMessage() string { return *e.Message } func (e *ServiceNotActiveException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceNotActiveException" } return *e.ErrorCodeOverride @@ -545,7 +545,7 @@ func (e *ServiceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ServiceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceNotFoundException" } return *e.ErrorCodeOverride @@ -586,7 +586,7 @@ func (e *TargetNotConnectedException) ErrorMessage() string { return *e.Message } func (e *TargetNotConnectedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TargetNotConnectedException" } return *e.ErrorCodeOverride @@ -614,7 +614,7 @@ func (e *TargetNotFoundException) ErrorMessage() string { return *e.Message } func (e *TargetNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TargetNotFoundException" } return *e.ErrorCodeOverride @@ -641,7 +641,7 @@ func (e *TaskSetNotFoundException) ErrorMessage() string { return *e.Message } func (e *TaskSetNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TaskSetNotFoundException" } return *e.ErrorCodeOverride @@ -667,7 +667,7 @@ func (e *UnsupportedFeatureException) ErrorMessage() string { return *e.Message } func (e *UnsupportedFeatureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedFeatureException" } return *e.ErrorCodeOverride @@ -697,7 +697,7 @@ func (e *UpdateInProgressException) ErrorMessage() string { return *e.Message } func (e *UpdateInProgressException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UpdateInProgressException" } return *e.ErrorCodeOverride diff --git a/service/efs/types/errors.go b/service/efs/types/errors.go index 69cf4615d2e..f6d6296cf7e 100644 --- a/service/efs/types/errors.go +++ b/service/efs/types/errors.go @@ -30,7 +30,7 @@ func (e *AccessPointAlreadyExists) ErrorMessage() string { return *e.Message } func (e *AccessPointAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessPointAlreadyExists" } return *e.ErrorCodeOverride @@ -61,7 +61,7 @@ func (e *AccessPointLimitExceeded) ErrorMessage() string { return *e.Message } func (e *AccessPointLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessPointLimitExceeded" } return *e.ErrorCodeOverride @@ -90,7 +90,7 @@ func (e *AccessPointNotFound) ErrorMessage() string { return *e.Message } func (e *AccessPointNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessPointNotFound" } return *e.ErrorCodeOverride @@ -121,7 +121,7 @@ func (e *AvailabilityZonesMismatch) ErrorMessage() string { return *e.Message } func (e *AvailabilityZonesMismatch) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AvailabilityZonesMismatch" } return *e.ErrorCodeOverride @@ -150,7 +150,7 @@ func (e *BadRequest) ErrorMessage() string { return *e.Message } func (e *BadRequest) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequest" } return *e.ErrorCodeOverride @@ -179,7 +179,7 @@ func (e *DependencyTimeout) ErrorMessage() string { return *e.Message } func (e *DependencyTimeout) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DependencyTimeout" } return *e.ErrorCodeOverride @@ -209,7 +209,7 @@ func (e *FileSystemAlreadyExists) ErrorMessage() string { return *e.Message } func (e *FileSystemAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FileSystemAlreadyExists" } return *e.ErrorCodeOverride @@ -237,7 +237,7 @@ func (e *FileSystemInUse) ErrorMessage() string { return *e.Message } func (e *FileSystemInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FileSystemInUse" } return *e.ErrorCodeOverride @@ -266,7 +266,7 @@ func (e *FileSystemLimitExceeded) ErrorMessage() string { return *e.Message } func (e *FileSystemLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FileSystemLimitExceeded" } return *e.ErrorCodeOverride @@ -295,7 +295,7 @@ func (e *FileSystemNotFound) ErrorMessage() string { return *e.Message } func (e *FileSystemNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FileSystemNotFound" } return *e.ErrorCodeOverride @@ -323,7 +323,7 @@ func (e *IncorrectFileSystemLifeCycleState) ErrorMessage() string { return *e.Message } func (e *IncorrectFileSystemLifeCycleState) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IncorrectFileSystemLifeCycleState" } return *e.ErrorCodeOverride @@ -351,7 +351,7 @@ func (e *IncorrectMountTargetState) ErrorMessage() string { return *e.Message } func (e *IncorrectMountTargetState) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IncorrectMountTargetState" } return *e.ErrorCodeOverride @@ -383,7 +383,7 @@ func (e *InsufficientThroughputCapacity) ErrorMessage() string { return *e.Message } func (e *InsufficientThroughputCapacity) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientThroughputCapacity" } return *e.ErrorCodeOverride @@ -411,7 +411,7 @@ func (e *InternalServerError) ErrorMessage() string { return *e.Message } func (e *InternalServerError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerError" } return *e.ErrorCodeOverride @@ -441,7 +441,7 @@ func (e *InvalidPolicyException) ErrorMessage() string { return *e.Message } func (e *InvalidPolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPolicyException" } return *e.ErrorCodeOverride @@ -470,7 +470,7 @@ func (e *IpAddressInUse) ErrorMessage() string { return *e.Message } func (e *IpAddressInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IpAddressInUse" } return *e.ErrorCodeOverride @@ -499,7 +499,7 @@ func (e *MountTargetConflict) ErrorMessage() string { return *e.Message } func (e *MountTargetConflict) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MountTargetConflict" } return *e.ErrorCodeOverride @@ -528,7 +528,7 @@ func (e *MountTargetNotFound) ErrorMessage() string { return *e.Message } func (e *MountTargetNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MountTargetNotFound" } return *e.ErrorCodeOverride @@ -562,7 +562,7 @@ func (e *NetworkInterfaceLimitExceeded) ErrorMessage() string { return *e.Message } func (e *NetworkInterfaceLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NetworkInterfaceLimitExceeded" } return *e.ErrorCodeOverride @@ -591,7 +591,7 @@ func (e *NoFreeAddressesInSubnet) ErrorMessage() string { return *e.Message } func (e *NoFreeAddressesInSubnet) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoFreeAddressesInSubnet" } return *e.ErrorCodeOverride @@ -620,7 +620,7 @@ func (e *PolicyNotFound) ErrorMessage() string { return *e.Message } func (e *PolicyNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PolicyNotFound" } return *e.ErrorCodeOverride @@ -648,7 +648,7 @@ func (e *ReplicationNotFound) ErrorMessage() string { return *e.Message } func (e *ReplicationNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReplicationNotFound" } return *e.ErrorCodeOverride @@ -677,7 +677,7 @@ func (e *SecurityGroupLimitExceeded) ErrorMessage() string { return *e.Message } func (e *SecurityGroupLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SecurityGroupLimitExceeded" } return *e.ErrorCodeOverride @@ -706,7 +706,7 @@ func (e *SecurityGroupNotFound) ErrorMessage() string { return *e.Message } func (e *SecurityGroupNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SecurityGroupNotFound" } return *e.ErrorCodeOverride @@ -734,7 +734,7 @@ func (e *SubnetNotFound) ErrorMessage() string { return *e.Message } func (e *SubnetNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetNotFound" } return *e.ErrorCodeOverride @@ -764,7 +764,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -793,7 +793,7 @@ func (e *ThroughputLimitExceeded) ErrorMessage() string { return *e.Message } func (e *ThroughputLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThroughputLimitExceeded" } return *e.ErrorCodeOverride @@ -822,7 +822,7 @@ func (e *TooManyRequests) ErrorMessage() string { return *e.Message } func (e *TooManyRequests) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequests" } return *e.ErrorCodeOverride @@ -851,7 +851,7 @@ func (e *UnsupportedAvailabilityZone) ErrorMessage() string { return *e.Message } func (e *UnsupportedAvailabilityZone) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedAvailabilityZone" } return *e.ErrorCodeOverride @@ -880,7 +880,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/eks/types/errors.go b/service/eks/types/errors.go index 9d7128d3e8e..03722b63979 100644 --- a/service/eks/types/errors.go +++ b/service/eks/types/errors.go @@ -30,7 +30,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -89,7 +89,7 @@ func (e *ClientException) ErrorMessage() string { return *e.Message } func (e *ClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClientException" } return *e.ErrorCodeOverride @@ -121,7 +121,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -152,7 +152,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -179,7 +179,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -209,7 +209,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -238,7 +238,7 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceLimitExceededException" } return *e.ErrorCodeOverride @@ -271,7 +271,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -298,7 +298,7 @@ func (e *ResourcePropagationDelayException) ErrorMessage() string { return *e.Message } func (e *ResourcePropagationDelayException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourcePropagationDelayException" } return *e.ErrorCodeOverride @@ -328,7 +328,7 @@ func (e *ServerException) ErrorMessage() string { return *e.Message } func (e *ServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServerException" } return *e.ErrorCodeOverride @@ -354,7 +354,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -387,7 +387,7 @@ func (e *UnsupportedAvailabilityZoneException) ErrorMessage() string { return *e.Message } func (e *UnsupportedAvailabilityZoneException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedAvailabilityZoneException" } return *e.ErrorCodeOverride diff --git a/service/elasticache/types/errors.go b/service/elasticache/types/errors.go index e8ede5d0d92..179c63a5227 100644 --- a/service/elasticache/types/errors.go +++ b/service/elasticache/types/errors.go @@ -26,7 +26,7 @@ func (e *APICallRateForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *APICallRateForCustomerExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "APICallRateForCustomerExceeded" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *AuthorizationAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *AuthorizationAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AuthorizationAlreadyExists" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *AuthorizationNotFoundFault) ErrorMessage() string { return *e.Message } func (e *AuthorizationNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AuthorizationNotFound" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *CacheClusterAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *CacheClusterAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CacheClusterAlreadyExists" } return *e.ErrorCodeOverride @@ -134,7 +134,7 @@ func (e *CacheClusterNotFoundFault) ErrorMessage() string { return *e.Message } func (e *CacheClusterNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CacheClusterNotFound" } return *e.ErrorCodeOverride @@ -160,7 +160,7 @@ func (e *CacheParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *CacheParameterGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CacheParameterGroupAlreadyExists" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *CacheParameterGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *CacheParameterGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CacheParameterGroupNotFound" } return *e.ErrorCodeOverride @@ -216,7 +216,7 @@ func (e *CacheParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *CacheParameterGroupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CacheParameterGroupQuotaExceeded" } return *e.ErrorCodeOverride @@ -244,7 +244,7 @@ func (e *CacheSecurityGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *CacheSecurityGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CacheSecurityGroupAlreadyExists" } return *e.ErrorCodeOverride @@ -273,7 +273,7 @@ func (e *CacheSecurityGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *CacheSecurityGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CacheSecurityGroupNotFound" } return *e.ErrorCodeOverride @@ -300,7 +300,7 @@ func (e *CacheSecurityGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *CacheSecurityGroupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "QuotaExceeded.CacheSecurityGroup" } return *e.ErrorCodeOverride @@ -329,7 +329,7 @@ func (e *CacheSubnetGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *CacheSubnetGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CacheSubnetGroupAlreadyExists" } return *e.ErrorCodeOverride @@ -357,7 +357,7 @@ func (e *CacheSubnetGroupInUse) ErrorMessage() string { return *e.Message } func (e *CacheSubnetGroupInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CacheSubnetGroupInUse" } return *e.ErrorCodeOverride @@ -384,7 +384,7 @@ func (e *CacheSubnetGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *CacheSubnetGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CacheSubnetGroupNotFoundFault" } return *e.ErrorCodeOverride @@ -411,7 +411,7 @@ func (e *CacheSubnetGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *CacheSubnetGroupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CacheSubnetGroupQuotaExceeded" } return *e.ErrorCodeOverride @@ -440,7 +440,7 @@ func (e *CacheSubnetQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *CacheSubnetQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CacheSubnetQuotaExceededFault" } return *e.ErrorCodeOverride @@ -467,7 +467,7 @@ func (e *ClusterQuotaForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterQuotaForCustomerExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterQuotaForCustomerExceeded" } return *e.ErrorCodeOverride @@ -495,7 +495,7 @@ func (e *DefaultUserAssociatedToUserGroupFault) ErrorMessage() string { return *e.Message } func (e *DefaultUserAssociatedToUserGroupFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DefaultUserAssociatedToUserGroup" } return *e.ErrorCodeOverride @@ -523,7 +523,7 @@ func (e *DefaultUserRequired) ErrorMessage() string { return *e.Message } func (e *DefaultUserRequired) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DefaultUserRequired" } return *e.ErrorCodeOverride @@ -549,7 +549,7 @@ func (e *DuplicateUserNameFault) ErrorMessage() string { return *e.Message } func (e *DuplicateUserNameFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateUserName" } return *e.ErrorCodeOverride @@ -575,7 +575,7 @@ func (e *GlobalReplicationGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *GlobalReplicationGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GlobalReplicationGroupAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -603,7 +603,7 @@ func (e *GlobalReplicationGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *GlobalReplicationGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GlobalReplicationGroupNotFoundFault" } return *e.ErrorCodeOverride @@ -634,7 +634,7 @@ func (e *InsufficientCacheClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientCacheClusterCapacityFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientCacheClusterCapacity" } return *e.ErrorCodeOverride @@ -662,7 +662,7 @@ func (e *InvalidARNFault) ErrorMessage() string { return *e.Message } func (e *InvalidARNFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidARN" } return *e.ErrorCodeOverride @@ -688,7 +688,7 @@ func (e *InvalidCacheClusterStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidCacheClusterStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCacheClusterState" } return *e.ErrorCodeOverride @@ -715,7 +715,7 @@ func (e *InvalidCacheParameterGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidCacheParameterGroupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCacheParameterGroupState" } return *e.ErrorCodeOverride @@ -743,7 +743,7 @@ func (e *InvalidCacheSecurityGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidCacheSecurityGroupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCacheSecurityGroupState" } return *e.ErrorCodeOverride @@ -771,7 +771,7 @@ func (e *InvalidGlobalReplicationGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidGlobalReplicationGroupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidGlobalReplicationGroupState" } return *e.ErrorCodeOverride @@ -799,7 +799,7 @@ func (e *InvalidKMSKeyFault) ErrorMessage() string { return *e.Message } func (e *InvalidKMSKeyFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidKMSKeyFault" } return *e.ErrorCodeOverride @@ -825,7 +825,7 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterCombination" } return *e.ErrorCodeOverride @@ -853,7 +853,7 @@ func (e *InvalidParameterValueException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterValue" } return *e.ErrorCodeOverride @@ -879,7 +879,7 @@ func (e *InvalidReplicationGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidReplicationGroupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidReplicationGroupState" } return *e.ErrorCodeOverride @@ -906,7 +906,7 @@ func (e *InvalidSnapshotStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidSnapshotStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSnapshotState" } return *e.ErrorCodeOverride @@ -932,7 +932,7 @@ func (e *InvalidSubnet) ErrorMessage() string { return *e.Message } func (e *InvalidSubnet) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSubnet" } return *e.ErrorCodeOverride @@ -958,7 +958,7 @@ func (e *InvalidUserGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidUserGroupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidUserGroupState" } return *e.ErrorCodeOverride @@ -984,7 +984,7 @@ func (e *InvalidUserStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidUserStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidUserState" } return *e.ErrorCodeOverride @@ -1010,7 +1010,7 @@ func (e *InvalidVPCNetworkStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidVPCNetworkStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidVPCNetworkStateFault" } return *e.ErrorCodeOverride @@ -1038,7 +1038,7 @@ func (e *NodeGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *NodeGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NodeGroupNotFoundFault" } return *e.ErrorCodeOverride @@ -1066,7 +1066,7 @@ func (e *NodeGroupsPerReplicationGroupQuotaExceededFault) ErrorMessage() string return *e.Message } func (e *NodeGroupsPerReplicationGroupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NodeGroupsPerReplicationGroupQuotaExceeded" } return *e.ErrorCodeOverride @@ -1095,7 +1095,7 @@ func (e *NodeQuotaForClusterExceededFault) ErrorMessage() string { return *e.Message } func (e *NodeQuotaForClusterExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NodeQuotaForClusterExceeded" } return *e.ErrorCodeOverride @@ -1122,7 +1122,7 @@ func (e *NodeQuotaForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *NodeQuotaForCustomerExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NodeQuotaForCustomerExceeded" } return *e.ErrorCodeOverride @@ -1148,7 +1148,7 @@ func (e *NoOperationFault) ErrorMessage() string { return *e.Message } func (e *NoOperationFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoOperationFault" } return *e.ErrorCodeOverride @@ -1174,7 +1174,7 @@ func (e *ReplicationGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ReplicationGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReplicationGroupAlreadyExists" } return *e.ErrorCodeOverride @@ -1202,7 +1202,7 @@ func (e *ReplicationGroupAlreadyUnderMigrationFault) ErrorMessage() string { return *e.Message } func (e *ReplicationGroupAlreadyUnderMigrationFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReplicationGroupAlreadyUnderMigrationFault" } return *e.ErrorCodeOverride @@ -1230,7 +1230,7 @@ func (e *ReplicationGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ReplicationGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReplicationGroupNotFoundFault" } return *e.ErrorCodeOverride @@ -1256,7 +1256,7 @@ func (e *ReplicationGroupNotUnderMigrationFault) ErrorMessage() string { return *e.Message } func (e *ReplicationGroupNotUnderMigrationFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReplicationGroupNotUnderMigrationFault" } return *e.ErrorCodeOverride @@ -1284,7 +1284,7 @@ func (e *ReservedCacheNodeAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ReservedCacheNodeAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReservedCacheNodeAlreadyExists" } return *e.ErrorCodeOverride @@ -1312,7 +1312,7 @@ func (e *ReservedCacheNodeNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ReservedCacheNodeNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReservedCacheNodeNotFound" } return *e.ErrorCodeOverride @@ -1339,7 +1339,7 @@ func (e *ReservedCacheNodeQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ReservedCacheNodeQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReservedCacheNodeQuotaExceeded" } return *e.ErrorCodeOverride @@ -1367,7 +1367,7 @@ func (e *ReservedCacheNodesOfferingNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ReservedCacheNodesOfferingNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReservedCacheNodesOfferingNotFound" } return *e.ErrorCodeOverride @@ -1395,7 +1395,7 @@ func (e *ServiceLinkedRoleNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ServiceLinkedRoleNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceLinkedRoleNotFoundFault" } return *e.ErrorCodeOverride @@ -1421,7 +1421,7 @@ func (e *ServiceUpdateNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ServiceUpdateNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUpdateNotFoundFault" } return *e.ErrorCodeOverride @@ -1447,7 +1447,7 @@ func (e *SnapshotAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *SnapshotAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -1482,7 +1482,7 @@ func (e *SnapshotFeatureNotSupportedFault) ErrorMessage() string { return *e.Message } func (e *SnapshotFeatureNotSupportedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotFeatureNotSupportedFault" } return *e.ErrorCodeOverride @@ -1508,7 +1508,7 @@ func (e *SnapshotNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SnapshotNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotNotFoundFault" } return *e.ErrorCodeOverride @@ -1535,7 +1535,7 @@ func (e *SnapshotQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *SnapshotQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotQuotaExceededFault" } return *e.ErrorCodeOverride @@ -1561,7 +1561,7 @@ func (e *SubnetInUse) ErrorMessage() string { return *e.Message } func (e *SubnetInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetInUse" } return *e.ErrorCodeOverride @@ -1590,7 +1590,7 @@ func (e *SubnetNotAllowedFault) ErrorMessage() string { return *e.Message } func (e *SubnetNotAllowedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetNotAllowedFault" } return *e.ErrorCodeOverride @@ -1616,7 +1616,7 @@ func (e *TagNotFoundFault) ErrorMessage() string { return *e.Message } func (e *TagNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagNotFound" } return *e.ErrorCodeOverride @@ -1644,7 +1644,7 @@ func (e *TagQuotaPerResourceExceeded) ErrorMessage() string { return *e.Message } func (e *TagQuotaPerResourceExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagQuotaPerResourceExceeded" } return *e.ErrorCodeOverride @@ -1670,7 +1670,7 @@ func (e *TestFailoverNotAvailableFault) ErrorMessage() string { return *e.Message } func (e *TestFailoverNotAvailableFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TestFailoverNotAvailableFault" } return *e.ErrorCodeOverride @@ -1696,7 +1696,7 @@ func (e *UserAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *UserAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UserAlreadyExists" } return *e.ErrorCodeOverride @@ -1722,7 +1722,7 @@ func (e *UserGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *UserGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UserGroupAlreadyExists" } return *e.ErrorCodeOverride @@ -1748,7 +1748,7 @@ func (e *UserGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *UserGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UserGroupNotFound" } return *e.ErrorCodeOverride @@ -1774,7 +1774,7 @@ func (e *UserGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *UserGroupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UserGroupQuotaExceeded" } return *e.ErrorCodeOverride @@ -1800,7 +1800,7 @@ func (e *UserNotFoundFault) ErrorMessage() string { return *e.Message } func (e *UserNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UserNotFound" } return *e.ErrorCodeOverride @@ -1826,7 +1826,7 @@ func (e *UserQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *UserQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UserQuotaExceeded" } return *e.ErrorCodeOverride diff --git a/service/elasticbeanstalk/types/errors.go b/service/elasticbeanstalk/types/errors.go index ceabfa3cc0f..14cb7e5df33 100644 --- a/service/elasticbeanstalk/types/errors.go +++ b/service/elasticbeanstalk/types/errors.go @@ -26,7 +26,7 @@ func (e *CodeBuildNotInServiceRegionException) ErrorMessage() string { return *e.Message } func (e *CodeBuildNotInServiceRegionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CodeBuildNotInServiceRegionException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ElasticBeanstalkServiceException) ErrorMessage() string { return *e.Message } func (e *ElasticBeanstalkServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ElasticBeanstalkServiceException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *InsufficientPrivilegesException) ErrorMessage() string { return *e.Message } func (e *InsufficientPrivilegesException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientPrivilegesException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -134,7 +134,7 @@ func (e *ManagedActionInvalidStateException) ErrorMessage() string { return *e.Message } func (e *ManagedActionInvalidStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ManagedActionInvalidStateException" } return *e.ErrorCodeOverride @@ -163,7 +163,7 @@ func (e *OperationInProgressException) ErrorMessage() string { return *e.Message } func (e *OperationInProgressException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationInProgressFailure" } return *e.ErrorCodeOverride @@ -190,7 +190,7 @@ func (e *PlatformVersionStillReferencedException) ErrorMessage() string { return *e.Message } func (e *PlatformVersionStillReferencedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PlatformVersionStillReferencedException" } return *e.ErrorCodeOverride @@ -218,7 +218,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -245,7 +245,7 @@ func (e *ResourceTypeNotSupportedException) ErrorMessage() string { return *e.Message } func (e *ResourceTypeNotSupportedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceTypeNotSupportedException" } return *e.ErrorCodeOverride @@ -279,7 +279,7 @@ func (e *S3LocationNotInServiceRegionException) ErrorMessage() string { return *e.Message } func (e *S3LocationNotInServiceRegionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "S3LocationNotInServiceRegionException" } return *e.ErrorCodeOverride @@ -307,7 +307,7 @@ func (e *S3SubscriptionRequiredException) ErrorMessage() string { return *e.Message } func (e *S3SubscriptionRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "S3SubscriptionRequiredException" } return *e.ErrorCodeOverride @@ -334,7 +334,7 @@ func (e *SourceBundleDeletionException) ErrorMessage() string { return *e.Message } func (e *SourceBundleDeletionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SourceBundleDeletionFailure" } return *e.ErrorCodeOverride @@ -360,7 +360,7 @@ func (e *TooManyApplicationsException) ErrorMessage() string { return *e.Message } func (e *TooManyApplicationsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyApplicationsException" } return *e.ErrorCodeOverride @@ -386,7 +386,7 @@ func (e *TooManyApplicationVersionsException) ErrorMessage() string { return *e.Message } func (e *TooManyApplicationVersionsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyApplicationVersionsException" } return *e.ErrorCodeOverride @@ -414,7 +414,7 @@ func (e *TooManyBucketsException) ErrorMessage() string { return *e.Message } func (e *TooManyBucketsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyBucketsException" } return *e.ErrorCodeOverride @@ -440,7 +440,7 @@ func (e *TooManyConfigurationTemplatesException) ErrorMessage() string { return *e.Message } func (e *TooManyConfigurationTemplatesException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyConfigurationTemplatesException" } return *e.ErrorCodeOverride @@ -468,7 +468,7 @@ func (e *TooManyEnvironmentsException) ErrorMessage() string { return *e.Message } func (e *TooManyEnvironmentsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyEnvironmentsException" } return *e.ErrorCodeOverride @@ -495,7 +495,7 @@ func (e *TooManyPlatformsException) ErrorMessage() string { return *e.Message } func (e *TooManyPlatformsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyPlatformsException" } return *e.ErrorCodeOverride @@ -524,7 +524,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride diff --git a/service/elasticinference/types/errors.go b/service/elasticinference/types/errors.go index a6a9a196b8d..502f64a7529 100644 --- a/service/elasticinference/types/errors.go +++ b/service/elasticinference/types/errors.go @@ -26,7 +26,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/elasticloadbalancing/types/errors.go b/service/elasticloadbalancing/types/errors.go index 9deec0715be..d0c82d4dbbc 100644 --- a/service/elasticloadbalancing/types/errors.go +++ b/service/elasticloadbalancing/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessPointNotFoundException) ErrorMessage() string { return *e.Message } func (e *AccessPointNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LoadBalancerNotFound" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *CertificateNotFoundException) ErrorMessage() string { return *e.Message } func (e *CertificateNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CertificateNotFound" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *DependencyThrottleException) ErrorMessage() string { return *e.Message } func (e *DependencyThrottleException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DependencyThrottle" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *DuplicateAccessPointNameException) ErrorMessage() string { return *e.Message } func (e *DuplicateAccessPointNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateLoadBalancerName" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *DuplicateListenerException) ErrorMessage() string { return *e.Message } func (e *DuplicateListenerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateListener" } return *e.ErrorCodeOverride @@ -161,7 +161,7 @@ func (e *DuplicatePolicyNameException) ErrorMessage() string { return *e.Message } func (e *DuplicatePolicyNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicatePolicyName" } return *e.ErrorCodeOverride @@ -187,7 +187,7 @@ func (e *DuplicateTagKeysException) ErrorMessage() string { return *e.Message } func (e *DuplicateTagKeysException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateTagKeys" } return *e.ErrorCodeOverride @@ -213,7 +213,7 @@ func (e *InvalidConfigurationRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidConfigurationRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidConfigurationRequest" } return *e.ErrorCodeOverride @@ -241,7 +241,7 @@ func (e *InvalidEndPointException) ErrorMessage() string { return *e.Message } func (e *InvalidEndPointException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInstance" } return *e.ErrorCodeOverride @@ -268,7 +268,7 @@ func (e *InvalidSchemeException) ErrorMessage() string { return *e.Message } func (e *InvalidSchemeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidScheme" } return *e.ErrorCodeOverride @@ -294,7 +294,7 @@ func (e *InvalidSecurityGroupException) ErrorMessage() string { return *e.Message } func (e *InvalidSecurityGroupException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSecurityGroup" } return *e.ErrorCodeOverride @@ -320,7 +320,7 @@ func (e *InvalidSubnetException) ErrorMessage() string { return *e.Message } func (e *InvalidSubnetException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSubnet" } return *e.ErrorCodeOverride @@ -346,7 +346,7 @@ func (e *ListenerNotFoundException) ErrorMessage() string { return *e.Message } func (e *ListenerNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ListenerNotFound" } return *e.ErrorCodeOverride @@ -372,7 +372,7 @@ func (e *LoadBalancerAttributeNotFoundException) ErrorMessage() string { return *e.Message } func (e *LoadBalancerAttributeNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LoadBalancerAttributeNotFound" } return *e.ErrorCodeOverride @@ -400,7 +400,7 @@ func (e *OperationNotPermittedException) ErrorMessage() string { return *e.Message } func (e *OperationNotPermittedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationNotPermitted" } return *e.ErrorCodeOverride @@ -426,7 +426,7 @@ func (e *PolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *PolicyNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PolicyNotFound" } return *e.ErrorCodeOverride @@ -452,7 +452,7 @@ func (e *PolicyTypeNotFoundException) ErrorMessage() string { return *e.Message } func (e *PolicyTypeNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PolicyTypeNotFound" } return *e.ErrorCodeOverride @@ -478,7 +478,7 @@ func (e *SubnetNotFoundException) ErrorMessage() string { return *e.Message } func (e *SubnetNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetNotFound" } return *e.ErrorCodeOverride @@ -504,7 +504,7 @@ func (e *TooManyAccessPointsException) ErrorMessage() string { return *e.Message } func (e *TooManyAccessPointsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyLoadBalancers" } return *e.ErrorCodeOverride @@ -530,7 +530,7 @@ func (e *TooManyPoliciesException) ErrorMessage() string { return *e.Message } func (e *TooManyPoliciesException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyPolicies" } return *e.ErrorCodeOverride @@ -557,7 +557,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTags" } return *e.ErrorCodeOverride @@ -583,7 +583,7 @@ func (e *UnsupportedProtocolException) ErrorMessage() string { return *e.Message } func (e *UnsupportedProtocolException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedProtocol" } return *e.ErrorCodeOverride diff --git a/service/elasticloadbalancingv2/types/errors.go b/service/elasticloadbalancingv2/types/errors.go index 395cce3055d..d2c8fea5558 100644 --- a/service/elasticloadbalancingv2/types/errors.go +++ b/service/elasticloadbalancingv2/types/errors.go @@ -26,7 +26,7 @@ func (e *AllocationIdNotFoundException) ErrorMessage() string { return *e.Message } func (e *AllocationIdNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AllocationIdNotFound" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ALPNPolicyNotSupportedException) ErrorMessage() string { return *e.Message } func (e *ALPNPolicyNotSupportedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ALPNPolicyNotFound" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *AvailabilityZoneNotSupportedException) ErrorMessage() string { return *e.Message } func (e *AvailabilityZoneNotSupportedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AvailabilityZoneNotSupported" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *CertificateNotFoundException) ErrorMessage() string { return *e.Message } func (e *CertificateNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CertificateNotFound" } return *e.ErrorCodeOverride @@ -132,7 +132,7 @@ func (e *DuplicateListenerException) ErrorMessage() string { return *e.Message } func (e *DuplicateListenerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateListener" } return *e.ErrorCodeOverride @@ -158,7 +158,7 @@ func (e *DuplicateLoadBalancerNameException) ErrorMessage() string { return *e.Message } func (e *DuplicateLoadBalancerNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateLoadBalancerName" } return *e.ErrorCodeOverride @@ -186,7 +186,7 @@ func (e *DuplicateTagKeysException) ErrorMessage() string { return *e.Message } func (e *DuplicateTagKeysException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateTagKeys" } return *e.ErrorCodeOverride @@ -212,7 +212,7 @@ func (e *DuplicateTargetGroupNameException) ErrorMessage() string { return *e.Message } func (e *DuplicateTargetGroupNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateTargetGroupName" } return *e.ErrorCodeOverride @@ -239,7 +239,7 @@ func (e *HealthUnavailableException) ErrorMessage() string { return *e.Message } func (e *HealthUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HealthUnavailable" } return *e.ErrorCodeOverride @@ -265,7 +265,7 @@ func (e *IncompatibleProtocolsException) ErrorMessage() string { return *e.Message } func (e *IncompatibleProtocolsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IncompatibleProtocols" } return *e.ErrorCodeOverride @@ -291,7 +291,7 @@ func (e *InvalidConfigurationRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidConfigurationRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidConfigurationRequest" } return *e.ErrorCodeOverride @@ -319,7 +319,7 @@ func (e *InvalidLoadBalancerActionException) ErrorMessage() string { return *e.Message } func (e *InvalidLoadBalancerActionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidLoadBalancerAction" } return *e.ErrorCodeOverride @@ -347,7 +347,7 @@ func (e *InvalidSchemeException) ErrorMessage() string { return *e.Message } func (e *InvalidSchemeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidScheme" } return *e.ErrorCodeOverride @@ -373,7 +373,7 @@ func (e *InvalidSecurityGroupException) ErrorMessage() string { return *e.Message } func (e *InvalidSecurityGroupException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSecurityGroup" } return *e.ErrorCodeOverride @@ -399,7 +399,7 @@ func (e *InvalidSubnetException) ErrorMessage() string { return *e.Message } func (e *InvalidSubnetException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSubnet" } return *e.ErrorCodeOverride @@ -426,7 +426,7 @@ func (e *InvalidTargetException) ErrorMessage() string { return *e.Message } func (e *InvalidTargetException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTarget" } return *e.ErrorCodeOverride @@ -452,7 +452,7 @@ func (e *ListenerNotFoundException) ErrorMessage() string { return *e.Message } func (e *ListenerNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ListenerNotFound" } return *e.ErrorCodeOverride @@ -478,7 +478,7 @@ func (e *LoadBalancerNotFoundException) ErrorMessage() string { return *e.Message } func (e *LoadBalancerNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LoadBalancerNotFound" } return *e.ErrorCodeOverride @@ -504,7 +504,7 @@ func (e *OperationNotPermittedException) ErrorMessage() string { return *e.Message } func (e *OperationNotPermittedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationNotPermitted" } return *e.ErrorCodeOverride @@ -530,7 +530,7 @@ func (e *PriorityInUseException) ErrorMessage() string { return *e.Message } func (e *PriorityInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PriorityInUse" } return *e.ErrorCodeOverride @@ -556,7 +556,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUse" } return *e.ErrorCodeOverride @@ -582,7 +582,7 @@ func (e *RuleNotFoundException) ErrorMessage() string { return *e.Message } func (e *RuleNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RuleNotFound" } return *e.ErrorCodeOverride @@ -608,7 +608,7 @@ func (e *SSLPolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *SSLPolicyNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SSLPolicyNotFound" } return *e.ErrorCodeOverride @@ -634,7 +634,7 @@ func (e *SubnetNotFoundException) ErrorMessage() string { return *e.Message } func (e *SubnetNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetNotFound" } return *e.ErrorCodeOverride @@ -660,7 +660,7 @@ func (e *TargetGroupAssociationLimitException) ErrorMessage() string { return *e.Message } func (e *TargetGroupAssociationLimitException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TargetGroupAssociationLimit" } return *e.ErrorCodeOverride @@ -688,7 +688,7 @@ func (e *TargetGroupNotFoundException) ErrorMessage() string { return *e.Message } func (e *TargetGroupNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TargetGroupNotFound" } return *e.ErrorCodeOverride @@ -714,7 +714,7 @@ func (e *TooManyActionsException) ErrorMessage() string { return *e.Message } func (e *TooManyActionsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyActions" } return *e.ErrorCodeOverride @@ -740,7 +740,7 @@ func (e *TooManyCertificatesException) ErrorMessage() string { return *e.Message } func (e *TooManyCertificatesException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyCertificates" } return *e.ErrorCodeOverride @@ -766,7 +766,7 @@ func (e *TooManyListenersException) ErrorMessage() string { return *e.Message } func (e *TooManyListenersException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyListeners" } return *e.ErrorCodeOverride @@ -793,7 +793,7 @@ func (e *TooManyLoadBalancersException) ErrorMessage() string { return *e.Message } func (e *TooManyLoadBalancersException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyLoadBalancers" } return *e.ErrorCodeOverride @@ -820,7 +820,7 @@ func (e *TooManyRegistrationsForTargetIdException) ErrorMessage() string { return *e.Message } func (e *TooManyRegistrationsForTargetIdException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRegistrationsForTargetId" } return *e.ErrorCodeOverride @@ -848,7 +848,7 @@ func (e *TooManyRulesException) ErrorMessage() string { return *e.Message } func (e *TooManyRulesException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRules" } return *e.ErrorCodeOverride @@ -874,7 +874,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTags" } return *e.ErrorCodeOverride @@ -901,7 +901,7 @@ func (e *TooManyTargetGroupsException) ErrorMessage() string { return *e.Message } func (e *TooManyTargetGroupsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTargetGroups" } return *e.ErrorCodeOverride @@ -927,7 +927,7 @@ func (e *TooManyTargetsException) ErrorMessage() string { return *e.Message } func (e *TooManyTargetsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTargets" } return *e.ErrorCodeOverride @@ -955,7 +955,7 @@ func (e *TooManyUniqueTargetGroupsPerLoadBalancerException) ErrorMessage() strin return *e.Message } func (e *TooManyUniqueTargetGroupsPerLoadBalancerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyUniqueTargetGroupsPerLoadBalancer" } return *e.ErrorCodeOverride @@ -983,7 +983,7 @@ func (e *UnsupportedProtocolException) ErrorMessage() string { return *e.Message } func (e *UnsupportedProtocolException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedProtocol" } return *e.ErrorCodeOverride diff --git a/service/elasticsearchservice/types/errors.go b/service/elasticsearchservice/types/errors.go index dc9b52d6d8c..e44f6bb8153 100644 --- a/service/elasticsearchservice/types/errors.go +++ b/service/elasticsearchservice/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *BaseException) ErrorMessage() string { return *e.Message } func (e *BaseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BaseException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *DisabledOperationException) ErrorMessage() string { return *e.Message } func (e *DisabledOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DisabledOperationException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *InternalException) ErrorMessage() string { return *e.Message } func (e *InternalException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *InvalidPaginationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPaginationTokenException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *InvalidTypeException) ErrorMessage() string { return *e.Message } func (e *InvalidTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTypeException" } return *e.ErrorCodeOverride @@ -216,7 +216,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -243,7 +243,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -270,7 +270,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -296,7 +296,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/elastictranscoder/types/errors.go b/service/elastictranscoder/types/errors.go index 60721f6c431..578936aef4d 100644 --- a/service/elastictranscoder/types/errors.go +++ b/service/elastictranscoder/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -51,7 +51,7 @@ func (e *IncompatibleVersionException) ErrorMessage() string { return *e.Message } func (e *IncompatibleVersionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IncompatibleVersionException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InternalServiceException) ErrorMessage() string { return *e.Message } func (e *InternalServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -132,7 +132,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -160,7 +160,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -186,7 +186,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/emr/types/errors.go b/service/emr/types/errors.go index f40efafe092..181bef1ad4e 100644 --- a/service/emr/types/errors.go +++ b/service/emr/types/errors.go @@ -27,7 +27,7 @@ func (e *InternalServerError) ErrorMessage() string { return *e.Message } func (e *InternalServerError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerError" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride diff --git a/service/emrcontainers/types/errors.go b/service/emrcontainers/types/errors.go index ab5728148c8..2f2dfc7a30b 100644 --- a/service/emrcontainers/types/errors.go +++ b/service/emrcontainers/types/errors.go @@ -26,7 +26,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/emrserverless/types/errors.go b/service/emrserverless/types/errors.go index d173c84f2f4..7da0aef8968 100644 --- a/service/emrserverless/types/errors.go +++ b/service/emrserverless/types/errors.go @@ -27,7 +27,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/eventbridge/types/errors.go b/service/eventbridge/types/errors.go index 427c4c046b4..fb8b0a0a165 100644 --- a/service/eventbridge/types/errors.go +++ b/service/eventbridge/types/errors.go @@ -26,7 +26,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *IllegalStatusException) ErrorMessage() string { return *e.Message } func (e *IllegalStatusException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IllegalStatusException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *InternalException) ErrorMessage() string { return *e.Message } func (e *InternalException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *InvalidEventPatternException) ErrorMessage() string { return *e.Message } func (e *InvalidEventPatternException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidEventPatternException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *InvalidStateException) ErrorMessage() string { return *e.Message } func (e *InvalidStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidStateException" } return *e.ErrorCodeOverride @@ -158,7 +158,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *ManagedRuleException) ErrorMessage() string { return *e.Message } func (e *ManagedRuleException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ManagedRuleException" } return *e.ErrorCodeOverride @@ -215,7 +215,7 @@ func (e *OperationDisabledException) ErrorMessage() string { return *e.Message } func (e *OperationDisabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationDisabledException" } return *e.ErrorCodeOverride @@ -241,7 +241,7 @@ func (e *PolicyLengthExceededException) ErrorMessage() string { return *e.Message } func (e *PolicyLengthExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PolicyLengthExceededException" } return *e.ErrorCodeOverride @@ -267,7 +267,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -293,7 +293,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/evidently/types/errors.go b/service/evidently/types/errors.go index f03e01d3f85..d32f86c4021 100644 --- a/service/evidently/types/errors.go +++ b/service/evidently/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -110,7 +110,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -141,7 +141,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -167,7 +167,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -196,7 +196,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -225,7 +225,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/finspace/types/errors.go b/service/finspace/types/errors.go index 5cd2162b319..52f7590eca5 100644 --- a/service/finspace/types/errors.go +++ b/service/finspace/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -159,7 +159,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -185,7 +185,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -211,7 +211,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/finspacedata/types/errors.go b/service/finspacedata/types/errors.go index a6d109a92fc..71ec2a7be15 100644 --- a/service/finspacedata/types/errors.go +++ b/service/finspacedata/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -161,7 +161,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/firehose/types/errors.go b/service/firehose/types/errors.go index 8145d792097..e17c956bcb7 100644 --- a/service/firehose/types/errors.go +++ b/service/firehose/types/errors.go @@ -27,7 +27,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *InvalidArgumentException) ErrorMessage() string { return *e.Message } func (e *InvalidArgumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArgumentException" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *InvalidKMSResourceException) ErrorMessage() string { return *e.Message } func (e *InvalidKMSResourceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidKMSResourceException" } return *e.ErrorCodeOverride @@ -110,7 +110,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -136,7 +136,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -192,7 +192,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride diff --git a/service/fis/types/errors.go b/service/fis/types/errors.go index 9b8ea588bdb..960a11effae 100644 --- a/service/fis/types/errors.go +++ b/service/fis/types/errors.go @@ -26,7 +26,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/fms/types/errors.go b/service/fms/types/errors.go index 34b529cd9e6..b1bb674409f 100644 --- a/service/fms/types/errors.go +++ b/service/fms/types/errors.go @@ -27,7 +27,7 @@ func (e *InternalErrorException) ErrorMessage() string { return *e.Message } func (e *InternalErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalErrorException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *InvalidInputException) ErrorMessage() string { return *e.Message } func (e *InvalidInputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputException" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *InvalidOperationException) ErrorMessage() string { return *e.Message } func (e *InvalidOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOperationException" } return *e.ErrorCodeOverride @@ -110,7 +110,7 @@ func (e *InvalidTypeException) ErrorMessage() string { return *e.Message } func (e *InvalidTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTypeException" } return *e.ErrorCodeOverride @@ -140,7 +140,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -166,7 +166,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/forecast/types/errors.go b/service/forecast/types/errors.go index 115974e4e50..40b30672e45 100644 --- a/service/forecast/types/errors.go +++ b/service/forecast/types/errors.go @@ -27,7 +27,7 @@ func (e *InvalidInputException) ErrorMessage() string { return *e.Message } func (e *InvalidInputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -158,7 +158,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/forecastquery/types/errors.go b/service/forecastquery/types/errors.go index 1052732123e..4b820a7a7db 100644 --- a/service/forecastquery/types/errors.go +++ b/service/forecastquery/types/errors.go @@ -26,7 +26,7 @@ func (e *InvalidInputException) ErrorMessage() string { return *e.Message } func (e *InvalidInputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/frauddetector/types/errors.go b/service/frauddetector/types/errors.go index 7358278c82e..666517e87bb 100644 --- a/service/frauddetector/types/errors.go +++ b/service/frauddetector/types/errors.go @@ -28,7 +28,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *ResourceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ResourceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceUnavailableException" } return *e.ErrorCodeOverride @@ -159,7 +159,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -185,7 +185,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/fsx/types/errors.go b/service/fsx/types/errors.go index c0b80322295..e422713f278 100644 --- a/service/fsx/types/errors.go +++ b/service/fsx/types/errors.go @@ -29,7 +29,7 @@ func (e *ActiveDirectoryError) ErrorMessage() string { return *e.Message } func (e *ActiveDirectoryError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ActiveDirectoryError" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *BackupBeingCopied) ErrorMessage() string { return *e.Message } func (e *BackupBeingCopied) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BackupBeingCopied" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *BackupInProgress) ErrorMessage() string { return *e.Message } func (e *BackupInProgress) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BackupInProgress" } return *e.ErrorCodeOverride @@ -110,7 +110,7 @@ func (e *BackupNotFound) ErrorMessage() string { return *e.Message } func (e *BackupNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BackupNotFound" } return *e.ErrorCodeOverride @@ -138,7 +138,7 @@ func (e *BackupRestoring) ErrorMessage() string { return *e.Message } func (e *BackupRestoring) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BackupRestoring" } return *e.ErrorCodeOverride @@ -164,7 +164,7 @@ func (e *BadRequest) ErrorMessage() string { return *e.Message } func (e *BadRequest) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequest" } return *e.ErrorCodeOverride @@ -190,7 +190,7 @@ func (e *DataRepositoryAssociationNotFound) ErrorMessage() string { return *e.Message } func (e *DataRepositoryAssociationNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DataRepositoryAssociationNotFound" } return *e.ErrorCodeOverride @@ -217,7 +217,7 @@ func (e *DataRepositoryTaskEnded) ErrorMessage() string { return *e.Message } func (e *DataRepositoryTaskEnded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DataRepositoryTaskEnded" } return *e.ErrorCodeOverride @@ -244,7 +244,7 @@ func (e *DataRepositoryTaskExecuting) ErrorMessage() string { return *e.Message } func (e *DataRepositoryTaskExecuting) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DataRepositoryTaskExecuting" } return *e.ErrorCodeOverride @@ -270,7 +270,7 @@ func (e *DataRepositoryTaskNotFound) ErrorMessage() string { return *e.Message } func (e *DataRepositoryTaskNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DataRepositoryTaskNotFound" } return *e.ErrorCodeOverride @@ -296,7 +296,7 @@ func (e *FileCacheNotFound) ErrorMessage() string { return *e.Message } func (e *FileCacheNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FileCacheNotFound" } return *e.ErrorCodeOverride @@ -322,7 +322,7 @@ func (e *FileSystemNotFound) ErrorMessage() string { return *e.Message } func (e *FileSystemNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FileSystemNotFound" } return *e.ErrorCodeOverride @@ -352,7 +352,7 @@ func (e *IncompatibleParameterError) ErrorMessage() string { return *e.Message } func (e *IncompatibleParameterError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IncompatibleParameterError" } return *e.ErrorCodeOverride @@ -379,7 +379,7 @@ func (e *IncompatibleRegionForMultiAZ) ErrorMessage() string { return *e.Message } func (e *IncompatibleRegionForMultiAZ) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IncompatibleRegionForMultiAZ" } return *e.ErrorCodeOverride @@ -405,7 +405,7 @@ func (e *InternalServerError) ErrorMessage() string { return *e.Message } func (e *InternalServerError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerError" } return *e.ErrorCodeOverride @@ -431,7 +431,7 @@ func (e *InvalidDataRepositoryType) ErrorMessage() string { return *e.Message } func (e *InvalidDataRepositoryType) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDataRepositoryType" } return *e.ErrorCodeOverride @@ -457,7 +457,7 @@ func (e *InvalidDestinationKmsKey) ErrorMessage() string { return *e.Message } func (e *InvalidDestinationKmsKey) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDestinationKmsKey" } return *e.ErrorCodeOverride @@ -483,7 +483,7 @@ func (e *InvalidExportPath) ErrorMessage() string { return *e.Message } func (e *InvalidExportPath) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidExportPath" } return *e.ErrorCodeOverride @@ -509,7 +509,7 @@ func (e *InvalidImportPath) ErrorMessage() string { return *e.Message } func (e *InvalidImportPath) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidImportPath" } return *e.ErrorCodeOverride @@ -539,7 +539,7 @@ func (e *InvalidNetworkSettings) ErrorMessage() string { return *e.Message } func (e *InvalidNetworkSettings) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNetworkSettings" } return *e.ErrorCodeOverride @@ -566,7 +566,7 @@ func (e *InvalidPerUnitStorageThroughput) ErrorMessage() string { return *e.Message } func (e *InvalidPerUnitStorageThroughput) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPerUnitStorageThroughput" } return *e.ErrorCodeOverride @@ -593,7 +593,7 @@ func (e *InvalidRegion) ErrorMessage() string { return *e.Message } func (e *InvalidRegion) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRegion" } return *e.ErrorCodeOverride @@ -619,7 +619,7 @@ func (e *InvalidSourceKmsKey) ErrorMessage() string { return *e.Message } func (e *InvalidSourceKmsKey) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSourceKmsKey" } return *e.ErrorCodeOverride @@ -645,7 +645,7 @@ func (e *MissingFileCacheConfiguration) ErrorMessage() string { return *e.Message } func (e *MissingFileCacheConfiguration) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MissingFileCacheConfiguration" } return *e.ErrorCodeOverride @@ -671,7 +671,7 @@ func (e *MissingFileSystemConfiguration) ErrorMessage() string { return *e.Message } func (e *MissingFileSystemConfiguration) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MissingFileSystemConfiguration" } return *e.ErrorCodeOverride @@ -697,7 +697,7 @@ func (e *MissingVolumeConfiguration) ErrorMessage() string { return *e.Message } func (e *MissingVolumeConfiguration) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MissingVolumeConfiguration" } return *e.ErrorCodeOverride @@ -726,7 +726,7 @@ func (e *NotServiceResourceError) ErrorMessage() string { return *e.Message } func (e *NotServiceResourceError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotServiceResourceError" } return *e.ErrorCodeOverride @@ -754,7 +754,7 @@ func (e *ResourceDoesNotSupportTagging) ErrorMessage() string { return *e.Message } func (e *ResourceDoesNotSupportTagging) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceDoesNotSupportTagging" } return *e.ErrorCodeOverride @@ -782,7 +782,7 @@ func (e *ResourceNotFound) ErrorMessage() string { return *e.Message } func (e *ResourceNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFound" } return *e.ErrorCodeOverride @@ -811,7 +811,7 @@ func (e *ServiceLimitExceeded) ErrorMessage() string { return *e.Message } func (e *ServiceLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceLimitExceeded" } return *e.ErrorCodeOverride @@ -837,7 +837,7 @@ func (e *SnapshotNotFound) ErrorMessage() string { return *e.Message } func (e *SnapshotNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotNotFound" } return *e.ErrorCodeOverride @@ -866,7 +866,7 @@ func (e *SourceBackupUnavailable) ErrorMessage() string { return *e.Message } func (e *SourceBackupUnavailable) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SourceBackupUnavailable" } return *e.ErrorCodeOverride @@ -892,7 +892,7 @@ func (e *StorageVirtualMachineNotFound) ErrorMessage() string { return *e.Message } func (e *StorageVirtualMachineNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StorageVirtualMachineNotFound" } return *e.ErrorCodeOverride @@ -918,7 +918,7 @@ func (e *UnsupportedOperation) ErrorMessage() string { return *e.Message } func (e *UnsupportedOperation) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedOperation" } return *e.ErrorCodeOverride @@ -944,7 +944,7 @@ func (e *VolumeNotFound) ErrorMessage() string { return *e.Message } func (e *VolumeNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "VolumeNotFound" } return *e.ErrorCodeOverride diff --git a/service/gamelift/types/errors.go b/service/gamelift/types/errors.go index 43745c927b6..1c72f356898 100644 --- a/service/gamelift/types/errors.go +++ b/service/gamelift/types/errors.go @@ -28,7 +28,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *FleetCapacityExceededException) ErrorMessage() string { return *e.Message } func (e *FleetCapacityExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FleetCapacityExceededException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *GameSessionFullException) ErrorMessage() string { return *e.Message } func (e *GameSessionFullException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GameSessionFullException" } return *e.ErrorCodeOverride @@ -109,7 +109,7 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IdempotentParameterMismatchException" } return *e.ErrorCodeOverride @@ -138,7 +138,7 @@ func (e *InternalServiceException) ErrorMessage() string { return *e.Message } func (e *InternalServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceException" } return *e.ErrorCodeOverride @@ -166,7 +166,7 @@ func (e *InvalidFleetStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidFleetStatusException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidFleetStatusException" } return *e.ErrorCodeOverride @@ -194,7 +194,7 @@ func (e *InvalidGameSessionStatusException) ErrorMessage() string { return *e.Message } func (e *InvalidGameSessionStatusException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidGameSessionStatusException" } return *e.ErrorCodeOverride @@ -221,7 +221,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -248,7 +248,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -275,7 +275,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -303,7 +303,7 @@ func (e *OutOfCapacityException) ErrorMessage() string { return *e.Message } func (e *OutOfCapacityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OutOfCapacityException" } return *e.ErrorCodeOverride @@ -331,7 +331,7 @@ func (e *TaggingFailedException) ErrorMessage() string { return *e.Message } func (e *TaggingFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TaggingFailedException" } return *e.ErrorCodeOverride @@ -361,7 +361,7 @@ func (e *TerminalRoutingStrategyException) ErrorMessage() string { return *e.Message } func (e *TerminalRoutingStrategyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TerminalRoutingStrategyException" } return *e.ErrorCodeOverride @@ -387,7 +387,7 @@ func (e *UnauthorizedException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedException" } return *e.ErrorCodeOverride @@ -413,7 +413,7 @@ func (e *UnsupportedRegionException) ErrorMessage() string { return *e.Message } func (e *UnsupportedRegionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedRegionException" } return *e.ErrorCodeOverride diff --git a/service/gamesparks/types/errors.go b/service/gamesparks/types/errors.go index 4b7d9c6095d..5e9bf9e2b6b 100644 --- a/service/gamesparks/types/errors.go +++ b/service/gamesparks/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -182,7 +182,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/glacier/types/errors.go b/service/glacier/types/errors.go index 0b3ac9baddb..2a8ebe6e08c 100644 --- a/service/glacier/types/errors.go +++ b/service/glacier/types/errors.go @@ -31,7 +31,7 @@ func (e *InsufficientCapacityException) ErrorMessage() string { return *e.Message } func (e *InsufficientCapacityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientCapacityException" } return *e.ErrorCodeOverride @@ -60,7 +60,7 @@ func (e *InvalidParameterValueException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterValueException" } return *e.ErrorCodeOverride @@ -89,7 +89,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -118,7 +118,7 @@ func (e *MissingParameterValueException) ErrorMessage() string { return *e.Message } func (e *MissingParameterValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MissingParameterValueException" } return *e.ErrorCodeOverride @@ -148,7 +148,7 @@ func (e *PolicyEnforcedException) ErrorMessage() string { return *e.Message } func (e *PolicyEnforcedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PolicyEnforcedException" } return *e.ErrorCodeOverride @@ -178,7 +178,7 @@ func (e *RequestTimeoutException) ErrorMessage() string { return *e.Message } func (e *RequestTimeoutException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestTimeoutException" } return *e.ErrorCodeOverride @@ -208,7 +208,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -237,7 +237,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride diff --git a/service/globalaccelerator/types/errors.go b/service/globalaccelerator/types/errors.go index 7a6038ff1a8..5a88aa37a8e 100644 --- a/service/globalaccelerator/types/errors.go +++ b/service/globalaccelerator/types/errors.go @@ -26,7 +26,7 @@ func (e *AcceleratorNotDisabledException) ErrorMessage() string { return *e.Message } func (e *AcceleratorNotDisabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AcceleratorNotDisabledException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *AcceleratorNotFoundException) ErrorMessage() string { return *e.Message } func (e *AcceleratorNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AcceleratorNotFoundException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *AssociatedEndpointGroupFoundException) ErrorMessage() string { return *e.Message } func (e *AssociatedEndpointGroupFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AssociatedEndpointGroupFoundException" } return *e.ErrorCodeOverride @@ -134,7 +134,7 @@ func (e *AssociatedListenerFoundException) ErrorMessage() string { return *e.Message } func (e *AssociatedListenerFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AssociatedListenerFoundException" } return *e.ErrorCodeOverride @@ -160,7 +160,7 @@ func (e *ByoipCidrNotFoundException) ErrorMessage() string { return *e.Message } func (e *ByoipCidrNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ByoipCidrNotFoundException" } return *e.ErrorCodeOverride @@ -186,7 +186,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -212,7 +212,7 @@ func (e *EndpointAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *EndpointAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EndpointAlreadyExistsException" } return *e.ErrorCodeOverride @@ -238,7 +238,7 @@ func (e *EndpointGroupAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *EndpointGroupAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EndpointGroupAlreadyExistsException" } return *e.ErrorCodeOverride @@ -266,7 +266,7 @@ func (e *EndpointGroupNotFoundException) ErrorMessage() string { return *e.Message } func (e *EndpointGroupNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EndpointGroupNotFoundException" } return *e.ErrorCodeOverride @@ -292,7 +292,7 @@ func (e *EndpointNotFoundException) ErrorMessage() string { return *e.Message } func (e *EndpointNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EndpointNotFoundException" } return *e.ErrorCodeOverride @@ -319,7 +319,7 @@ func (e *IncorrectCidrStateException) ErrorMessage() string { return *e.Message } func (e *IncorrectCidrStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IncorrectCidrStateException" } return *e.ErrorCodeOverride @@ -345,7 +345,7 @@ func (e *InternalServiceErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServiceErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceErrorException" } return *e.ErrorCodeOverride @@ -371,7 +371,7 @@ func (e *InvalidArgumentException) ErrorMessage() string { return *e.Message } func (e *InvalidArgumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArgumentException" } return *e.ErrorCodeOverride @@ -397,7 +397,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -424,7 +424,7 @@ func (e *InvalidPortRangeException) ErrorMessage() string { return *e.Message } func (e *InvalidPortRangeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPortRangeException" } return *e.ErrorCodeOverride @@ -450,7 +450,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -476,7 +476,7 @@ func (e *ListenerNotFoundException) ErrorMessage() string { return *e.Message } func (e *ListenerNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ListenerNotFoundException" } return *e.ErrorCodeOverride @@ -503,7 +503,7 @@ func (e *TransactionInProgressException) ErrorMessage() string { return *e.Message } func (e *TransactionInProgressException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TransactionInProgressException" } return *e.ErrorCodeOverride diff --git a/service/glue/types/errors.go b/service/glue/types/errors.go index a5797c4804d..ae8cff6987a 100644 --- a/service/glue/types/errors.go +++ b/service/glue/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *AlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *AlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AlreadyExistsException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ConcurrentRunsExceededException) ErrorMessage() string { return *e.Message } func (e *ConcurrentRunsExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentRunsExceededException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *ConditionCheckFailureException) ErrorMessage() string { return *e.Message } func (e *ConditionCheckFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConditionCheckFailureException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -182,7 +182,7 @@ func (e *CrawlerNotRunningException) ErrorMessage() string { return *e.Message } func (e *CrawlerNotRunningException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CrawlerNotRunningException" } return *e.ErrorCodeOverride @@ -208,7 +208,7 @@ func (e *CrawlerRunningException) ErrorMessage() string { return *e.Message } func (e *CrawlerRunningException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CrawlerRunningException" } return *e.ErrorCodeOverride @@ -234,7 +234,7 @@ func (e *CrawlerStoppingException) ErrorMessage() string { return *e.Message } func (e *CrawlerStoppingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CrawlerStoppingException" } return *e.ErrorCodeOverride @@ -260,7 +260,7 @@ func (e *EntityNotFoundException) ErrorMessage() string { return *e.Message } func (e *EntityNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EntityNotFoundException" } return *e.ErrorCodeOverride @@ -286,7 +286,7 @@ func (e *GlueEncryptionException) ErrorMessage() string { return *e.Message } func (e *GlueEncryptionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GlueEncryptionException" } return *e.ErrorCodeOverride @@ -312,7 +312,7 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IdempotentParameterMismatchException" } return *e.ErrorCodeOverride @@ -340,7 +340,7 @@ func (e *IllegalBlueprintStateException) ErrorMessage() string { return *e.Message } func (e *IllegalBlueprintStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IllegalBlueprintStateException" } return *e.ErrorCodeOverride @@ -366,7 +366,7 @@ func (e *IllegalSessionStateException) ErrorMessage() string { return *e.Message } func (e *IllegalSessionStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IllegalSessionStateException" } return *e.ErrorCodeOverride @@ -392,7 +392,7 @@ func (e *IllegalWorkflowStateException) ErrorMessage() string { return *e.Message } func (e *IllegalWorkflowStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IllegalWorkflowStateException" } return *e.ErrorCodeOverride @@ -418,7 +418,7 @@ func (e *InternalServiceException) ErrorMessage() string { return *e.Message } func (e *InternalServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceException" } return *e.ErrorCodeOverride @@ -444,7 +444,7 @@ func (e *InvalidInputException) ErrorMessage() string { return *e.Message } func (e *InvalidInputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputException" } return *e.ErrorCodeOverride @@ -470,7 +470,7 @@ func (e *InvalidStateException) ErrorMessage() string { return *e.Message } func (e *InvalidStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidStateException" } return *e.ErrorCodeOverride @@ -496,7 +496,7 @@ func (e *MLTransformNotReadyException) ErrorMessage() string { return *e.Message } func (e *MLTransformNotReadyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MLTransformNotReadyException" } return *e.ErrorCodeOverride @@ -522,7 +522,7 @@ func (e *NoScheduleException) ErrorMessage() string { return *e.Message } func (e *NoScheduleException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoScheduleException" } return *e.ErrorCodeOverride @@ -548,7 +548,7 @@ func (e *OperationTimeoutException) ErrorMessage() string { return *e.Message } func (e *OperationTimeoutException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationTimeoutException" } return *e.ErrorCodeOverride @@ -573,7 +573,7 @@ func (e *PermissionTypeMismatchException) ErrorMessage() string { return *e.Message } func (e *PermissionTypeMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PermissionTypeMismatchException" } return *e.ErrorCodeOverride @@ -599,7 +599,7 @@ func (e *ResourceNotReadyException) ErrorMessage() string { return *e.Message } func (e *ResourceNotReadyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotReadyException" } return *e.ErrorCodeOverride @@ -625,7 +625,7 @@ func (e *ResourceNumberLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceNumberLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNumberLimitExceededException" } return *e.ErrorCodeOverride @@ -653,7 +653,7 @@ func (e *SchedulerNotRunningException) ErrorMessage() string { return *e.Message } func (e *SchedulerNotRunningException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SchedulerNotRunningException" } return *e.ErrorCodeOverride @@ -679,7 +679,7 @@ func (e *SchedulerRunningException) ErrorMessage() string { return *e.Message } func (e *SchedulerRunningException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SchedulerRunningException" } return *e.ErrorCodeOverride @@ -705,7 +705,7 @@ func (e *SchedulerTransitioningException) ErrorMessage() string { return *e.Message } func (e *SchedulerTransitioningException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SchedulerTransitioningException" } return *e.ErrorCodeOverride @@ -731,7 +731,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride @@ -757,7 +757,7 @@ func (e *VersionMismatchException) ErrorMessage() string { return *e.Message } func (e *VersionMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "VersionMismatchException" } return *e.ErrorCodeOverride diff --git a/service/grafana/types/errors.go b/service/grafana/types/errors.go index 889aee13c08..1dc61490507 100644 --- a/service/grafana/types/errors.go +++ b/service/grafana/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -112,7 +112,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -143,7 +143,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -173,7 +173,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -202,7 +202,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/greengrass/types/errors.go b/service/greengrass/types/errors.go index 1bf8185fec0..9a262c658ad 100644 --- a/service/greengrass/types/errors.go +++ b/service/greengrass/types/errors.go @@ -28,7 +28,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *InternalServerErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServerErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerErrorException" } return *e.ErrorCodeOverride diff --git a/service/greengrassv2/types/errors.go b/service/greengrassv2/types/errors.go index d4b8aa6cd7f..65a0667ae2f 100644 --- a/service/greengrassv2/types/errors.go +++ b/service/greengrassv2/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -112,7 +112,7 @@ func (e *RequestAlreadyInProgressException) ErrorMessage() string { return *e.Message } func (e *RequestAlreadyInProgressException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestAlreadyInProgressException" } return *e.ErrorCodeOverride @@ -141,7 +141,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -173,7 +173,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -205,7 +205,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -235,7 +235,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/groundstation/types/errors.go b/service/groundstation/types/errors.go index 384102b6309..970fa6ef312 100644 --- a/service/groundstation/types/errors.go +++ b/service/groundstation/types/errors.go @@ -28,7 +28,7 @@ func (e *DependencyException) ErrorMessage() string { return *e.Message } func (e *DependencyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DependencyException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceLimitExceededException" } return *e.ErrorCodeOverride @@ -110,7 +110,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/guardduty/types/errors.go b/service/guardduty/types/errors.go index b2094921572..71e5e0df50b 100644 --- a/service/guardduty/types/errors.go +++ b/service/guardduty/types/errors.go @@ -28,7 +28,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *InternalServerErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServerErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerErrorException" } return *e.ErrorCodeOverride diff --git a/service/health/types/errors.go b/service/health/types/errors.go index 8f03a6b4af7..6b5c65f0aba 100644 --- a/service/health/types/errors.go +++ b/service/health/types/errors.go @@ -31,7 +31,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *InvalidPaginationToken) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationToken) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPaginationToken" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *UnsupportedLocale) ErrorMessage() string { return *e.Message } func (e *UnsupportedLocale) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedLocale" } return *e.ErrorCodeOverride diff --git a/service/healthlake/types/errors.go b/service/healthlake/types/errors.go index 8d15c3f00c2..54b3f74ade3 100644 --- a/service/healthlake/types/errors.go +++ b/service/healthlake/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/honeycode/types/errors.go b/service/honeycode/types/errors.go index d77b55ab996..5b83dd3b2c5 100644 --- a/service/honeycode/types/errors.go +++ b/service/honeycode/types/errors.go @@ -28,7 +28,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *AutomationExecutionException) ErrorMessage() string { return *e.Message } func (e *AutomationExecutionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AutomationExecutionException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *AutomationExecutionTimeoutException) ErrorMessage() string { return *e.Message } func (e *AutomationExecutionTimeoutException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AutomationExecutionTimeoutException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -134,7 +134,7 @@ func (e *RequestTimeoutException) ErrorMessage() string { return *e.Message } func (e *RequestTimeoutException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestTimeoutException" } return *e.ErrorCodeOverride @@ -161,7 +161,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -187,7 +187,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -213,7 +213,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -239,7 +239,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -266,7 +266,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/iam/types/errors.go b/service/iam/types/errors.go index 8e39c7d63d1..6c837e2ff44 100644 --- a/service/iam/types/errors.go +++ b/service/iam/types/errors.go @@ -27,7 +27,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModification" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *CredentialReportExpiredException) ErrorMessage() string { return *e.Message } func (e *CredentialReportExpiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReportExpired" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *CredentialReportNotPresentException) ErrorMessage() string { return *e.Message } func (e *CredentialReportNotPresentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReportNotPresent" } return *e.ErrorCodeOverride @@ -112,7 +112,7 @@ func (e *CredentialReportNotReadyException) ErrorMessage() string { return *e.Message } func (e *CredentialReportNotReadyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReportInProgress" } return *e.ErrorCodeOverride @@ -139,7 +139,7 @@ func (e *DeleteConflictException) ErrorMessage() string { return *e.Message } func (e *DeleteConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeleteConflict" } return *e.ErrorCodeOverride @@ -166,7 +166,7 @@ func (e *DuplicateCertificateException) ErrorMessage() string { return *e.Message } func (e *DuplicateCertificateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateCertificate" } return *e.ErrorCodeOverride @@ -193,7 +193,7 @@ func (e *DuplicateSSHPublicKeyException) ErrorMessage() string { return *e.Message } func (e *DuplicateSSHPublicKeyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateSSHPublicKey" } return *e.ErrorCodeOverride @@ -220,7 +220,7 @@ func (e *EntityAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *EntityAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EntityAlreadyExists" } return *e.ErrorCodeOverride @@ -249,7 +249,7 @@ func (e *EntityTemporarilyUnmodifiableException) ErrorMessage() string { return *e.Message } func (e *EntityTemporarilyUnmodifiableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EntityTemporarilyUnmodifiable" } return *e.ErrorCodeOverride @@ -278,7 +278,7 @@ func (e *InvalidAuthenticationCodeException) ErrorMessage() string { return *e.Message } func (e *InvalidAuthenticationCodeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAuthenticationCode" } return *e.ErrorCodeOverride @@ -306,7 +306,7 @@ func (e *InvalidCertificateException) ErrorMessage() string { return *e.Message } func (e *InvalidCertificateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCertificate" } return *e.ErrorCodeOverride @@ -333,7 +333,7 @@ func (e *InvalidInputException) ErrorMessage() string { return *e.Message } func (e *InvalidInputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInput" } return *e.ErrorCodeOverride @@ -360,7 +360,7 @@ func (e *InvalidPublicKeyException) ErrorMessage() string { return *e.Message } func (e *InvalidPublicKeyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPublicKey" } return *e.ErrorCodeOverride @@ -387,7 +387,7 @@ func (e *InvalidUserTypeException) ErrorMessage() string { return *e.Message } func (e *InvalidUserTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidUserType" } return *e.ErrorCodeOverride @@ -414,7 +414,7 @@ func (e *KeyPairMismatchException) ErrorMessage() string { return *e.Message } func (e *KeyPairMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KeyPairMismatch" } return *e.ErrorCodeOverride @@ -442,7 +442,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceeded" } return *e.ErrorCodeOverride @@ -469,7 +469,7 @@ func (e *MalformedCertificateException) ErrorMessage() string { return *e.Message } func (e *MalformedCertificateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MalformedCertificate" } return *e.ErrorCodeOverride @@ -496,7 +496,7 @@ func (e *MalformedPolicyDocumentException) ErrorMessage() string { return *e.Message } func (e *MalformedPolicyDocumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MalformedPolicyDocument" } return *e.ErrorCodeOverride @@ -523,7 +523,7 @@ func (e *NoSuchEntityException) ErrorMessage() string { return *e.Message } func (e *NoSuchEntityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchEntity" } return *e.ErrorCodeOverride @@ -550,7 +550,7 @@ func (e *PasswordPolicyViolationException) ErrorMessage() string { return *e.Message } func (e *PasswordPolicyViolationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PasswordPolicyViolation" } return *e.ErrorCodeOverride @@ -577,7 +577,7 @@ func (e *PolicyEvaluationException) ErrorMessage() string { return *e.Message } func (e *PolicyEvaluationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PolicyEvaluation" } return *e.ErrorCodeOverride @@ -604,7 +604,7 @@ func (e *PolicyNotAttachableException) ErrorMessage() string { return *e.Message } func (e *PolicyNotAttachableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PolicyNotAttachable" } return *e.ErrorCodeOverride @@ -631,7 +631,7 @@ func (e *ReportGenerationLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ReportGenerationLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReportGenerationLimitExceeded" } return *e.ErrorCodeOverride @@ -660,7 +660,7 @@ func (e *ServiceFailureException) ErrorMessage() string { return *e.Message } func (e *ServiceFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceFailure" } return *e.ErrorCodeOverride @@ -686,7 +686,7 @@ func (e *ServiceNotSupportedException) ErrorMessage() string { return *e.Message } func (e *ServiceNotSupportedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotSupportedService" } return *e.ErrorCodeOverride @@ -715,7 +715,7 @@ func (e *UnmodifiableEntityException) ErrorMessage() string { return *e.Message } func (e *UnmodifiableEntityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnmodifiableEntity" } return *e.ErrorCodeOverride @@ -742,7 +742,7 @@ func (e *UnrecognizedPublicKeyEncodingException) ErrorMessage() string { return *e.Message } func (e *UnrecognizedPublicKeyEncodingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnrecognizedPublicKeyEncoding" } return *e.ErrorCodeOverride diff --git a/service/identitystore/types/errors.go b/service/identitystore/types/errors.go index 82c2dd6de5e..e7c4b32fc61 100644 --- a/service/identitystore/types/errors.go +++ b/service/identitystore/types/errors.go @@ -28,7 +28,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -64,7 +64,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -94,7 +94,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -124,7 +124,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -153,7 +153,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -183,7 +183,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -211,7 +211,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/imagebuilder/types/errors.go b/service/imagebuilder/types/errors.go index bfba7e92954..8b34a4219c6 100644 --- a/service/imagebuilder/types/errors.go +++ b/service/imagebuilder/types/errors.go @@ -26,7 +26,7 @@ func (e *CallRateLimitExceededException) ErrorMessage() string { return *e.Message } func (e *CallRateLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CallRateLimitExceededException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ClientException) ErrorMessage() string { return *e.Message } func (e *ClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClientException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IdempotentParameterMismatchException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *InvalidPaginationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPaginationTokenException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterCombinationException" } return *e.ErrorCodeOverride @@ -191,7 +191,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -217,7 +217,7 @@ func (e *InvalidParameterValueException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterValueException" } return *e.ErrorCodeOverride @@ -243,7 +243,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -269,7 +269,7 @@ func (e *InvalidVersionNumberException) ErrorMessage() string { return *e.Message } func (e *InvalidVersionNumberException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidVersionNumberException" } return *e.ErrorCodeOverride @@ -295,7 +295,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -322,7 +322,7 @@ func (e *ResourceDependencyException) ErrorMessage() string { return *e.Message } func (e *ResourceDependencyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceDependencyException" } return *e.ErrorCodeOverride @@ -349,7 +349,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -375,7 +375,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -401,7 +401,7 @@ func (e *ServiceException) ErrorMessage() string { return *e.Message } func (e *ServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceException" } return *e.ErrorCodeOverride @@ -429,7 +429,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -455,7 +455,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride diff --git a/service/inspector/types/errors.go b/service/inspector/types/errors.go index 891619de1d7..5ef39cef43d 100644 --- a/service/inspector/types/errors.go +++ b/service/inspector/types/errors.go @@ -29,7 +29,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -60,7 +60,7 @@ func (e *AgentsAlreadyRunningAssessmentException) ErrorMessage() string { return *e.Message } func (e *AgentsAlreadyRunningAssessmentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AgentsAlreadyRunningAssessmentException" } return *e.ErrorCodeOverride @@ -93,7 +93,7 @@ func (e *AssessmentRunInProgressException) ErrorMessage() string { return *e.Message } func (e *AssessmentRunInProgressException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AssessmentRunInProgressException" } return *e.ErrorCodeOverride @@ -121,7 +121,7 @@ func (e *InternalException) ErrorMessage() string { return *e.Message } func (e *InternalException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalException" } return *e.ErrorCodeOverride @@ -151,7 +151,7 @@ func (e *InvalidCrossAccountRoleException) ErrorMessage() string { return *e.Message } func (e *InvalidCrossAccountRoleException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCrossAccountRoleException" } return *e.ErrorCodeOverride @@ -181,7 +181,7 @@ func (e *InvalidInputException) ErrorMessage() string { return *e.Message } func (e *InvalidInputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputException" } return *e.ErrorCodeOverride @@ -211,7 +211,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -241,7 +241,7 @@ func (e *NoSuchEntityException) ErrorMessage() string { return *e.Message } func (e *NoSuchEntityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchEntityException" } return *e.ErrorCodeOverride @@ -268,7 +268,7 @@ func (e *PreviewGenerationInProgressException) ErrorMessage() string { return *e.Message } func (e *PreviewGenerationInProgressException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PreviewGenerationInProgressException" } return *e.ErrorCodeOverride @@ -298,7 +298,7 @@ func (e *ServiceTemporarilyUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceTemporarilyUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceTemporarilyUnavailableException" } return *e.ErrorCodeOverride @@ -332,7 +332,7 @@ func (e *UnsupportedFeatureException) ErrorMessage() string { return *e.Message } func (e *UnsupportedFeatureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedFeatureException" } return *e.ErrorCodeOverride diff --git a/service/inspector2/types/errors.go b/service/inspector2/types/errors.go index 0164993fa2f..9efd636e01c 100644 --- a/service/inspector2/types/errors.go +++ b/service/inspector2/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -110,7 +110,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -137,7 +137,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -167,7 +167,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -195,7 +195,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -225,7 +225,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/iot/types/errors.go b/service/iot/types/errors.go index 316c7c55b75..d50a40174e7 100644 --- a/service/iot/types/errors.go +++ b/service/iot/types/errors.go @@ -28,7 +28,7 @@ func (e *CertificateConflictException) ErrorMessage() string { return *e.Message } func (e *CertificateConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CertificateConflictException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *CertificateStateException) ErrorMessage() string { return *e.Message } func (e *CertificateStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CertificateStateException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *CertificateValidationException) ErrorMessage() string { return *e.Message } func (e *CertificateValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CertificateValidationException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *ConflictingResourceUpdateException) ErrorMessage() string { return *e.Message } func (e *ConflictingResourceUpdateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictingResourceUpdateException" } return *e.ErrorCodeOverride @@ -161,7 +161,7 @@ func (e *DeleteConflictException) ErrorMessage() string { return *e.Message } func (e *DeleteConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeleteConflictException" } return *e.ErrorCodeOverride @@ -187,7 +187,7 @@ func (e *IndexNotReadyException) ErrorMessage() string { return *e.Message } func (e *IndexNotReadyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IndexNotReadyException" } return *e.ErrorCodeOverride @@ -213,7 +213,7 @@ func (e *InternalException) ErrorMessage() string { return *e.Message } func (e *InternalException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalException" } return *e.ErrorCodeOverride @@ -239,7 +239,7 @@ func (e *InternalFailureException) ErrorMessage() string { return *e.Message } func (e *InternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailureException" } return *e.ErrorCodeOverride @@ -266,7 +266,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -292,7 +292,7 @@ func (e *InvalidAggregationException) ErrorMessage() string { return *e.Message } func (e *InvalidAggregationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAggregationException" } return *e.ErrorCodeOverride @@ -318,7 +318,7 @@ func (e *InvalidQueryException) ErrorMessage() string { return *e.Message } func (e *InvalidQueryException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidQueryException" } return *e.ErrorCodeOverride @@ -344,7 +344,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -370,7 +370,7 @@ func (e *InvalidResponseException) ErrorMessage() string { return *e.Message } func (e *InvalidResponseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidResponseException" } return *e.ErrorCodeOverride @@ -397,7 +397,7 @@ func (e *InvalidStateTransitionException) ErrorMessage() string { return *e.Message } func (e *InvalidStateTransitionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidStateTransitionException" } return *e.ErrorCodeOverride @@ -423,7 +423,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -449,7 +449,7 @@ func (e *MalformedPolicyException) ErrorMessage() string { return *e.Message } func (e *MalformedPolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MalformedPolicyException" } return *e.ErrorCodeOverride @@ -475,7 +475,7 @@ func (e *NotConfiguredException) ErrorMessage() string { return *e.Message } func (e *NotConfiguredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotConfiguredException" } return *e.ErrorCodeOverride @@ -501,7 +501,7 @@ func (e *RegistrationCodeValidationException) ErrorMessage() string { return *e.Message } func (e *RegistrationCodeValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RegistrationCodeValidationException" } return *e.ErrorCodeOverride @@ -532,7 +532,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -558,7 +558,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -584,7 +584,7 @@ func (e *ResourceRegistrationFailureException) ErrorMessage() string { return *e.Message } func (e *ResourceRegistrationFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceRegistrationFailureException" } return *e.ErrorCodeOverride @@ -612,7 +612,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -638,7 +638,7 @@ func (e *SqlParseException) ErrorMessage() string { return *e.Message } func (e *SqlParseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SqlParseException" } return *e.ErrorCodeOverride @@ -665,7 +665,7 @@ func (e *TaskAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *TaskAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TaskAlreadyExistsException" } return *e.ErrorCodeOverride @@ -691,7 +691,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -718,7 +718,7 @@ func (e *TransferAlreadyCompletedException) ErrorMessage() string { return *e.Message } func (e *TransferAlreadyCompletedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TransferAlreadyCompletedException" } return *e.ErrorCodeOverride @@ -745,7 +745,7 @@ func (e *TransferConflictException) ErrorMessage() string { return *e.Message } func (e *TransferConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TransferConflictException" } return *e.ErrorCodeOverride @@ -771,7 +771,7 @@ func (e *UnauthorizedException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedException" } return *e.ErrorCodeOverride @@ -798,7 +798,7 @@ func (e *VersionConflictException) ErrorMessage() string { return *e.Message } func (e *VersionConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "VersionConflictException" } return *e.ErrorCodeOverride @@ -824,7 +824,7 @@ func (e *VersionsLimitExceededException) ErrorMessage() string { return *e.Message } func (e *VersionsLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "VersionsLimitExceededException" } return *e.ErrorCodeOverride diff --git a/service/iot1clickdevicesservice/types/errors.go b/service/iot1clickdevicesservice/types/errors.go index 02ba170cfe2..61235d5bb97 100644 --- a/service/iot1clickdevicesservice/types/errors.go +++ b/service/iot1clickdevicesservice/types/errors.go @@ -27,7 +27,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *InternalFailureException) ErrorMessage() string { return *e.Message } func (e *InternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailureException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *PreconditionFailedException) ErrorMessage() string { return *e.Message } func (e *PreconditionFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PreconditionFailedException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *RangeNotSatisfiableException) ErrorMessage() string { return *e.Message } func (e *RangeNotSatisfiableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RangeNotSatisfiableException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *ResourceConflictException) ErrorMessage() string { return *e.Message } func (e *ResourceConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceConflictException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/iot1clickprojects/types/errors.go b/service/iot1clickprojects/types/errors.go index 8a0860b3213..fafa22dabf9 100644 --- a/service/iot1clickprojects/types/errors.go +++ b/service/iot1clickprojects/types/errors.go @@ -27,7 +27,7 @@ func (e *InternalFailureException) ErrorMessage() string { return *e.Message } func (e *InternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailureException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *ResourceConflictException) ErrorMessage() string { return *e.Message } func (e *ResourceConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceConflictException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride diff --git a/service/iotanalytics/types/errors.go b/service/iotanalytics/types/errors.go index a3ced429347..065a18f1c8e 100644 --- a/service/iotanalytics/types/errors.go +++ b/service/iotanalytics/types/errors.go @@ -26,7 +26,7 @@ func (e *InternalFailureException) ErrorMessage() string { return *e.Message } func (e *InternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailureException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -159,7 +159,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -185,7 +185,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride diff --git a/service/iotdataplane/types/errors.go b/service/iotdataplane/types/errors.go index 88b395d2b84..c93b20b2099 100644 --- a/service/iotdataplane/types/errors.go +++ b/service/iotdataplane/types/errors.go @@ -26,7 +26,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InternalFailureException) ErrorMessage() string { return *e.Message } func (e *InternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailureException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *MethodNotAllowedException) ErrorMessage() string { return *e.Message } func (e *MethodNotAllowedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MethodNotAllowedException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *RequestEntityTooLargeException) ErrorMessage() string { return *e.Message } func (e *RequestEntityTooLargeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestEntityTooLargeException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -182,7 +182,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -208,7 +208,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -234,7 +234,7 @@ func (e *UnauthorizedException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedException" } return *e.ErrorCodeOverride @@ -260,7 +260,7 @@ func (e *UnsupportedDocumentEncodingException) ErrorMessage() string { return *e.Message } func (e *UnsupportedDocumentEncodingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedDocumentEncodingException" } return *e.ErrorCodeOverride diff --git a/service/iotdeviceadvisor/types/errors.go b/service/iotdeviceadvisor/types/errors.go index 781b83f6061..22300c5fc6c 100644 --- a/service/iotdeviceadvisor/types/errors.go +++ b/service/iotdeviceadvisor/types/errors.go @@ -26,7 +26,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/iotevents/types/errors.go b/service/iotevents/types/errors.go index c16be292e42..9ce80d19728 100644 --- a/service/iotevents/types/errors.go +++ b/service/iotevents/types/errors.go @@ -26,7 +26,7 @@ func (e *InternalFailureException) ErrorMessage() string { return *e.Message } func (e *InternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailureException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -159,7 +159,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -185,7 +185,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -211,7 +211,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -237,7 +237,7 @@ func (e *UnsupportedOperationException) ErrorMessage() string { return *e.Message } func (e *UnsupportedOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedOperationException" } return *e.ErrorCodeOverride diff --git a/service/ioteventsdata/types/errors.go b/service/ioteventsdata/types/errors.go index d4ddd8b525e..0bcdc49a6d3 100644 --- a/service/ioteventsdata/types/errors.go +++ b/service/ioteventsdata/types/errors.go @@ -26,7 +26,7 @@ func (e *InternalFailureException) ErrorMessage() string { return *e.Message } func (e *InternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailureException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride diff --git a/service/iotfleethub/types/errors.go b/service/iotfleethub/types/errors.go index 63bd88526ff..dc140b391f1 100644 --- a/service/iotfleethub/types/errors.go +++ b/service/iotfleethub/types/errors.go @@ -26,7 +26,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InternalFailureException) ErrorMessage() string { return *e.Message } func (e *InternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailureException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride diff --git a/service/iotfleetwise/types/errors.go b/service/iotfleetwise/types/errors.go index 53978a2c986..5e12a031143 100644 --- a/service/iotfleetwise/types/errors.go +++ b/service/iotfleetwise/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -86,7 +86,7 @@ func (e *DecoderManifestValidationException) ErrorMessage() string { return *e.Message } func (e *DecoderManifestValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DecoderManifestValidationException" } return *e.ErrorCodeOverride @@ -116,7 +116,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -146,7 +146,7 @@ func (e *InvalidNodeException) ErrorMessage() string { return *e.Message } func (e *InvalidNodeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNodeException" } return *e.ErrorCodeOverride @@ -174,7 +174,7 @@ func (e *InvalidSignalsException) ErrorMessage() string { return *e.Message } func (e *InvalidSignalsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSignalsException" } return *e.ErrorCodeOverride @@ -203,7 +203,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -232,7 +232,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -262,7 +262,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -292,7 +292,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/iotjobsdataplane/types/errors.go b/service/iotjobsdataplane/types/errors.go index 91f7a456961..89df5cacd2e 100644 --- a/service/iotjobsdataplane/types/errors.go +++ b/service/iotjobsdataplane/types/errors.go @@ -26,7 +26,7 @@ func (e *CertificateValidationException) ErrorMessage() string { return *e.Message } func (e *CertificateValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CertificateValidationException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *InvalidStateTransitionException) ErrorMessage() string { return *e.Message } func (e *InvalidStateTransitionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidStateTransitionException" } return *e.ErrorCodeOverride @@ -109,7 +109,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -161,7 +161,7 @@ func (e *TerminalStateException) ErrorMessage() string { return *e.Message } func (e *TerminalStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TerminalStateException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride diff --git a/service/iotroborunner/types/errors.go b/service/iotroborunner/types/errors.go index 1139247dfa8..acac967ca78 100644 --- a/service/iotroborunner/types/errors.go +++ b/service/iotroborunner/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -183,7 +183,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/iotsecuretunneling/types/errors.go b/service/iotsecuretunneling/types/errors.go index d40a919f5ca..11550f8524d 100644 --- a/service/iotsecuretunneling/types/errors.go +++ b/service/iotsecuretunneling/types/errors.go @@ -26,7 +26,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/iotsitewise/types/errors.go b/service/iotsitewise/types/errors.go index f6f7653f2bb..6d2b7b696f2 100644 --- a/service/iotsitewise/types/errors.go +++ b/service/iotsitewise/types/errors.go @@ -30,7 +30,7 @@ func (e *ConflictingOperationException) ErrorMessage() string { return *e.Message } func (e *ConflictingOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictingOperationException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *InternalFailureException) ErrorMessage() string { return *e.Message } func (e *InternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailureException" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -114,7 +114,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -143,7 +143,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -169,7 +169,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -195,7 +195,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -225,7 +225,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -256,7 +256,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -282,7 +282,7 @@ func (e *UnauthorizedException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedException" } return *e.ErrorCodeOverride diff --git a/service/iotthingsgraph/types/errors.go b/service/iotthingsgraph/types/errors.go index c7c166c578a..b742cfc61f7 100644 --- a/service/iotthingsgraph/types/errors.go +++ b/service/iotthingsgraph/types/errors.go @@ -25,7 +25,7 @@ func (e *InternalFailureException) ErrorMessage() string { return *e.Message } func (e *InternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailureException" } return *e.ErrorCodeOverride @@ -50,7 +50,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -75,7 +75,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -100,7 +100,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -125,7 +125,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -150,7 +150,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -175,7 +175,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride diff --git a/service/iottwinmaker/types/errors.go b/service/iottwinmaker/types/errors.go index 627f504e433..cf36da6f6c1 100644 --- a/service/iottwinmaker/types/errors.go +++ b/service/iottwinmaker/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ConnectorFailureException) ErrorMessage() string { return *e.Message } func (e *ConnectorFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConnectorFailureException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ConnectorTimeoutException) ErrorMessage() string { return *e.Message } func (e *ConnectorTimeoutException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConnectorTimeoutException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *QueryTimeoutException) ErrorMessage() string { return *e.Message } func (e *QueryTimeoutException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "QueryTimeoutException" } return *e.ErrorCodeOverride @@ -182,7 +182,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -208,7 +208,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -234,7 +234,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -260,7 +260,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -286,7 +286,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/iotwireless/types/errors.go b/service/iotwireless/types/errors.go index c9931b6676b..9d3e4bd73bb 100644 --- a/service/iotwireless/types/errors.go +++ b/service/iotwireless/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -110,7 +110,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -136,7 +136,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -164,7 +164,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -190,7 +190,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/ivs/types/errors.go b/service/ivs/types/errors.go index 6d94f5558e8..8c731cdd7b0 100644 --- a/service/ivs/types/errors.go +++ b/service/ivs/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ChannelNotBroadcasting) ErrorMessage() string { return *e.Message } func (e *ChannelNotBroadcasting) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ChannelNotBroadcasting" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *PendingVerification) ErrorMessage() string { return *e.Message } func (e *PendingVerification) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PendingVerification" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -216,7 +216,7 @@ func (e *StreamUnavailable) ErrorMessage() string { return *e.Message } func (e *StreamUnavailable) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StreamUnavailable" } return *e.ErrorCodeOverride @@ -243,7 +243,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -270,7 +270,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/ivschat/types/errors.go b/service/ivschat/types/errors.go index c9b048ff96f..21e1a52cc8c 100644 --- a/service/ivschat/types/errors.go +++ b/service/ivschat/types/errors.go @@ -25,7 +25,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -103,7 +103,7 @@ func (e *PendingVerification) ErrorMessage() string { return *e.Message } func (e *PendingVerification) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PendingVerification" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -160,7 +160,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -217,7 +217,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/kafka/types/errors.go b/service/kafka/types/errors.go index f88d7573603..14230c70648 100644 --- a/service/kafka/types/errors.go +++ b/service/kafka/types/errors.go @@ -28,7 +28,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -112,7 +112,7 @@ func (e *InternalServerErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServerErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerErrorException" } return *e.ErrorCodeOverride @@ -140,7 +140,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -168,7 +168,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -196,7 +196,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -224,7 +224,7 @@ func (e *UnauthorizedException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedException" } return *e.ErrorCodeOverride diff --git a/service/kafkaconnect/types/errors.go b/service/kafkaconnect/types/errors.go index 0b2ea8c5af7..b3d643e9de2 100644 --- a/service/kafkaconnect/types/errors.go +++ b/service/kafkaconnect/types/errors.go @@ -27,7 +27,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *InternalServerErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServerErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerErrorException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -188,7 +188,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -215,7 +215,7 @@ func (e *UnauthorizedException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedException" } return *e.ErrorCodeOverride diff --git a/service/kendra/types/errors.go b/service/kendra/types/errors.go index 88aa5a38581..a9cb3fbc1f7 100644 --- a/service/kendra/types/errors.go +++ b/service/kendra/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -109,7 +109,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -136,7 +136,7 @@ func (e *ResourceAlreadyExistException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistException" } return *e.ErrorCodeOverride @@ -163,7 +163,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -190,7 +190,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -217,7 +217,7 @@ func (e *ResourceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ResourceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceUnavailableException" } return *e.ErrorCodeOverride @@ -246,7 +246,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -273,7 +273,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -300,7 +300,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/kendraranking/types/errors.go b/service/kendraranking/types/errors.go index 2347af769e3..531f92cac1e 100644 --- a/service/kendraranking/types/errors.go +++ b/service/kendraranking/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -109,7 +109,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -136,7 +136,7 @@ func (e *ResourceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ResourceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceUnavailableException" } return *e.ErrorCodeOverride @@ -166,7 +166,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -193,7 +193,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -220,7 +220,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/keyspaces/types/errors.go b/service/keyspaces/types/errors.go index a1f9b708f92..194daa468d7 100644 --- a/service/keyspaces/types/errors.go +++ b/service/keyspaces/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -110,7 +110,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -139,7 +139,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -165,7 +165,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/kinesis/types/errors.go b/service/kinesis/types/errors.go index 097267554db..448f1708a1a 100644 --- a/service/kinesis/types/errors.go +++ b/service/kinesis/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ExpiredIteratorException) ErrorMessage() string { return *e.Message } func (e *ExpiredIteratorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ExpiredIteratorException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *ExpiredNextTokenException) ErrorMessage() string { return *e.Message } func (e *ExpiredNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ExpiredNextTokenException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *InternalFailureException) ErrorMessage() string { return *e.Message } func (e *InternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailureException" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *InvalidArgumentException) ErrorMessage() string { return *e.Message } func (e *InvalidArgumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArgumentException" } return *e.ErrorCodeOverride @@ -160,7 +160,7 @@ func (e *KMSAccessDeniedException) ErrorMessage() string { return *e.Message } func (e *KMSAccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSAccessDeniedException" } return *e.ErrorCodeOverride @@ -187,7 +187,7 @@ func (e *KMSDisabledException) ErrorMessage() string { return *e.Message } func (e *KMSDisabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSDisabledException" } return *e.ErrorCodeOverride @@ -217,7 +217,7 @@ func (e *KMSInvalidStateException) ErrorMessage() string { return *e.Message } func (e *KMSInvalidStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSInvalidStateException" } return *e.ErrorCodeOverride @@ -244,7 +244,7 @@ func (e *KMSNotFoundException) ErrorMessage() string { return *e.Message } func (e *KMSNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSNotFoundException" } return *e.ErrorCodeOverride @@ -270,7 +270,7 @@ func (e *KMSOptInRequired) ErrorMessage() string { return *e.Message } func (e *KMSOptInRequired) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSOptInRequired" } return *e.ErrorCodeOverride @@ -299,7 +299,7 @@ func (e *KMSThrottlingException) ErrorMessage() string { return *e.Message } func (e *KMSThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSThrottlingException" } return *e.ErrorCodeOverride @@ -326,7 +326,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -359,7 +359,7 @@ func (e *ProvisionedThroughputExceededException) ErrorMessage() string { return *e.Message } func (e *ProvisionedThroughputExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ProvisionedThroughputExceededException" } return *e.ErrorCodeOverride @@ -388,7 +388,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -415,7 +415,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -443,7 +443,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/kinesisanalytics/types/errors.go b/service/kinesisanalytics/types/errors.go index 74a0b66866c..ff1ac0a407b 100644 --- a/service/kinesisanalytics/types/errors.go +++ b/service/kinesisanalytics/types/errors.go @@ -27,7 +27,7 @@ func (e *CodeValidationException) ErrorMessage() string { return *e.Message } func (e *CodeValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CodeValidationException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *InvalidApplicationConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidApplicationConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidApplicationConfigurationException" } return *e.ErrorCodeOverride @@ -109,7 +109,7 @@ func (e *InvalidArgumentException) ErrorMessage() string { return *e.Message } func (e *InvalidArgumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArgumentException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -161,7 +161,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -187,7 +187,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -217,7 +217,7 @@ func (e *ResourceProvisionedThroughputExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceProvisionedThroughputExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceProvisionedThroughputExceededException" } return *e.ErrorCodeOverride @@ -245,7 +245,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -273,7 +273,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -303,7 +303,7 @@ func (e *UnableToDetectSchemaException) ErrorMessage() string { return *e.Message } func (e *UnableToDetectSchemaException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnableToDetectSchemaException" } return *e.ErrorCodeOverride @@ -330,7 +330,7 @@ func (e *UnsupportedOperationException) ErrorMessage() string { return *e.Message } func (e *UnsupportedOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedOperationException" } return *e.ErrorCodeOverride diff --git a/service/kinesisanalyticsv2/types/errors.go b/service/kinesisanalyticsv2/types/errors.go index a1a1ca5e402..8c6161c7045 100644 --- a/service/kinesisanalyticsv2/types/errors.go +++ b/service/kinesisanalyticsv2/types/errors.go @@ -27,7 +27,7 @@ func (e *CodeValidationException) ErrorMessage() string { return *e.Message } func (e *CodeValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CodeValidationException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *InvalidApplicationConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidApplicationConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidApplicationConfigurationException" } return *e.ErrorCodeOverride @@ -109,7 +109,7 @@ func (e *InvalidArgumentException) ErrorMessage() string { return *e.Message } func (e *InvalidArgumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArgumentException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -161,7 +161,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -187,7 +187,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -213,7 +213,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -243,7 +243,7 @@ func (e *ResourceProvisionedThroughputExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceProvisionedThroughputExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceProvisionedThroughputExceededException" } return *e.ErrorCodeOverride @@ -271,7 +271,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -299,7 +299,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -329,7 +329,7 @@ func (e *UnableToDetectSchemaException) ErrorMessage() string { return *e.Message } func (e *UnableToDetectSchemaException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnableToDetectSchemaException" } return *e.ErrorCodeOverride @@ -356,7 +356,7 @@ func (e *UnsupportedOperationException) ErrorMessage() string { return *e.Message } func (e *UnsupportedOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedOperationException" } return *e.ErrorCodeOverride diff --git a/service/kinesisvideo/types/errors.go b/service/kinesisvideo/types/errors.go index d2c2a99cb3b..c41bef4b585 100644 --- a/service/kinesisvideo/types/errors.go +++ b/service/kinesisvideo/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *AccountChannelLimitExceededException) ErrorMessage() string { return *e.Message } func (e *AccountChannelLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccountChannelLimitExceededException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *AccountStreamLimitExceededException) ErrorMessage() string { return *e.Message } func (e *AccountStreamLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccountStreamLimitExceededException" } return *e.ErrorCodeOverride @@ -110,7 +110,7 @@ func (e *ClientLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ClientLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClientLimitExceededException" } return *e.ErrorCodeOverride @@ -136,7 +136,7 @@ func (e *DeviceStreamLimitExceededException) ErrorMessage() string { return *e.Message } func (e *DeviceStreamLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeviceStreamLimitExceededException" } return *e.ErrorCodeOverride @@ -164,7 +164,7 @@ func (e *InvalidArgumentException) ErrorMessage() string { return *e.Message } func (e *InvalidArgumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArgumentException" } return *e.ErrorCodeOverride @@ -190,7 +190,7 @@ func (e *InvalidDeviceException) ErrorMessage() string { return *e.Message } func (e *InvalidDeviceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDeviceException" } return *e.ErrorCodeOverride @@ -216,7 +216,7 @@ func (e *InvalidResourceFormatException) ErrorMessage() string { return *e.Message } func (e *InvalidResourceFormatException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidResourceFormatException" } return *e.ErrorCodeOverride @@ -242,7 +242,7 @@ func (e *NoDataRetentionException) ErrorMessage() string { return *e.Message } func (e *NoDataRetentionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoDataRetentionException" } return *e.ErrorCodeOverride @@ -268,7 +268,7 @@ func (e *NotAuthorizedException) ErrorMessage() string { return *e.Message } func (e *NotAuthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotAuthorizedException" } return *e.ErrorCodeOverride @@ -306,7 +306,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -332,7 +332,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -359,7 +359,7 @@ func (e *StreamEdgeConfigurationNotFoundException) ErrorMessage() string { return *e.Message } func (e *StreamEdgeConfigurationNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StreamEdgeConfigurationNotFoundException" } return *e.ErrorCodeOverride @@ -388,7 +388,7 @@ func (e *TagsPerResourceExceededLimitException) ErrorMessage() string { return *e.Message } func (e *TagsPerResourceExceededLimitException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagsPerResourceExceededLimitException" } return *e.ErrorCodeOverride @@ -419,7 +419,7 @@ func (e *VersionMismatchException) ErrorMessage() string { return *e.Message } func (e *VersionMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "VersionMismatchException" } return *e.ErrorCodeOverride diff --git a/service/kinesisvideoarchivedmedia/types/errors.go b/service/kinesisvideoarchivedmedia/types/errors.go index a822f603365..e3e6b462f87 100644 --- a/service/kinesisvideoarchivedmedia/types/errors.go +++ b/service/kinesisvideoarchivedmedia/types/errors.go @@ -29,7 +29,7 @@ func (e *ClientLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ClientLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClientLimitExceededException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *InvalidArgumentException) ErrorMessage() string { return *e.Message } func (e *InvalidArgumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArgumentException" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *InvalidCodecPrivateDataException) ErrorMessage() string { return *e.Message } func (e *InvalidCodecPrivateDataException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCodecPrivateDataException" } return *e.ErrorCodeOverride @@ -110,7 +110,7 @@ func (e *InvalidMediaFrameException) ErrorMessage() string { return *e.Message } func (e *InvalidMediaFrameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidMediaFrameException" } return *e.ErrorCodeOverride @@ -136,7 +136,7 @@ func (e *MissingCodecPrivateDataException) ErrorMessage() string { return *e.Message } func (e *MissingCodecPrivateDataException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MissingCodecPrivateDataException" } return *e.ErrorCodeOverride @@ -163,7 +163,7 @@ func (e *NoDataRetentionException) ErrorMessage() string { return *e.Message } func (e *NoDataRetentionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoDataRetentionException" } return *e.ErrorCodeOverride @@ -190,7 +190,7 @@ func (e *NotAuthorizedException) ErrorMessage() string { return *e.Message } func (e *NotAuthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotAuthorizedException" } return *e.ErrorCodeOverride @@ -221,7 +221,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -250,7 +250,7 @@ func (e *UnsupportedStreamMediaTypeException) ErrorMessage() string { return *e.Message } func (e *UnsupportedStreamMediaTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedStreamMediaTypeException" } return *e.ErrorCodeOverride diff --git a/service/kinesisvideomedia/types/errors.go b/service/kinesisvideomedia/types/errors.go index 7749368f3c6..ede94082e0d 100644 --- a/service/kinesisvideomedia/types/errors.go +++ b/service/kinesisvideomedia/types/errors.go @@ -27,7 +27,7 @@ func (e *ClientLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ClientLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClientLimitExceededException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConnectionLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ConnectionLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConnectionLimitExceededException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *InvalidArgumentException) ErrorMessage() string { return *e.Message } func (e *InvalidArgumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArgumentException" } return *e.ErrorCodeOverride @@ -109,7 +109,7 @@ func (e *InvalidEndpointException) ErrorMessage() string { return *e.Message } func (e *InvalidEndpointException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidEndpointException" } return *e.ErrorCodeOverride @@ -136,7 +136,7 @@ func (e *NotAuthorizedException) ErrorMessage() string { return *e.Message } func (e *NotAuthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotAuthorizedException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/kinesisvideosignaling/types/errors.go b/service/kinesisvideosignaling/types/errors.go index fc7d1589e58..2d03e490adc 100644 --- a/service/kinesisvideosignaling/types/errors.go +++ b/service/kinesisvideosignaling/types/errors.go @@ -27,7 +27,7 @@ func (e *ClientLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ClientLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClientLimitExceededException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *InvalidArgumentException) ErrorMessage() string { return *e.Message } func (e *InvalidArgumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArgumentException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *InvalidClientException) ErrorMessage() string { return *e.Message } func (e *InvalidClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidClientException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *NotAuthorizedException) ErrorMessage() string { return *e.Message } func (e *NotAuthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotAuthorizedException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -159,7 +159,7 @@ func (e *SessionExpiredException) ErrorMessage() string { return *e.Message } func (e *SessionExpiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SessionExpiredException" } return *e.ErrorCodeOverride diff --git a/service/kinesisvideowebrtcstorage/types/errors.go b/service/kinesisvideowebrtcstorage/types/errors.go index 34d1df5c577..91195890163 100644 --- a/service/kinesisvideowebrtcstorage/types/errors.go +++ b/service/kinesisvideowebrtcstorage/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ClientLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ClientLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClientLimitExceededException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *InvalidArgumentException) ErrorMessage() string { return *e.Message } func (e *InvalidArgumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArgumentException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/kms/types/errors.go b/service/kms/types/errors.go index 07e8e4929fc..a025590ad6b 100644 --- a/service/kms/types/errors.go +++ b/service/kms/types/errors.go @@ -27,7 +27,7 @@ func (e *AlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *AlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AlreadyExistsException" } return *e.ErrorCodeOverride @@ -60,7 +60,7 @@ func (e *CloudHsmClusterInUseException) ErrorMessage() string { return *e.Message } func (e *CloudHsmClusterInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CloudHsmClusterInUseException" } return *e.ErrorCodeOverride @@ -122,7 +122,7 @@ func (e *CloudHsmClusterInvalidConfigurationException) ErrorMessage() string { return *e.Message } func (e *CloudHsmClusterInvalidConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CloudHsmClusterInvalidConfigurationException" } return *e.ErrorCodeOverride @@ -154,7 +154,7 @@ func (e *CloudHsmClusterNotActiveException) ErrorMessage() string { return *e.Message } func (e *CloudHsmClusterNotActiveException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CloudHsmClusterNotActiveException" } return *e.ErrorCodeOverride @@ -181,7 +181,7 @@ func (e *CloudHsmClusterNotFoundException) ErrorMessage() string { return *e.Message } func (e *CloudHsmClusterNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CloudHsmClusterNotFoundException" } return *e.ErrorCodeOverride @@ -216,7 +216,7 @@ func (e *CloudHsmClusterNotRelatedException) ErrorMessage() string { return *e.Message } func (e *CloudHsmClusterNotRelatedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CloudHsmClusterNotRelatedException" } return *e.ErrorCodeOverride @@ -247,7 +247,7 @@ func (e *CustomKeyStoreHasCMKsException) ErrorMessage() string { return *e.Message } func (e *CustomKeyStoreHasCMKsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CustomKeyStoreHasCMKsException" } return *e.ErrorCodeOverride @@ -300,7 +300,7 @@ func (e *CustomKeyStoreInvalidStateException) ErrorMessage() string { return *e.Message } func (e *CustomKeyStoreInvalidStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CustomKeyStoreInvalidStateException" } return *e.ErrorCodeOverride @@ -330,7 +330,7 @@ func (e *CustomKeyStoreNameInUseException) ErrorMessage() string { return *e.Message } func (e *CustomKeyStoreNameInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CustomKeyStoreNameInUseException" } return *e.ErrorCodeOverride @@ -357,7 +357,7 @@ func (e *CustomKeyStoreNotFoundException) ErrorMessage() string { return *e.Message } func (e *CustomKeyStoreNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CustomKeyStoreNotFoundException" } return *e.ErrorCodeOverride @@ -384,7 +384,7 @@ func (e *DependencyTimeoutException) ErrorMessage() string { return *e.Message } func (e *DependencyTimeoutException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DependencyTimeoutException" } return *e.ErrorCodeOverride @@ -410,7 +410,7 @@ func (e *DisabledException) ErrorMessage() string { return *e.Message } func (e *DisabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DisabledException" } return *e.ErrorCodeOverride @@ -438,7 +438,7 @@ func (e *ExpiredImportTokenException) ErrorMessage() string { return *e.Message } func (e *ExpiredImportTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ExpiredImportTokenException" } return *e.ErrorCodeOverride @@ -466,7 +466,7 @@ func (e *IncorrectKeyException) ErrorMessage() string { return *e.Message } func (e *IncorrectKeyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IncorrectKeyException" } return *e.ErrorCodeOverride @@ -494,7 +494,7 @@ func (e *IncorrectKeyMaterialException) ErrorMessage() string { return *e.Message } func (e *IncorrectKeyMaterialException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IncorrectKeyMaterialException" } return *e.ErrorCodeOverride @@ -524,7 +524,7 @@ func (e *IncorrectTrustAnchorException) ErrorMessage() string { return *e.Message } func (e *IncorrectTrustAnchorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IncorrectTrustAnchorException" } return *e.ErrorCodeOverride @@ -550,7 +550,7 @@ func (e *InvalidAliasNameException) ErrorMessage() string { return *e.Message } func (e *InvalidAliasNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAliasNameException" } return *e.ErrorCodeOverride @@ -577,7 +577,7 @@ func (e *InvalidArnException) ErrorMessage() string { return *e.Message } func (e *InvalidArnException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArnException" } return *e.ErrorCodeOverride @@ -607,7 +607,7 @@ func (e *InvalidCiphertextException) ErrorMessage() string { return *e.Message } func (e *InvalidCiphertextException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCiphertextException" } return *e.ErrorCodeOverride @@ -633,7 +633,7 @@ func (e *InvalidGrantIdException) ErrorMessage() string { return *e.Message } func (e *InvalidGrantIdException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidGrantIdException" } return *e.ErrorCodeOverride @@ -659,7 +659,7 @@ func (e *InvalidGrantTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidGrantTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidGrantTokenException" } return *e.ErrorCodeOverride @@ -686,7 +686,7 @@ func (e *InvalidImportTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidImportTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidImportTokenException" } return *e.ErrorCodeOverride @@ -727,7 +727,7 @@ func (e *InvalidKeyUsageException) ErrorMessage() string { return *e.Message } func (e *InvalidKeyUsageException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidKeyUsageException" } return *e.ErrorCodeOverride @@ -754,7 +754,7 @@ func (e *InvalidMarkerException) ErrorMessage() string { return *e.Message } func (e *InvalidMarkerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidMarkerException" } return *e.ErrorCodeOverride @@ -781,7 +781,7 @@ func (e *KeyUnavailableException) ErrorMessage() string { return *e.Message } func (e *KeyUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KeyUnavailableException" } return *e.ErrorCodeOverride @@ -808,7 +808,7 @@ func (e *KMSInternalException) ErrorMessage() string { return *e.Message } func (e *KMSInternalException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSInternalException" } return *e.ErrorCodeOverride @@ -836,7 +836,7 @@ func (e *KMSInvalidMacException) ErrorMessage() string { return *e.Message } func (e *KMSInvalidMacException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSInvalidMacException" } return *e.ErrorCodeOverride @@ -864,7 +864,7 @@ func (e *KMSInvalidSignatureException) ErrorMessage() string { return *e.Message } func (e *KMSInvalidSignatureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSInvalidSignatureException" } return *e.ErrorCodeOverride @@ -903,7 +903,7 @@ func (e *KMSInvalidStateException) ErrorMessage() string { return *e.Message } func (e *KMSInvalidStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSInvalidStateException" } return *e.ErrorCodeOverride @@ -931,7 +931,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -958,7 +958,7 @@ func (e *MalformedPolicyDocumentException) ErrorMessage() string { return *e.Message } func (e *MalformedPolicyDocumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MalformedPolicyDocumentException" } return *e.ErrorCodeOverride @@ -985,7 +985,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -1011,7 +1011,7 @@ func (e *TagException) ErrorMessage() string { return *e.Message } func (e *TagException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagException" } return *e.ErrorCodeOverride @@ -1038,7 +1038,7 @@ func (e *UnsupportedOperationException) ErrorMessage() string { return *e.Message } func (e *UnsupportedOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedOperationException" } return *e.ErrorCodeOverride @@ -1066,7 +1066,7 @@ func (e *XksKeyAlreadyInUseException) ErrorMessage() string { return *e.Message } func (e *XksKeyAlreadyInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "XksKeyAlreadyInUseException" } return *e.ErrorCodeOverride @@ -1095,7 +1095,7 @@ func (e *XksKeyInvalidConfigurationException) ErrorMessage() string { return *e.Message } func (e *XksKeyInvalidConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "XksKeyInvalidConfigurationException" } return *e.ErrorCodeOverride @@ -1129,7 +1129,7 @@ func (e *XksKeyNotFoundException) ErrorMessage() string { return *e.Message } func (e *XksKeyNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "XksKeyNotFoundException" } return *e.ErrorCodeOverride @@ -1159,7 +1159,7 @@ func (e *XksProxyIncorrectAuthenticationCredentialException) ErrorMessage() stri return *e.Message } func (e *XksProxyIncorrectAuthenticationCredentialException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "XksProxyIncorrectAuthenticationCredentialException" } return *e.ErrorCodeOverride @@ -1189,7 +1189,7 @@ func (e *XksProxyInvalidConfigurationException) ErrorMessage() string { return *e.Message } func (e *XksProxyInvalidConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "XksProxyInvalidConfigurationException" } return *e.ErrorCodeOverride @@ -1220,7 +1220,7 @@ func (e *XksProxyInvalidResponseException) ErrorMessage() string { return *e.Message } func (e *XksProxyInvalidResponseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "XksProxyInvalidResponseException" } return *e.ErrorCodeOverride @@ -1249,7 +1249,7 @@ func (e *XksProxyUriEndpointInUseException) ErrorMessage() string { return *e.Message } func (e *XksProxyUriEndpointInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "XksProxyUriEndpointInUseException" } return *e.ErrorCodeOverride @@ -1278,7 +1278,7 @@ func (e *XksProxyUriInUseException) ErrorMessage() string { return *e.Message } func (e *XksProxyUriInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "XksProxyUriInUseException" } return *e.ErrorCodeOverride @@ -1308,7 +1308,7 @@ func (e *XksProxyUriUnreachableException) ErrorMessage() string { return *e.Message } func (e *XksProxyUriUnreachableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "XksProxyUriUnreachableException" } return *e.ErrorCodeOverride @@ -1337,7 +1337,7 @@ func (e *XksProxyVpcEndpointServiceInUseException) ErrorMessage() string { return *e.Message } func (e *XksProxyVpcEndpointServiceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "XksProxyVpcEndpointServiceInUseException" } return *e.ErrorCodeOverride @@ -1368,7 +1368,7 @@ func (e *XksProxyVpcEndpointServiceInvalidConfigurationException) ErrorMessage() return *e.Message } func (e *XksProxyVpcEndpointServiceInvalidConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "XksProxyVpcEndpointServiceInvalidConfigurationException" } return *e.ErrorCodeOverride @@ -1400,7 +1400,7 @@ func (e *XksProxyVpcEndpointServiceNotFoundException) ErrorMessage() string { return *e.Message } func (e *XksProxyVpcEndpointServiceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "XksProxyVpcEndpointServiceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/lakeformation/types/errors.go b/service/lakeformation/types/errors.go index fb0a85607b6..465acb84478 100644 --- a/service/lakeformation/types/errors.go +++ b/service/lakeformation/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *AlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *AlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AlreadyExistsException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *EntityNotFoundException) ErrorMessage() string { return *e.Message } func (e *EntityNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EntityNotFoundException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *ExpiredException) ErrorMessage() string { return *e.Message } func (e *ExpiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ExpiredException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *GlueEncryptionException) ErrorMessage() string { return *e.Message } func (e *GlueEncryptionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GlueEncryptionException" } return *e.ErrorCodeOverride @@ -182,7 +182,7 @@ func (e *InternalServiceException) ErrorMessage() string { return *e.Message } func (e *InternalServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceException" } return *e.ErrorCodeOverride @@ -208,7 +208,7 @@ func (e *InvalidInputException) ErrorMessage() string { return *e.Message } func (e *InvalidInputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputException" } return *e.ErrorCodeOverride @@ -234,7 +234,7 @@ func (e *OperationTimeoutException) ErrorMessage() string { return *e.Message } func (e *OperationTimeoutException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationTimeoutException" } return *e.ErrorCodeOverride @@ -263,7 +263,7 @@ func (e *PermissionTypeMismatchException) ErrorMessage() string { return *e.Message } func (e *PermissionTypeMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PermissionTypeMismatchException" } return *e.ErrorCodeOverride @@ -290,7 +290,7 @@ func (e *ResourceNotReadyException) ErrorMessage() string { return *e.Message } func (e *ResourceNotReadyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotReadyException" } return *e.ErrorCodeOverride @@ -316,7 +316,7 @@ func (e *ResourceNumberLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceNumberLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNumberLimitExceededException" } return *e.ErrorCodeOverride @@ -344,7 +344,7 @@ func (e *StatisticsNotReadyYetException) ErrorMessage() string { return *e.Message } func (e *StatisticsNotReadyYetException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StatisticsNotReadyYetException" } return *e.ErrorCodeOverride @@ -370,7 +370,7 @@ func (e *ThrottledException) ErrorMessage() string { return *e.Message } func (e *ThrottledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottledException" } return *e.ErrorCodeOverride @@ -396,7 +396,7 @@ func (e *TransactionCanceledException) ErrorMessage() string { return *e.Message } func (e *TransactionCanceledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TransactionCanceledException" } return *e.ErrorCodeOverride @@ -423,7 +423,7 @@ func (e *TransactionCommitInProgressException) ErrorMessage() string { return *e.Message } func (e *TransactionCommitInProgressException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TransactionCommitInProgressException" } return *e.ErrorCodeOverride @@ -452,7 +452,7 @@ func (e *TransactionCommittedException) ErrorMessage() string { return *e.Message } func (e *TransactionCommittedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TransactionCommittedException" } return *e.ErrorCodeOverride @@ -478,7 +478,7 @@ func (e *WorkUnitsNotReadyYetException) ErrorMessage() string { return *e.Message } func (e *WorkUnitsNotReadyYetException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WorkUnitsNotReadyYetException" } return *e.ErrorCodeOverride diff --git a/service/lambda/types/errors.go b/service/lambda/types/errors.go index a5f906e7b94..b8b2c7a8c3c 100644 --- a/service/lambda/types/errors.go +++ b/service/lambda/types/errors.go @@ -28,7 +28,7 @@ func (e *CodeSigningConfigNotFoundException) ErrorMessage() string { return *e.Message } func (e *CodeSigningConfigNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CodeSigningConfigNotFoundException" } return *e.ErrorCodeOverride @@ -60,7 +60,7 @@ func (e *CodeStorageExceededException) ErrorMessage() string { return *e.Message } func (e *CodeStorageExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CodeStorageExceededException" } return *e.ErrorCodeOverride @@ -90,7 +90,7 @@ func (e *CodeVerificationFailedException) ErrorMessage() string { return *e.Message } func (e *CodeVerificationFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CodeVerificationFailedException" } return *e.ErrorCodeOverride @@ -118,7 +118,7 @@ func (e *EC2AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *EC2AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EC2AccessDeniedException" } return *e.ErrorCodeOverride @@ -147,7 +147,7 @@ func (e *EC2ThrottledException) ErrorMessage() string { return *e.Message } func (e *EC2ThrottledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EC2ThrottledException" } return *e.ErrorCodeOverride @@ -177,7 +177,7 @@ func (e *EC2UnexpectedException) ErrorMessage() string { return *e.Message } func (e *EC2UnexpectedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EC2UnexpectedException" } return *e.ErrorCodeOverride @@ -205,7 +205,7 @@ func (e *EFSIOException) ErrorMessage() string { return *e.Message } func (e *EFSIOException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EFSIOException" } return *e.ErrorCodeOverride @@ -234,7 +234,7 @@ func (e *EFSMountConnectivityException) ErrorMessage() string { return *e.Message } func (e *EFSMountConnectivityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EFSMountConnectivityException" } return *e.ErrorCodeOverride @@ -263,7 +263,7 @@ func (e *EFSMountFailureException) ErrorMessage() string { return *e.Message } func (e *EFSMountFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EFSMountFailureException" } return *e.ErrorCodeOverride @@ -292,7 +292,7 @@ func (e *EFSMountTimeoutException) ErrorMessage() string { return *e.Message } func (e *EFSMountTimeoutException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EFSMountTimeoutException" } return *e.ErrorCodeOverride @@ -323,7 +323,7 @@ func (e *ENILimitReachedException) ErrorMessage() string { return *e.Message } func (e *ENILimitReachedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ENILimitReachedException" } return *e.ErrorCodeOverride @@ -352,7 +352,7 @@ func (e *InvalidCodeSignatureException) ErrorMessage() string { return *e.Message } func (e *InvalidCodeSignatureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCodeSignatureException" } return *e.ErrorCodeOverride @@ -380,7 +380,7 @@ func (e *InvalidParameterValueException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterValueException" } return *e.ErrorCodeOverride @@ -408,7 +408,7 @@ func (e *InvalidRequestContentException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestContentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestContentException" } return *e.ErrorCodeOverride @@ -436,7 +436,7 @@ func (e *InvalidRuntimeException) ErrorMessage() string { return *e.Message } func (e *InvalidRuntimeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRuntimeException" } return *e.ErrorCodeOverride @@ -465,7 +465,7 @@ func (e *InvalidSecurityGroupIDException) ErrorMessage() string { return *e.Message } func (e *InvalidSecurityGroupIDException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSecurityGroupIDException" } return *e.ErrorCodeOverride @@ -493,7 +493,7 @@ func (e *InvalidSubnetIDException) ErrorMessage() string { return *e.Message } func (e *InvalidSubnetIDException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSubnetIDException" } return *e.ErrorCodeOverride @@ -521,7 +521,7 @@ func (e *InvalidZipFileException) ErrorMessage() string { return *e.Message } func (e *InvalidZipFileException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidZipFileException" } return *e.ErrorCodeOverride @@ -550,7 +550,7 @@ func (e *KMSAccessDeniedException) ErrorMessage() string { return *e.Message } func (e *KMSAccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSAccessDeniedException" } return *e.ErrorCodeOverride @@ -579,7 +579,7 @@ func (e *KMSDisabledException) ErrorMessage() string { return *e.Message } func (e *KMSDisabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSDisabledException" } return *e.ErrorCodeOverride @@ -608,7 +608,7 @@ func (e *KMSInvalidStateException) ErrorMessage() string { return *e.Message } func (e *KMSInvalidStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSInvalidStateException" } return *e.ErrorCodeOverride @@ -637,7 +637,7 @@ func (e *KMSNotFoundException) ErrorMessage() string { return *e.Message } func (e *KMSNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSNotFoundException" } return *e.ErrorCodeOverride @@ -667,7 +667,7 @@ func (e *PolicyLengthExceededException) ErrorMessage() string { return *e.Message } func (e *PolicyLengthExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PolicyLengthExceededException" } return *e.ErrorCodeOverride @@ -697,7 +697,7 @@ func (e *PreconditionFailedException) ErrorMessage() string { return *e.Message } func (e *PreconditionFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PreconditionFailedException" } return *e.ErrorCodeOverride @@ -725,7 +725,7 @@ func (e *ProvisionedConcurrencyConfigNotFoundException) ErrorMessage() string { return *e.Message } func (e *ProvisionedConcurrencyConfigNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ProvisionedConcurrencyConfigNotFoundException" } return *e.ErrorCodeOverride @@ -757,7 +757,7 @@ func (e *RequestTooLargeException) ErrorMessage() string { return *e.Message } func (e *RequestTooLargeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestTooLargeException" } return *e.ErrorCodeOverride @@ -785,7 +785,7 @@ func (e *ResourceConflictException) ErrorMessage() string { return *e.Message } func (e *ResourceConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceConflictException" } return *e.ErrorCodeOverride @@ -815,7 +815,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -843,7 +843,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -872,7 +872,7 @@ func (e *ResourceNotReadyException) ErrorMessage() string { return *e.Message } func (e *ResourceNotReadyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotReadyException" } return *e.ErrorCodeOverride @@ -900,7 +900,7 @@ func (e *ServiceException) ErrorMessage() string { return *e.Message } func (e *ServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceException" } return *e.ErrorCodeOverride @@ -930,7 +930,7 @@ func (e *SnapStartException) ErrorMessage() string { return *e.Message } func (e *SnapStartException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapStartException" } return *e.ErrorCodeOverride @@ -961,7 +961,7 @@ func (e *SnapStartNotReadyException) ErrorMessage() string { return *e.Message } func (e *SnapStartNotReadyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapStartNotReadyException" } return *e.ErrorCodeOverride @@ -989,7 +989,7 @@ func (e *SnapStartTimeoutException) ErrorMessage() string { return *e.Message } func (e *SnapStartTimeoutException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapStartTimeoutException" } return *e.ErrorCodeOverride @@ -1018,7 +1018,7 @@ func (e *SubnetIPAddressLimitReachedException) ErrorMessage() string { return *e.Message } func (e *SubnetIPAddressLimitReachedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetIPAddressLimitReachedException" } return *e.ErrorCodeOverride @@ -1052,7 +1052,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -1080,7 +1080,7 @@ func (e *UnsupportedMediaTypeException) ErrorMessage() string { return *e.Message } func (e *UnsupportedMediaTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedMediaTypeException" } return *e.ErrorCodeOverride diff --git a/service/lexmodelbuildingservice/types/errors.go b/service/lexmodelbuildingservice/types/errors.go index 4ee1637eaec..dbb6a6b9332 100644 --- a/service/lexmodelbuildingservice/types/errors.go +++ b/service/lexmodelbuildingservice/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *InternalFailureException) ErrorMessage() string { return *e.Message } func (e *InternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailureException" } return *e.ErrorCodeOverride @@ -134,7 +134,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -161,7 +161,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -188,7 +188,7 @@ func (e *PreconditionFailedException) ErrorMessage() string { return *e.Message } func (e *PreconditionFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PreconditionFailedException" } return *e.ErrorCodeOverride @@ -224,7 +224,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride diff --git a/service/lexmodelsv2/types/errors.go b/service/lexmodelsv2/types/errors.go index b50cc9d3f5b..6cd3dd045d3 100644 --- a/service/lexmodelsv2/types/errors.go +++ b/service/lexmodelsv2/types/errors.go @@ -28,7 +28,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *PreconditionFailedException) ErrorMessage() string { return *e.Message } func (e *PreconditionFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PreconditionFailedException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -134,7 +134,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/lexruntimeservice/types/errors.go b/service/lexruntimeservice/types/errors.go index 66babc4aebe..643fd3a63c7 100644 --- a/service/lexruntimeservice/types/errors.go +++ b/service/lexruntimeservice/types/errors.go @@ -27,7 +27,7 @@ func (e *BadGatewayException) ErrorMessage() string { return *e.Message } func (e *BadGatewayException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadGatewayException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -116,7 +116,7 @@ func (e *DependencyFailedException) ErrorMessage() string { return *e.Message } func (e *DependencyFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DependencyFailedException" } return *e.ErrorCodeOverride @@ -142,7 +142,7 @@ func (e *InternalFailureException) ErrorMessage() string { return *e.Message } func (e *InternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailureException" } return *e.ErrorCodeOverride @@ -170,7 +170,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -196,7 +196,7 @@ func (e *LoopDetectedException) ErrorMessage() string { return *e.Message } func (e *LoopDetectedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LoopDetectedException" } return *e.ErrorCodeOverride @@ -222,7 +222,7 @@ func (e *NotAcceptableException) ErrorMessage() string { return *e.Message } func (e *NotAcceptableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotAcceptableException" } return *e.ErrorCodeOverride @@ -249,7 +249,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -275,7 +275,7 @@ func (e *RequestTimeoutException) ErrorMessage() string { return *e.Message } func (e *RequestTimeoutException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestTimeoutException" } return *e.ErrorCodeOverride @@ -301,7 +301,7 @@ func (e *UnsupportedMediaTypeException) ErrorMessage() string { return *e.Message } func (e *UnsupportedMediaTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedMediaTypeException" } return *e.ErrorCodeOverride diff --git a/service/lexruntimev2/types/errors.go b/service/lexruntimev2/types/errors.go index 2d10ac89473..6d5b6340dbb 100644 --- a/service/lexruntimev2/types/errors.go +++ b/service/lexruntimev2/types/errors.go @@ -25,7 +25,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -50,7 +50,7 @@ func (e *BadGatewayException) ErrorMessage() string { return *e.Message } func (e *BadGatewayException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadGatewayException" } return *e.ErrorCodeOverride @@ -75,7 +75,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -100,7 +100,7 @@ func (e *DependencyFailedException) ErrorMessage() string { return *e.Message } func (e *DependencyFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DependencyFailedException" } return *e.ErrorCodeOverride @@ -125,7 +125,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -150,7 +150,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -175,7 +175,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -200,7 +200,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/licensemanager/types/errors.go b/service/licensemanager/types/errors.go index c39912cc981..2ef5fb59240 100644 --- a/service/licensemanager/types/errors.go +++ b/service/licensemanager/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *AuthorizationException) ErrorMessage() string { return *e.Message } func (e *AuthorizationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AuthorizationException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *EntitlementNotAllowedException) ErrorMessage() string { return *e.Message } func (e *EntitlementNotAllowedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EntitlementNotAllowedException" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *FailedDependencyException) ErrorMessage() string { return *e.Message } func (e *FailedDependencyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FailedDependencyException" } return *e.ErrorCodeOverride @@ -159,7 +159,7 @@ func (e *FilterLimitExceededException) ErrorMessage() string { return *e.Message } func (e *FilterLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FilterLimitExceededException" } return *e.ErrorCodeOverride @@ -185,7 +185,7 @@ func (e *InvalidParameterValueException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterValueException" } return *e.ErrorCodeOverride @@ -213,7 +213,7 @@ func (e *InvalidResourceStateException) ErrorMessage() string { return *e.Message } func (e *InvalidResourceStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidResourceStateException" } return *e.ErrorCodeOverride @@ -239,7 +239,7 @@ func (e *LicenseUsageException) ErrorMessage() string { return *e.Message } func (e *LicenseUsageException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LicenseUsageException" } return *e.ErrorCodeOverride @@ -266,7 +266,7 @@ func (e *NoEntitlementsAllowedException) ErrorMessage() string { return *e.Message } func (e *NoEntitlementsAllowedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoEntitlementsAllowedException" } return *e.ErrorCodeOverride @@ -292,7 +292,7 @@ func (e *RateLimitExceededException) ErrorMessage() string { return *e.Message } func (e *RateLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RateLimitExceededException" } return *e.ErrorCodeOverride @@ -320,7 +320,7 @@ func (e *RedirectException) ErrorMessage() string { return *e.Message } func (e *RedirectException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RedirectException" } return *e.ErrorCodeOverride @@ -346,7 +346,7 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceLimitExceededException" } return *e.ErrorCodeOverride @@ -372,7 +372,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -398,7 +398,7 @@ func (e *ServerInternalException) ErrorMessage() string { return *e.Message } func (e *ServerInternalException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServerInternalException" } return *e.ErrorCodeOverride @@ -424,7 +424,7 @@ func (e *UnsupportedDigitalSignatureMethodException) ErrorMessage() string { return *e.Message } func (e *UnsupportedDigitalSignatureMethodException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedDigitalSignatureMethodException" } return *e.ErrorCodeOverride @@ -452,7 +452,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/licensemanagerlinuxsubscriptions/types/errors.go b/service/licensemanagerlinuxsubscriptions/types/errors.go index 154b28edb77..5d863aba298 100644 --- a/service/licensemanagerlinuxsubscriptions/types/errors.go +++ b/service/licensemanagerlinuxsubscriptions/types/errors.go @@ -26,7 +26,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/licensemanagerusersubscriptions/types/errors.go b/service/licensemanagerusersubscriptions/types/errors.go index 4b91457ba7a..39335ce58af 100644 --- a/service/licensemanagerusersubscriptions/types/errors.go +++ b/service/licensemanagerusersubscriptions/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -183,7 +183,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/lightsail/types/errors.go b/service/lightsail/types/errors.go index 1ed039609d6..92daeb42f60 100644 --- a/service/lightsail/types/errors.go +++ b/service/lightsail/types/errors.go @@ -31,7 +31,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -62,7 +62,7 @@ func (e *AccountSetupInProgressException) ErrorMessage() string { return *e.Message } func (e *AccountSetupInProgressException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccountSetupInProgressException" } return *e.ErrorCodeOverride @@ -96,7 +96,7 @@ func (e *InvalidInputException) ErrorMessage() string { return *e.Message } func (e *InvalidInputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputException" } return *e.ErrorCodeOverride @@ -126,7 +126,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *OperationFailureException) ErrorMessage() string { return *e.Message } func (e *OperationFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationFailureException" } return *e.ErrorCodeOverride @@ -186,7 +186,7 @@ func (e *ServiceException) ErrorMessage() string { return *e.Message } func (e *ServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceException" } return *e.ErrorCodeOverride @@ -216,7 +216,7 @@ func (e *UnauthenticatedException) ErrorMessage() string { return *e.Message } func (e *UnauthenticatedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthenticatedException" } return *e.ErrorCodeOverride diff --git a/service/location/types/errors.go b/service/location/types/errors.go index 55afad4e593..c4a35c0844b 100644 --- a/service/location/types/errors.go +++ b/service/location/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -134,7 +134,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -160,7 +160,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/lookoutequipment/types/errors.go b/service/lookoutequipment/types/errors.go index 09e3d168e5e..c3adccf91fd 100644 --- a/service/lookoutequipment/types/errors.go +++ b/service/lookoutequipment/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -134,7 +134,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -160,7 +160,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -187,7 +187,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/lookoutmetrics/types/errors.go b/service/lookoutmetrics/types/errors.go index ca712a81eef..2ead023f7df 100644 --- a/service/lookoutmetrics/types/errors.go +++ b/service/lookoutmetrics/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -112,7 +112,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -144,7 +144,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -171,7 +171,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -201,7 +201,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/lookoutvision/types/errors.go b/service/lookoutvision/types/errors.go index 3cd9343b2b7..d4d95d4a11e 100644 --- a/service/lookoutvision/types/errors.go +++ b/service/lookoutvision/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -112,7 +112,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -144,7 +144,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -175,7 +175,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -202,7 +202,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/m2/types/errors.go b/service/m2/types/errors.go index e38c397034e..67f070cb478 100644 --- a/service/m2/types/errors.go +++ b/service/m2/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -112,7 +112,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -144,7 +144,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -174,7 +174,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -203,7 +203,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/machinelearning/types/errors.go b/service/machinelearning/types/errors.go index f2afe941a10..e1427b3757c 100644 --- a/service/machinelearning/types/errors.go +++ b/service/machinelearning/types/errors.go @@ -30,7 +30,7 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IdempotentParameterMismatchException" } return *e.ErrorCodeOverride @@ -60,7 +60,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -88,7 +88,7 @@ func (e *InvalidInputException) ErrorMessage() string { return *e.Message } func (e *InvalidInputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputException" } return *e.ErrorCodeOverride @@ -113,7 +113,7 @@ func (e *InvalidTagException) ErrorMessage() string { return *e.Message } func (e *InvalidTagException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTagException" } return *e.ErrorCodeOverride @@ -142,7 +142,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -168,7 +168,7 @@ func (e *PredictorNotMountedException) ErrorMessage() string { return *e.Message } func (e *PredictorNotMountedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PredictorNotMountedException" } return *e.ErrorCodeOverride @@ -196,7 +196,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -221,7 +221,7 @@ func (e *TagLimitExceededException) ErrorMessage() string { return *e.Message } func (e *TagLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagLimitExceededException" } return *e.ErrorCodeOverride diff --git a/service/macie/types/errors.go b/service/macie/types/errors.go index 8867d81a081..7455fb386ef 100644 --- a/service/macie/types/errors.go +++ b/service/macie/types/errors.go @@ -29,7 +29,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *InternalException) ErrorMessage() string { return *e.Message } func (e *InternalException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalException" } return *e.ErrorCodeOverride @@ -87,7 +87,7 @@ func (e *InvalidInputException) ErrorMessage() string { return *e.Message } func (e *InvalidInputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputException" } return *e.ErrorCodeOverride @@ -118,7 +118,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride diff --git a/service/macie2/types/errors.go b/service/macie2/types/errors.go index 906d4c7e9f8..f02ea6f24d4 100644 --- a/service/macie2/types/errors.go +++ b/service/macie2/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *UnprocessableEntityException) ErrorMessage() string { return *e.Message } func (e *UnprocessableEntityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnprocessableEntityException" } return *e.ErrorCodeOverride @@ -216,7 +216,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/managedblockchain/types/errors.go b/service/managedblockchain/types/errors.go index c4d653b060a..df32e0850f7 100644 --- a/service/managedblockchain/types/errors.go +++ b/service/managedblockchain/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -51,7 +51,7 @@ func (e *IllegalActionException) ErrorMessage() string { return *e.Message } func (e *IllegalActionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IllegalActionException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InternalServiceErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServiceErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceErrorException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -159,7 +159,7 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceLimitExceededException" } return *e.ErrorCodeOverride @@ -188,7 +188,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -215,7 +215,7 @@ func (e *ResourceNotReadyException) ErrorMessage() string { return *e.Message } func (e *ResourceNotReadyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotReadyException" } return *e.ErrorCodeOverride @@ -244,7 +244,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -271,7 +271,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride diff --git a/service/marketplacecatalog/types/errors.go b/service/marketplacecatalog/types/errors.go index 6498b10d24b..5427235405d 100644 --- a/service/marketplacecatalog/types/errors.go +++ b/service/marketplacecatalog/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InternalServiceException) ErrorMessage() string { return *e.Message } func (e *InternalServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *ResourceNotSupportedException) ErrorMessage() string { return *e.Message } func (e *ResourceNotSupportedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotSupportedException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -182,7 +182,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -208,7 +208,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/marketplacecommerceanalytics/types/errors.go b/service/marketplacecommerceanalytics/types/errors.go index 01e20970cfe..de356815ec2 100644 --- a/service/marketplacecommerceanalytics/types/errors.go +++ b/service/marketplacecommerceanalytics/types/errors.go @@ -26,7 +26,7 @@ func (e *MarketplaceCommerceAnalyticsException) ErrorMessage() string { return *e.Message } func (e *MarketplaceCommerceAnalyticsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MarketplaceCommerceAnalyticsException" } return *e.ErrorCodeOverride diff --git a/service/marketplaceentitlementservice/types/errors.go b/service/marketplaceentitlementservice/types/errors.go index 14db49b7d8b..983e493f0e7 100644 --- a/service/marketplaceentitlementservice/types/errors.go +++ b/service/marketplaceentitlementservice/types/errors.go @@ -27,7 +27,7 @@ func (e *InternalServiceErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServiceErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceErrorException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride diff --git a/service/marketplacemetering/types/errors.go b/service/marketplacemetering/types/errors.go index 85dd521d135..d8de3d2b188 100644 --- a/service/marketplacemetering/types/errors.go +++ b/service/marketplacemetering/types/errors.go @@ -27,7 +27,7 @@ func (e *CustomerNotEntitledException) ErrorMessage() string { return *e.Message } func (e *CustomerNotEntitledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CustomerNotEntitledException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *DisabledApiException) ErrorMessage() string { return *e.Message } func (e *DisabledApiException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DisabledApiException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *DuplicateRequestException) ErrorMessage() string { return *e.Message } func (e *DuplicateRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateRequestException" } return *e.ErrorCodeOverride @@ -111,7 +111,7 @@ func (e *ExpiredTokenException) ErrorMessage() string { return *e.Message } func (e *ExpiredTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ExpiredTokenException" } return *e.ErrorCodeOverride @@ -138,7 +138,7 @@ func (e *InternalServiceErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServiceErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceErrorException" } return *e.ErrorCodeOverride @@ -164,7 +164,7 @@ func (e *InvalidCustomerIdentifierException) ErrorMessage() string { return *e.Message } func (e *InvalidCustomerIdentifierException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCustomerIdentifierException" } return *e.ErrorCodeOverride @@ -194,7 +194,7 @@ func (e *InvalidEndpointRegionException) ErrorMessage() string { return *e.Message } func (e *InvalidEndpointRegionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidEndpointRegionException" } return *e.ErrorCodeOverride @@ -221,7 +221,7 @@ func (e *InvalidProductCodeException) ErrorMessage() string { return *e.Message } func (e *InvalidProductCodeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidProductCodeException" } return *e.ErrorCodeOverride @@ -247,7 +247,7 @@ func (e *InvalidPublicKeyVersionException) ErrorMessage() string { return *e.Message } func (e *InvalidPublicKeyVersionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPublicKeyVersionException" } return *e.ErrorCodeOverride @@ -275,7 +275,7 @@ func (e *InvalidRegionException) ErrorMessage() string { return *e.Message } func (e *InvalidRegionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRegionException" } return *e.ErrorCodeOverride @@ -301,7 +301,7 @@ func (e *InvalidTagException) ErrorMessage() string { return *e.Message } func (e *InvalidTagException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTagException" } return *e.ErrorCodeOverride @@ -327,7 +327,7 @@ func (e *InvalidTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTokenException" } return *e.ErrorCodeOverride @@ -354,7 +354,7 @@ func (e *InvalidUsageAllocationsException) ErrorMessage() string { return *e.Message } func (e *InvalidUsageAllocationsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidUsageAllocationsException" } return *e.ErrorCodeOverride @@ -381,7 +381,7 @@ func (e *InvalidUsageDimensionException) ErrorMessage() string { return *e.Message } func (e *InvalidUsageDimensionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidUsageDimensionException" } return *e.ErrorCodeOverride @@ -408,7 +408,7 @@ func (e *PlatformNotSupportedException) ErrorMessage() string { return *e.Message } func (e *PlatformNotSupportedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PlatformNotSupportedException" } return *e.ErrorCodeOverride @@ -434,7 +434,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -462,7 +462,7 @@ func (e *TimestampOutOfBoundsException) ErrorMessage() string { return *e.Message } func (e *TimestampOutOfBoundsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TimestampOutOfBoundsException" } return *e.ErrorCodeOverride diff --git a/service/mediaconnect/types/errors.go b/service/mediaconnect/types/errors.go index b680223fcf0..32499a623df 100644 --- a/service/mediaconnect/types/errors.go +++ b/service/mediaconnect/types/errors.go @@ -28,7 +28,7 @@ func (e *AddFlowOutputs420Exception) ErrorMessage() string { return *e.Message } func (e *AddFlowOutputs420Exception) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AddFlowOutputs420Exception" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *CreateFlow420Exception) ErrorMessage() string { return *e.Message } func (e *CreateFlow420Exception) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CreateFlow420Exception" } return *e.ErrorCodeOverride @@ -112,7 +112,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -140,7 +140,7 @@ func (e *GrantFlowEntitlements420Exception) ErrorMessage() string { return *e.Message } func (e *GrantFlowEntitlements420Exception) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GrantFlowEntitlements420Exception" } return *e.ErrorCodeOverride @@ -168,7 +168,7 @@ func (e *InternalServerErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServerErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerErrorException" } return *e.ErrorCodeOverride @@ -196,7 +196,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -224,7 +224,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -252,7 +252,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride diff --git a/service/mediaconvert/types/errors.go b/service/mediaconvert/types/errors.go index 4307a526074..a71f4db94d1 100644 --- a/service/mediaconvert/types/errors.go +++ b/service/mediaconvert/types/errors.go @@ -27,7 +27,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *InternalServerErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServerErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerErrorException" } return *e.ErrorCodeOverride @@ -132,7 +132,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -159,7 +159,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride diff --git a/service/medialive/types/errors.go b/service/medialive/types/errors.go index 87019e62ff3..8f5b83f8a1c 100644 --- a/service/medialive/types/errors.go +++ b/service/medialive/types/errors.go @@ -26,7 +26,7 @@ func (e *BadGatewayException) ErrorMessage() string { return *e.Message } func (e *BadGatewayException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadGatewayException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *GatewayTimeoutException) ErrorMessage() string { return *e.Message } func (e *GatewayTimeoutException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GatewayTimeoutException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *InternalServerErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServerErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerErrorException" } return *e.ErrorCodeOverride @@ -182,7 +182,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -208,7 +208,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -236,7 +236,7 @@ func (e *UnprocessableEntityException) ErrorMessage() string { return *e.Message } func (e *UnprocessableEntityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnprocessableEntityException" } return *e.ErrorCodeOverride diff --git a/service/mediapackage/types/errors.go b/service/mediapackage/types/errors.go index 5c684dd0061..389c488901f 100644 --- a/service/mediapackage/types/errors.go +++ b/service/mediapackage/types/errors.go @@ -26,7 +26,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InternalServerErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServerErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerErrorException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *UnprocessableEntityException) ErrorMessage() string { return *e.Message } func (e *UnprocessableEntityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnprocessableEntityException" } return *e.ErrorCodeOverride diff --git a/service/mediapackagevod/types/errors.go b/service/mediapackagevod/types/errors.go index 5c684dd0061..389c488901f 100644 --- a/service/mediapackagevod/types/errors.go +++ b/service/mediapackagevod/types/errors.go @@ -26,7 +26,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InternalServerErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServerErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerErrorException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *UnprocessableEntityException) ErrorMessage() string { return *e.Message } func (e *UnprocessableEntityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnprocessableEntityException" } return *e.ErrorCodeOverride diff --git a/service/mediastore/types/errors.go b/service/mediastore/types/errors.go index 328e3eb2e98..1fa387b6bf5 100644 --- a/service/mediastore/types/errors.go +++ b/service/mediastore/types/errors.go @@ -27,7 +27,7 @@ func (e *ContainerInUseException) ErrorMessage() string { return *e.Message } func (e *ContainerInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ContainerInUseException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ContainerNotFoundException) ErrorMessage() string { return *e.Message } func (e *ContainerNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ContainerNotFoundException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *CorsPolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *CorsPolicyNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CorsPolicyNotFoundException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *InternalServerError) ErrorMessage() string { return *e.Message } func (e *InternalServerError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerError" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *PolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *PolicyNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PolicyNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/mediastoredata/types/errors.go b/service/mediastoredata/types/errors.go index 0e6b950e26f..581724ef5a3 100644 --- a/service/mediastoredata/types/errors.go +++ b/service/mediastoredata/types/errors.go @@ -26,7 +26,7 @@ func (e *ContainerNotFoundException) ErrorMessage() string { return *e.Message } func (e *ContainerNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ContainerNotFoundException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InternalServerError) ErrorMessage() string { return *e.Message } func (e *InternalServerError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerError" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ObjectNotFoundException) ErrorMessage() string { return *e.Message } func (e *ObjectNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ObjectNotFoundException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *RequestedRangeNotSatisfiableException) ErrorMessage() string { return *e.Message } func (e *RequestedRangeNotSatisfiableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestedRangeNotSatisfiableException" } return *e.ErrorCodeOverride diff --git a/service/mediatailor/types/errors.go b/service/mediatailor/types/errors.go index bde6cb7887e..0ea1eda96d8 100644 --- a/service/mediatailor/types/errors.go +++ b/service/mediatailor/types/errors.go @@ -26,7 +26,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride diff --git a/service/memorydb/types/errors.go b/service/memorydb/types/errors.go index d27b520a965..e9480138e21 100644 --- a/service/memorydb/types/errors.go +++ b/service/memorydb/types/errors.go @@ -25,7 +25,7 @@ func (e *ACLAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ACLAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ACLAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -50,7 +50,7 @@ func (e *ACLNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ACLNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ACLNotFoundFault" } return *e.ErrorCodeOverride @@ -75,7 +75,7 @@ func (e *ACLQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ACLQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ACLQuotaExceededFault" } return *e.ErrorCodeOverride @@ -100,7 +100,7 @@ func (e *APICallRateForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *APICallRateForCustomerExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "APICallRateForCustomerExceededFault" } return *e.ErrorCodeOverride @@ -127,7 +127,7 @@ func (e *ClusterAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ClusterAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -152,7 +152,7 @@ func (e *ClusterNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ClusterNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterNotFoundFault" } return *e.ErrorCodeOverride @@ -177,7 +177,7 @@ func (e *ClusterQuotaForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterQuotaForCustomerExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterQuotaForCustomerExceededFault" } return *e.ErrorCodeOverride @@ -204,7 +204,7 @@ func (e *DefaultUserRequired) ErrorMessage() string { return *e.Message } func (e *DefaultUserRequired) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DefaultUserRequired" } return *e.ErrorCodeOverride @@ -229,7 +229,7 @@ func (e *DuplicateUserNameFault) ErrorMessage() string { return *e.Message } func (e *DuplicateUserNameFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateUserNameFault" } return *e.ErrorCodeOverride @@ -254,7 +254,7 @@ func (e *InsufficientClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientClusterCapacityFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientClusterCapacityFault" } return *e.ErrorCodeOverride @@ -279,7 +279,7 @@ func (e *InvalidACLStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidACLStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidACLStateFault" } return *e.ErrorCodeOverride @@ -304,7 +304,7 @@ func (e *InvalidARNFault) ErrorMessage() string { return *e.Message } func (e *InvalidARNFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidARNFault" } return *e.ErrorCodeOverride @@ -329,7 +329,7 @@ func (e *InvalidClusterStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidClusterStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidClusterStateFault" } return *e.ErrorCodeOverride @@ -354,7 +354,7 @@ func (e *InvalidCredentialsException) ErrorMessage() string { return *e.Message } func (e *InvalidCredentialsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCredentialsException" } return *e.ErrorCodeOverride @@ -379,7 +379,7 @@ func (e *InvalidKMSKeyFault) ErrorMessage() string { return *e.Message } func (e *InvalidKMSKeyFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidKMSKeyFault" } return *e.ErrorCodeOverride @@ -404,7 +404,7 @@ func (e *InvalidNodeStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidNodeStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNodeStateFault" } return *e.ErrorCodeOverride @@ -429,7 +429,7 @@ func (e *InvalidParameterCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterCombinationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterCombinationException" } return *e.ErrorCodeOverride @@ -456,7 +456,7 @@ func (e *InvalidParameterGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidParameterGroupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterGroupStateFault" } return *e.ErrorCodeOverride @@ -481,7 +481,7 @@ func (e *InvalidParameterValueException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterValueException" } return *e.ErrorCodeOverride @@ -506,7 +506,7 @@ func (e *InvalidSnapshotStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidSnapshotStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSnapshotStateFault" } return *e.ErrorCodeOverride @@ -531,7 +531,7 @@ func (e *InvalidSubnet) ErrorMessage() string { return *e.Message } func (e *InvalidSubnet) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSubnet" } return *e.ErrorCodeOverride @@ -556,7 +556,7 @@ func (e *InvalidUserStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidUserStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidUserStateFault" } return *e.ErrorCodeOverride @@ -581,7 +581,7 @@ func (e *InvalidVPCNetworkStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidVPCNetworkStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidVPCNetworkStateFault" } return *e.ErrorCodeOverride @@ -606,7 +606,7 @@ func (e *NodeQuotaForClusterExceededFault) ErrorMessage() string { return *e.Message } func (e *NodeQuotaForClusterExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NodeQuotaForClusterExceededFault" } return *e.ErrorCodeOverride @@ -631,7 +631,7 @@ func (e *NodeQuotaForCustomerExceededFault) ErrorMessage() string { return *e.Message } func (e *NodeQuotaForCustomerExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NodeQuotaForCustomerExceededFault" } return *e.ErrorCodeOverride @@ -656,7 +656,7 @@ func (e *NoOperationFault) ErrorMessage() string { return *e.Message } func (e *NoOperationFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoOperationFault" } return *e.ErrorCodeOverride @@ -681,7 +681,7 @@ func (e *ParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ParameterGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ParameterGroupAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -706,7 +706,7 @@ func (e *ParameterGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ParameterGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ParameterGroupNotFoundFault" } return *e.ErrorCodeOverride @@ -731,7 +731,7 @@ func (e *ParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ParameterGroupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ParameterGroupQuotaExceededFault" } return *e.ErrorCodeOverride @@ -757,7 +757,7 @@ func (e *ReservedNodeAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ReservedNodeAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReservedNodeAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -783,7 +783,7 @@ func (e *ReservedNodeNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ReservedNodeNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReservedNodeNotFoundFault" } return *e.ErrorCodeOverride @@ -809,7 +809,7 @@ func (e *ReservedNodeQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ReservedNodeQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReservedNodeQuotaExceededFault" } return *e.ErrorCodeOverride @@ -835,7 +835,7 @@ func (e *ReservedNodesOfferingNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ReservedNodesOfferingNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReservedNodesOfferingNotFoundFault" } return *e.ErrorCodeOverride @@ -862,7 +862,7 @@ func (e *ServiceLinkedRoleNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ServiceLinkedRoleNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceLinkedRoleNotFoundFault" } return *e.ErrorCodeOverride @@ -887,7 +887,7 @@ func (e *ServiceUpdateNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ServiceUpdateNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUpdateNotFoundFault" } return *e.ErrorCodeOverride @@ -912,7 +912,7 @@ func (e *ShardNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ShardNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ShardNotFoundFault" } return *e.ErrorCodeOverride @@ -937,7 +937,7 @@ func (e *ShardsPerClusterQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ShardsPerClusterQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ShardsPerClusterQuotaExceededFault" } return *e.ErrorCodeOverride @@ -964,7 +964,7 @@ func (e *SnapshotAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *SnapshotAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -989,7 +989,7 @@ func (e *SnapshotNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SnapshotNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotNotFoundFault" } return *e.ErrorCodeOverride @@ -1014,7 +1014,7 @@ func (e *SnapshotQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *SnapshotQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotQuotaExceededFault" } return *e.ErrorCodeOverride @@ -1039,7 +1039,7 @@ func (e *SubnetGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *SubnetGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetGroupAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -1064,7 +1064,7 @@ func (e *SubnetGroupInUseFault) ErrorMessage() string { return *e.Message } func (e *SubnetGroupInUseFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetGroupInUseFault" } return *e.ErrorCodeOverride @@ -1089,7 +1089,7 @@ func (e *SubnetGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SubnetGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetGroupNotFoundFault" } return *e.ErrorCodeOverride @@ -1114,7 +1114,7 @@ func (e *SubnetGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *SubnetGroupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetGroupQuotaExceededFault" } return *e.ErrorCodeOverride @@ -1139,7 +1139,7 @@ func (e *SubnetInUse) ErrorMessage() string { return *e.Message } func (e *SubnetInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetInUse" } return *e.ErrorCodeOverride @@ -1164,7 +1164,7 @@ func (e *SubnetNotAllowedFault) ErrorMessage() string { return *e.Message } func (e *SubnetNotAllowedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetNotAllowedFault" } return *e.ErrorCodeOverride @@ -1189,7 +1189,7 @@ func (e *SubnetQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *SubnetQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetQuotaExceededFault" } return *e.ErrorCodeOverride @@ -1214,7 +1214,7 @@ func (e *TagNotFoundFault) ErrorMessage() string { return *e.Message } func (e *TagNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagNotFoundFault" } return *e.ErrorCodeOverride @@ -1239,7 +1239,7 @@ func (e *TagQuotaPerResourceExceeded) ErrorMessage() string { return *e.Message } func (e *TagQuotaPerResourceExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagQuotaPerResourceExceeded" } return *e.ErrorCodeOverride @@ -1264,7 +1264,7 @@ func (e *TestFailoverNotAvailableFault) ErrorMessage() string { return *e.Message } func (e *TestFailoverNotAvailableFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TestFailoverNotAvailableFault" } return *e.ErrorCodeOverride @@ -1289,7 +1289,7 @@ func (e *UserAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *UserAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UserAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -1314,7 +1314,7 @@ func (e *UserNotFoundFault) ErrorMessage() string { return *e.Message } func (e *UserNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UserNotFoundFault" } return *e.ErrorCodeOverride @@ -1339,7 +1339,7 @@ func (e *UserQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *UserQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UserQuotaExceededFault" } return *e.ErrorCodeOverride diff --git a/service/mgn/types/errors.go b/service/mgn/types/errors.go index fd3bffae221..3eaea7e5876 100644 --- a/service/mgn/types/errors.go +++ b/service/mgn/types/errors.go @@ -28,7 +28,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -60,7 +60,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -89,7 +89,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -119,7 +119,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -152,7 +152,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -182,7 +182,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -210,7 +210,7 @@ func (e *UninitializedAccountException) ErrorMessage() string { return *e.Message } func (e *UninitializedAccountException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UninitializedAccountException" } return *e.ErrorCodeOverride @@ -240,7 +240,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/migrationhub/types/errors.go b/service/migrationhub/types/errors.go index aaa6df2530e..097c7c62822 100644 --- a/service/migrationhub/types/errors.go +++ b/service/migrationhub/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *DryRunOperation) ErrorMessage() string { return *e.Message } func (e *DryRunOperation) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DryRunOperation" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *HomeRegionNotSetException) ErrorMessage() string { return *e.Message } func (e *HomeRegionNotSetException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HomeRegionNotSetException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *InternalServerError) ErrorMessage() string { return *e.Message } func (e *InternalServerError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerError" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *InvalidInputException) ErrorMessage() string { return *e.Message } func (e *InvalidInputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputException" } return *e.ErrorCodeOverride @@ -161,7 +161,7 @@ func (e *PolicyErrorException) ErrorMessage() string { return *e.Message } func (e *PolicyErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PolicyErrorException" } return *e.ErrorCodeOverride @@ -190,7 +190,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -217,7 +217,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -245,7 +245,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -272,7 +272,7 @@ func (e *UnauthorizedOperation) ErrorMessage() string { return *e.Message } func (e *UnauthorizedOperation) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedOperation" } return *e.ErrorCodeOverride diff --git a/service/migrationhubconfig/types/errors.go b/service/migrationhubconfig/types/errors.go index 0e45ea8891d..5daf957cf68 100644 --- a/service/migrationhubconfig/types/errors.go +++ b/service/migrationhubconfig/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *DryRunOperation) ErrorMessage() string { return *e.Message } func (e *DryRunOperation) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DryRunOperation" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *InternalServerError) ErrorMessage() string { return *e.Message } func (e *InternalServerError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerError" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *InvalidInputException) ErrorMessage() string { return *e.Message } func (e *InvalidInputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputException" } return *e.ErrorCodeOverride @@ -134,7 +134,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride diff --git a/service/migrationhuborchestrator/types/errors.go b/service/migrationhuborchestrator/types/errors.go index 83316ffc6ec..054dfc5e52a 100644 --- a/service/migrationhuborchestrator/types/errors.go +++ b/service/migrationhuborchestrator/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/migrationhubrefactorspaces/types/errors.go b/service/migrationhubrefactorspaces/types/errors.go index 4fcdee2d767..1bdb31133b6 100644 --- a/service/migrationhubrefactorspaces/types/errors.go +++ b/service/migrationhubrefactorspaces/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *InvalidResourcePolicyException) ErrorMessage() string { return *e.Message } func (e *InvalidResourcePolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidResourcePolicyException" } return *e.ErrorCodeOverride @@ -136,7 +136,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -167,7 +167,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -197,7 +197,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -223,7 +223,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/migrationhubstrategy/types/errors.go b/service/migrationhubstrategy/types/errors.go index b6c928fb346..df7dfde020f 100644 --- a/service/migrationhubstrategy/types/errors.go +++ b/service/migrationhubstrategy/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *DependencyException) ErrorMessage() string { return *e.Message } func (e *DependencyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DependencyException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -132,7 +132,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -158,7 +158,7 @@ func (e *ServiceLinkedRoleLockClientException) ErrorMessage() string { return *e.Message } func (e *ServiceLinkedRoleLockClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceLinkedRoleLockClientException" } return *e.ErrorCodeOverride @@ -187,7 +187,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -213,7 +213,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -239,7 +239,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/mobile/types/errors.go b/service/mobile/types/errors.go index 2403671fd0a..39b3d3b458a 100644 --- a/service/mobile/types/errors.go +++ b/service/mobile/types/errors.go @@ -26,7 +26,7 @@ func (e *AccountActionRequiredException) ErrorMessage() string { return *e.Message } func (e *AccountActionRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccountActionRequiredException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *InternalFailureException) ErrorMessage() string { return *e.Message } func (e *InternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailureException" } return *e.ErrorCodeOverride @@ -111,7 +111,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -137,7 +137,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -166,7 +166,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -195,7 +195,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -221,7 +221,7 @@ func (e *UnauthorizedException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedException" } return *e.ErrorCodeOverride diff --git a/service/mq/types/errors.go b/service/mq/types/errors.go index f325774c7f5..7e484ff6c08 100644 --- a/service/mq/types/errors.go +++ b/service/mq/types/errors.go @@ -28,7 +28,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -112,7 +112,7 @@ func (e *InternalServerErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServerErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerErrorException" } return *e.ErrorCodeOverride @@ -140,7 +140,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -168,7 +168,7 @@ func (e *UnauthorizedException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedException" } return *e.ErrorCodeOverride diff --git a/service/mturk/types/errors.go b/service/mturk/types/errors.go index 379106c7526..8ea034cfed3 100644 --- a/service/mturk/types/errors.go +++ b/service/mturk/types/errors.go @@ -28,7 +28,7 @@ func (e *RequestError) ErrorMessage() string { return *e.Message } func (e *RequestError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestError" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *ServiceFault) ErrorMessage() string { return *e.Message } func (e *ServiceFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceFault" } return *e.ErrorCodeOverride diff --git a/service/mwaa/types/errors.go b/service/mwaa/types/errors.go index 454f208b94c..83a98a0cfe4 100644 --- a/service/mwaa/types/errors.go +++ b/service/mwaa/types/errors.go @@ -28,7 +28,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/neptune/types/errors.go b/service/neptune/types/errors.go index 2992e8fc350..d8991906caf 100644 --- a/service/neptune/types/errors.go +++ b/service/neptune/types/errors.go @@ -28,7 +28,7 @@ func (e *AuthorizationNotFoundFault) ErrorMessage() string { return *e.Message } func (e *AuthorizationNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AuthorizationNotFound" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *CertificateNotFoundFault) ErrorMessage() string { return *e.Message } func (e *CertificateNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CertificateNotFound" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *DBClusterAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBClusterAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *DBClusterEndpointAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBClusterEndpointAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterEndpointAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -134,7 +134,7 @@ func (e *DBClusterEndpointNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterEndpointNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterEndpointNotFoundFault" } return *e.ErrorCodeOverride @@ -160,7 +160,7 @@ func (e *DBClusterEndpointQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBClusterEndpointQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterEndpointQuotaExceededFault" } return *e.ErrorCodeOverride @@ -188,7 +188,7 @@ func (e *DBClusterNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterNotFoundFault" } return *e.ErrorCodeOverride @@ -215,7 +215,7 @@ func (e *DBClusterParameterGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterParameterGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterParameterGroupNotFound" } return *e.ErrorCodeOverride @@ -244,7 +244,7 @@ func (e *DBClusterQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBClusterQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterQuotaExceededFault" } return *e.ErrorCodeOverride @@ -271,7 +271,7 @@ func (e *DBClusterRoleAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBClusterRoleAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterRoleAlreadyExists" } return *e.ErrorCodeOverride @@ -298,7 +298,7 @@ func (e *DBClusterRoleNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterRoleNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterRoleNotFound" } return *e.ErrorCodeOverride @@ -325,7 +325,7 @@ func (e *DBClusterRoleQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBClusterRoleQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterRoleQuotaExceeded" } return *e.ErrorCodeOverride @@ -351,7 +351,7 @@ func (e *DBClusterSnapshotAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBClusterSnapshotAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterSnapshotAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -379,7 +379,7 @@ func (e *DBClusterSnapshotNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterSnapshotNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterSnapshotNotFoundFault" } return *e.ErrorCodeOverride @@ -405,7 +405,7 @@ func (e *DBInstanceAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBInstanceAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBInstanceAlreadyExists" } return *e.ErrorCodeOverride @@ -431,7 +431,7 @@ func (e *DBInstanceNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBInstanceNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBInstanceNotFound" } return *e.ErrorCodeOverride @@ -457,7 +457,7 @@ func (e *DBParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBParameterGroupAlreadyExists" } return *e.ErrorCodeOverride @@ -485,7 +485,7 @@ func (e *DBParameterGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBParameterGroupNotFound" } return *e.ErrorCodeOverride @@ -512,7 +512,7 @@ func (e *DBParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBParameterGroupQuotaExceeded" } return *e.ErrorCodeOverride @@ -540,7 +540,7 @@ func (e *DBSecurityGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBSecurityGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSecurityGroupNotFound" } return *e.ErrorCodeOverride @@ -566,7 +566,7 @@ func (e *DBSnapshotAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBSnapshotAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSnapshotAlreadyExists" } return *e.ErrorCodeOverride @@ -592,7 +592,7 @@ func (e *DBSnapshotNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBSnapshotNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSnapshotNotFound" } return *e.ErrorCodeOverride @@ -618,7 +618,7 @@ func (e *DBSubnetGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBSubnetGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSubnetGroupAlreadyExists" } return *e.ErrorCodeOverride @@ -645,7 +645,7 @@ func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorMessage() string { return *e.Message } func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSubnetGroupDoesNotCoverEnoughAZs" } return *e.ErrorCodeOverride @@ -673,7 +673,7 @@ func (e *DBSubnetGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBSubnetGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSubnetGroupNotFoundFault" } return *e.ErrorCodeOverride @@ -699,7 +699,7 @@ func (e *DBSubnetGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBSubnetGroupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSubnetGroupQuotaExceeded" } return *e.ErrorCodeOverride @@ -726,7 +726,7 @@ func (e *DBSubnetQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBSubnetQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSubnetQuotaExceededFault" } return *e.ErrorCodeOverride @@ -753,7 +753,7 @@ func (e *DBUpgradeDependencyFailureFault) ErrorMessage() string { return *e.Message } func (e *DBUpgradeDependencyFailureFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBUpgradeDependencyFailure" } return *e.ErrorCodeOverride @@ -779,7 +779,7 @@ func (e *DomainNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DomainNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DomainNotFoundFault" } return *e.ErrorCodeOverride @@ -805,7 +805,7 @@ func (e *EventSubscriptionQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *EventSubscriptionQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EventSubscriptionQuotaExceeded" } return *e.ErrorCodeOverride @@ -834,7 +834,7 @@ func (e *GlobalClusterAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GlobalClusterAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -861,7 +861,7 @@ func (e *GlobalClusterNotFoundFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GlobalClusterNotFoundFault" } return *e.ErrorCodeOverride @@ -888,7 +888,7 @@ func (e *GlobalClusterQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GlobalClusterQuotaExceededFault" } return *e.ErrorCodeOverride @@ -914,7 +914,7 @@ func (e *InstanceQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *InstanceQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InstanceQuotaExceeded" } return *e.ErrorCodeOverride @@ -940,7 +940,7 @@ func (e *InsufficientDBClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientDBClusterCapacityFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientDBClusterCapacityFault" } return *e.ErrorCodeOverride @@ -968,7 +968,7 @@ func (e *InsufficientDBInstanceCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientDBInstanceCapacityFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientDBInstanceCapacity" } return *e.ErrorCodeOverride @@ -998,7 +998,7 @@ func (e *InsufficientStorageClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientStorageClusterCapacityFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientStorageClusterCapacity" } return *e.ErrorCodeOverride @@ -1027,7 +1027,7 @@ func (e *InvalidDBClusterEndpointStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBClusterEndpointStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBClusterEndpointStateFault" } return *e.ErrorCodeOverride @@ -1055,7 +1055,7 @@ func (e *InvalidDBClusterSnapshotStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBClusterSnapshotStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBClusterSnapshotStateFault" } return *e.ErrorCodeOverride @@ -1083,7 +1083,7 @@ func (e *InvalidDBClusterStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBClusterStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBClusterStateFault" } return *e.ErrorCodeOverride @@ -1109,7 +1109,7 @@ func (e *InvalidDBInstanceStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBInstanceStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBInstanceState" } return *e.ErrorCodeOverride @@ -1137,7 +1137,7 @@ func (e *InvalidDBParameterGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBParameterGroupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBParameterGroupState" } return *e.ErrorCodeOverride @@ -1163,7 +1163,7 @@ func (e *InvalidDBSecurityGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBSecurityGroupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBSecurityGroupState" } return *e.ErrorCodeOverride @@ -1189,7 +1189,7 @@ func (e *InvalidDBSnapshotStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBSnapshotStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBSnapshotState" } return *e.ErrorCodeOverride @@ -1215,7 +1215,7 @@ func (e *InvalidDBSubnetGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBSubnetGroupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBSubnetGroupStateFault" } return *e.ErrorCodeOverride @@ -1241,7 +1241,7 @@ func (e *InvalidDBSubnetStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBSubnetStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBSubnetStateFault" } return *e.ErrorCodeOverride @@ -1267,7 +1267,7 @@ func (e *InvalidEventSubscriptionStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidEventSubscriptionStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidEventSubscriptionState" } return *e.ErrorCodeOverride @@ -1296,7 +1296,7 @@ func (e *InvalidGlobalClusterStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidGlobalClusterStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidGlobalClusterStateFault" } return *e.ErrorCodeOverride @@ -1322,7 +1322,7 @@ func (e *InvalidRestoreFault) ErrorMessage() string { return *e.Message } func (e *InvalidRestoreFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRestoreFault" } return *e.ErrorCodeOverride @@ -1349,7 +1349,7 @@ func (e *InvalidSubnet) ErrorMessage() string { return *e.Message } func (e *InvalidSubnet) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSubnet" } return *e.ErrorCodeOverride @@ -1376,7 +1376,7 @@ func (e *InvalidVPCNetworkStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidVPCNetworkStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidVPCNetworkStateFault" } return *e.ErrorCodeOverride @@ -1402,7 +1402,7 @@ func (e *KMSKeyNotAccessibleFault) ErrorMessage() string { return *e.Message } func (e *KMSKeyNotAccessibleFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSKeyNotAccessibleFault" } return *e.ErrorCodeOverride @@ -1428,7 +1428,7 @@ func (e *OptionGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *OptionGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OptionGroupNotFoundFault" } return *e.ErrorCodeOverride @@ -1454,7 +1454,7 @@ func (e *ProvisionedIopsNotAvailableInAZFault) ErrorMessage() string { return *e.Message } func (e *ProvisionedIopsNotAvailableInAZFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ProvisionedIopsNotAvailableInAZFault" } return *e.ErrorCodeOverride @@ -1482,7 +1482,7 @@ func (e *ResourceNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundFault" } return *e.ErrorCodeOverride @@ -1509,7 +1509,7 @@ func (e *SharedSnapshotQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *SharedSnapshotQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SharedSnapshotQuotaExceeded" } return *e.ErrorCodeOverride @@ -1535,7 +1535,7 @@ func (e *SnapshotQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *SnapshotQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotQuotaExceeded" } return *e.ErrorCodeOverride @@ -1561,7 +1561,7 @@ func (e *SNSInvalidTopicFault) ErrorMessage() string { return *e.Message } func (e *SNSInvalidTopicFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SNSInvalidTopic" } return *e.ErrorCodeOverride @@ -1587,7 +1587,7 @@ func (e *SNSNoAuthorizationFault) ErrorMessage() string { return *e.Message } func (e *SNSNoAuthorizationFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SNSNoAuthorization" } return *e.ErrorCodeOverride @@ -1613,7 +1613,7 @@ func (e *SNSTopicArnNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SNSTopicArnNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SNSTopicArnNotFound" } return *e.ErrorCodeOverride @@ -1639,7 +1639,7 @@ func (e *SourceNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SourceNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SourceNotFound" } return *e.ErrorCodeOverride @@ -1666,7 +1666,7 @@ func (e *StorageQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *StorageQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StorageQuotaExceeded" } return *e.ErrorCodeOverride @@ -1692,7 +1692,7 @@ func (e *StorageTypeNotSupportedFault) ErrorMessage() string { return *e.Message } func (e *StorageTypeNotSupportedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StorageTypeNotSupported" } return *e.ErrorCodeOverride @@ -1718,7 +1718,7 @@ func (e *SubnetAlreadyInUse) ErrorMessage() string { return *e.Message } func (e *SubnetAlreadyInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetAlreadyInUse" } return *e.ErrorCodeOverride @@ -1744,7 +1744,7 @@ func (e *SubscriptionAlreadyExistFault) ErrorMessage() string { return *e.Message } func (e *SubscriptionAlreadyExistFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubscriptionAlreadyExist" } return *e.ErrorCodeOverride @@ -1770,7 +1770,7 @@ func (e *SubscriptionCategoryNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SubscriptionCategoryNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubscriptionCategoryNotFound" } return *e.ErrorCodeOverride @@ -1796,7 +1796,7 @@ func (e *SubscriptionNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SubscriptionNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubscriptionNotFound" } return *e.ErrorCodeOverride diff --git a/service/networkfirewall/types/errors.go b/service/networkfirewall/types/errors.go index ed77d59d39e..fd63816169d 100644 --- a/service/networkfirewall/types/errors.go +++ b/service/networkfirewall/types/errors.go @@ -27,7 +27,7 @@ func (e *InsufficientCapacityException) ErrorMessage() string { return *e.Message } func (e *InsufficientCapacityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientCapacityException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *InternalServerError) ErrorMessage() string { return *e.Message } func (e *InternalServerError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerError" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *InvalidOperationException) ErrorMessage() string { return *e.Message } func (e *InvalidOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOperationException" } return *e.ErrorCodeOverride @@ -117,7 +117,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -143,7 +143,7 @@ func (e *InvalidResourcePolicyException) ErrorMessage() string { return *e.Message } func (e *InvalidResourcePolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidResourcePolicyException" } return *e.ErrorCodeOverride @@ -169,7 +169,7 @@ func (e *InvalidTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTokenException" } return *e.ErrorCodeOverride @@ -195,7 +195,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -221,7 +221,7 @@ func (e *LogDestinationPermissionException) ErrorMessage() string { return *e.Message } func (e *LogDestinationPermissionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LogDestinationPermissionException" } return *e.ErrorCodeOverride @@ -247,7 +247,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -273,7 +273,7 @@ func (e *ResourceOwnerCheckException) ErrorMessage() string { return *e.Message } func (e *ResourceOwnerCheckException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceOwnerCheckException" } return *e.ErrorCodeOverride @@ -299,7 +299,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -325,7 +325,7 @@ func (e *UnsupportedOperationException) ErrorMessage() string { return *e.Message } func (e *UnsupportedOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedOperationException" } return *e.ErrorCodeOverride diff --git a/service/networkmanager/types/errors.go b/service/networkmanager/types/errors.go index 554d902b6b4..3c4350a5b2b 100644 --- a/service/networkmanager/types/errors.go +++ b/service/networkmanager/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *CoreNetworkPolicyException) ErrorMessage() string { return *e.Message } func (e *CoreNetworkPolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CoreNetworkPolicyException" } return *e.ErrorCodeOverride @@ -112,7 +112,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -142,7 +142,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -173,7 +173,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -201,7 +201,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -230,7 +230,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/nimble/types/errors.go b/service/nimble/types/errors.go index 7aba3cd7776..f01156bdf45 100644 --- a/service/nimble/types/errors.go +++ b/service/nimble/types/errors.go @@ -30,7 +30,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -59,7 +59,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -88,7 +88,7 @@ func (e *InternalServerErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServerErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerErrorException" } return *e.ErrorCodeOverride @@ -117,7 +117,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -148,7 +148,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -177,7 +177,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -206,7 +206,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/oam/types/errors.go b/service/oam/types/errors.go index 3a878cd5134..b1b7c841d94 100644 --- a/service/oam/types/errors.go +++ b/service/oam/types/errors.go @@ -28,7 +28,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *InternalServiceFault) ErrorMessage() string { return *e.Message } func (e *InternalServiceFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceFault" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -112,7 +112,7 @@ func (e *MissingRequiredParameterException) ErrorMessage() string { return *e.Message } func (e *MissingRequiredParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MissingRequiredParameterException" } return *e.ErrorCodeOverride @@ -140,7 +140,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -168,7 +168,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -194,7 +194,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -220,7 +220,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/omics/types/errors.go b/service/omics/types/errors.go index 33ce75568cc..23c7c4803b6 100644 --- a/service/omics/types/errors.go +++ b/service/omics/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *RangeNotSatisfiableException) ErrorMessage() string { return *e.Message } func (e *RangeNotSatisfiableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RangeNotSatisfiableException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *RequestTimeoutException) ErrorMessage() string { return *e.Message } func (e *RequestTimeoutException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestTimeoutException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -182,7 +182,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -208,7 +208,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -234,7 +234,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/opensearch/types/errors.go b/service/opensearch/types/errors.go index 9f8449ac128..dd7868355e7 100644 --- a/service/opensearch/types/errors.go +++ b/service/opensearch/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *BaseException) ErrorMessage() string { return *e.Message } func (e *BaseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BaseException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *DisabledOperationException) ErrorMessage() string { return *e.Message } func (e *DisabledOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DisabledOperationException" } return *e.ErrorCodeOverride @@ -132,7 +132,7 @@ func (e *InternalException) ErrorMessage() string { return *e.Message } func (e *InternalException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalException" } return *e.ErrorCodeOverride @@ -159,7 +159,7 @@ func (e *InvalidPaginationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPaginationTokenException" } return *e.ErrorCodeOverride @@ -186,7 +186,7 @@ func (e *InvalidTypeException) ErrorMessage() string { return *e.Message } func (e *InvalidTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTypeException" } return *e.ErrorCodeOverride @@ -213,7 +213,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -239,7 +239,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -265,7 +265,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -291,7 +291,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/opensearchserverless/types/errors.go b/service/opensearchserverless/types/errors.go index 943c94f3028..a37f72cd5c7 100644 --- a/service/opensearchserverless/types/errors.go +++ b/service/opensearchserverless/types/errors.go @@ -28,7 +28,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/opsworks/types/errors.go b/service/opsworks/types/errors.go index 790918c7155..4e288235643 100644 --- a/service/opsworks/types/errors.go +++ b/service/opsworks/types/errors.go @@ -26,7 +26,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/opsworkscm/types/errors.go b/service/opsworkscm/types/errors.go index b38810ff7f4..607d90ec4d4 100644 --- a/service/opsworkscm/types/errors.go +++ b/service/opsworkscm/types/errors.go @@ -26,7 +26,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *InvalidStateException) ErrorMessage() string { return *e.Message } func (e *InvalidStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidStateException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/organizations/types/errors.go b/service/organizations/types/errors.go index 4343157216b..cac2aac4a74 100644 --- a/service/organizations/types/errors.go +++ b/service/organizations/types/errors.go @@ -30,7 +30,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -61,7 +61,7 @@ func (e *AccessDeniedForDependencyException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedForDependencyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedForDependencyException" } return *e.ErrorCodeOverride @@ -89,7 +89,7 @@ func (e *AccountAlreadyClosedException) ErrorMessage() string { return *e.Message } func (e *AccountAlreadyClosedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccountAlreadyClosedException" } return *e.ErrorCodeOverride @@ -116,7 +116,7 @@ func (e *AccountAlreadyRegisteredException) ErrorMessage() string { return *e.Message } func (e *AccountAlreadyRegisteredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccountAlreadyRegisteredException" } return *e.ErrorCodeOverride @@ -144,7 +144,7 @@ func (e *AccountNotFoundException) ErrorMessage() string { return *e.Message } func (e *AccountNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccountNotFoundException" } return *e.ErrorCodeOverride @@ -171,7 +171,7 @@ func (e *AccountNotRegisteredException) ErrorMessage() string { return *e.Message } func (e *AccountNotRegisteredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccountNotRegisteredException" } return *e.ErrorCodeOverride @@ -201,7 +201,7 @@ func (e *AccountOwnerNotVerifiedException) ErrorMessage() string { return *e.Message } func (e *AccountOwnerNotVerifiedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccountOwnerNotVerifiedException" } return *e.ErrorCodeOverride @@ -228,7 +228,7 @@ func (e *AlreadyInOrganizationException) ErrorMessage() string { return *e.Message } func (e *AlreadyInOrganizationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AlreadyInOrganizationException" } return *e.ErrorCodeOverride @@ -255,7 +255,7 @@ func (e *AWSOrganizationsNotInUseException) ErrorMessage() string { return *e.Message } func (e *AWSOrganizationsNotInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AWSOrganizationsNotInUseException" } return *e.ErrorCodeOverride @@ -282,7 +282,7 @@ func (e *ChildNotFoundException) ErrorMessage() string { return *e.Message } func (e *ChildNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ChildNotFoundException" } return *e.ErrorCodeOverride @@ -309,7 +309,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -336,7 +336,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -537,7 +537,7 @@ func (e *ConstraintViolationException) ErrorMessage() string { return *e.Message } func (e *ConstraintViolationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConstraintViolationException" } return *e.ErrorCodeOverride @@ -564,7 +564,7 @@ func (e *CreateAccountStatusNotFoundException) ErrorMessage() string { return *e.Message } func (e *CreateAccountStatusNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CreateAccountStatusNotFoundException" } return *e.ErrorCodeOverride @@ -593,7 +593,7 @@ func (e *DestinationParentNotFoundException) ErrorMessage() string { return *e.Message } func (e *DestinationParentNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DestinationParentNotFoundException" } return *e.ErrorCodeOverride @@ -621,7 +621,7 @@ func (e *DuplicateAccountException) ErrorMessage() string { return *e.Message } func (e *DuplicateAccountException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateAccountException" } return *e.ErrorCodeOverride @@ -651,7 +651,7 @@ func (e *DuplicateHandshakeException) ErrorMessage() string { return *e.Message } func (e *DuplicateHandshakeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateHandshakeException" } return *e.ErrorCodeOverride @@ -677,7 +677,7 @@ func (e *DuplicateOrganizationalUnitException) ErrorMessage() string { return *e.Message } func (e *DuplicateOrganizationalUnitException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateOrganizationalUnitException" } return *e.ErrorCodeOverride @@ -705,7 +705,7 @@ func (e *DuplicatePolicyAttachmentException) ErrorMessage() string { return *e.Message } func (e *DuplicatePolicyAttachmentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicatePolicyAttachmentException" } return *e.ErrorCodeOverride @@ -733,7 +733,7 @@ func (e *DuplicatePolicyException) ErrorMessage() string { return *e.Message } func (e *DuplicatePolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicatePolicyException" } return *e.ErrorCodeOverride @@ -762,7 +762,7 @@ func (e *EffectivePolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *EffectivePolicyNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EffectivePolicyNotFoundException" } return *e.ErrorCodeOverride @@ -791,7 +791,7 @@ func (e *FinalizingOrganizationException) ErrorMessage() string { return *e.Message } func (e *FinalizingOrganizationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FinalizingOrganizationException" } return *e.ErrorCodeOverride @@ -818,7 +818,7 @@ func (e *HandshakeAlreadyInStateException) ErrorMessage() string { return *e.Message } func (e *HandshakeAlreadyInStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HandshakeAlreadyInStateException" } return *e.ErrorCodeOverride @@ -891,7 +891,7 @@ func (e *HandshakeConstraintViolationException) ErrorMessage() string { return *e.Message } func (e *HandshakeConstraintViolationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HandshakeConstraintViolationException" } return *e.ErrorCodeOverride @@ -919,7 +919,7 @@ func (e *HandshakeNotFoundException) ErrorMessage() string { return *e.Message } func (e *HandshakeNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HandshakeNotFoundException" } return *e.ErrorCodeOverride @@ -947,7 +947,7 @@ func (e *InvalidHandshakeTransitionException) ErrorMessage() string { return *e.Message } func (e *InvalidHandshakeTransitionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidHandshakeTransitionException" } return *e.ErrorCodeOverride @@ -1060,7 +1060,7 @@ func (e *InvalidInputException) ErrorMessage() string { return *e.Message } func (e *InvalidInputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputException" } return *e.ErrorCodeOverride @@ -1090,7 +1090,7 @@ func (e *MalformedPolicyDocumentException) ErrorMessage() string { return *e.Message } func (e *MalformedPolicyDocumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MalformedPolicyDocumentException" } return *e.ErrorCodeOverride @@ -1118,7 +1118,7 @@ func (e *MasterCannotLeaveOrganizationException) ErrorMessage() string { return *e.Message } func (e *MasterCannotLeaveOrganizationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MasterCannotLeaveOrganizationException" } return *e.ErrorCodeOverride @@ -1147,7 +1147,7 @@ func (e *OrganizationalUnitNotEmptyException) ErrorMessage() string { return *e.Message } func (e *OrganizationalUnitNotEmptyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OrganizationalUnitNotEmptyException" } return *e.ErrorCodeOverride @@ -1175,7 +1175,7 @@ func (e *OrganizationalUnitNotFoundException) ErrorMessage() string { return *e.Message } func (e *OrganizationalUnitNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OrganizationalUnitNotFoundException" } return *e.ErrorCodeOverride @@ -1205,7 +1205,7 @@ func (e *OrganizationNotEmptyException) ErrorMessage() string { return *e.Message } func (e *OrganizationNotEmptyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OrganizationNotEmptyException" } return *e.ErrorCodeOverride @@ -1231,7 +1231,7 @@ func (e *ParentNotFoundException) ErrorMessage() string { return *e.Message } func (e *ParentNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ParentNotFoundException" } return *e.ErrorCodeOverride @@ -1258,7 +1258,7 @@ func (e *PolicyChangesInProgressException) ErrorMessage() string { return *e.Message } func (e *PolicyChangesInProgressException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PolicyChangesInProgressException" } return *e.ErrorCodeOverride @@ -1285,7 +1285,7 @@ func (e *PolicyInUseException) ErrorMessage() string { return *e.Message } func (e *PolicyInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PolicyInUseException" } return *e.ErrorCodeOverride @@ -1311,7 +1311,7 @@ func (e *PolicyNotAttachedException) ErrorMessage() string { return *e.Message } func (e *PolicyNotAttachedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PolicyNotAttachedException" } return *e.ErrorCodeOverride @@ -1337,7 +1337,7 @@ func (e *PolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *PolicyNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PolicyNotFoundException" } return *e.ErrorCodeOverride @@ -1363,7 +1363,7 @@ func (e *PolicyTypeAlreadyEnabledException) ErrorMessage() string { return *e.Message } func (e *PolicyTypeAlreadyEnabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PolicyTypeAlreadyEnabledException" } return *e.ErrorCodeOverride @@ -1394,7 +1394,7 @@ func (e *PolicyTypeNotAvailableForOrganizationException) ErrorMessage() string { return *e.Message } func (e *PolicyTypeNotAvailableForOrganizationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PolicyTypeNotAvailableForOrganizationException" } return *e.ErrorCodeOverride @@ -1427,7 +1427,7 @@ func (e *PolicyTypeNotEnabledException) ErrorMessage() string { return *e.Message } func (e *PolicyTypeNotEnabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PolicyTypeNotEnabledException" } return *e.ErrorCodeOverride @@ -1453,7 +1453,7 @@ func (e *ResourcePolicyNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourcePolicyNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourcePolicyNotFoundException" } return *e.ErrorCodeOverride @@ -1479,7 +1479,7 @@ func (e *RootNotFoundException) ErrorMessage() string { return *e.Message } func (e *RootNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RootNotFoundException" } return *e.ErrorCodeOverride @@ -1506,7 +1506,7 @@ func (e *ServiceException) ErrorMessage() string { return *e.Message } func (e *ServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceException" } return *e.ErrorCodeOverride @@ -1532,7 +1532,7 @@ func (e *SourceParentNotFoundException) ErrorMessage() string { return *e.Message } func (e *SourceParentNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SourceParentNotFoundException" } return *e.ErrorCodeOverride @@ -1559,7 +1559,7 @@ func (e *TargetNotFoundException) ErrorMessage() string { return *e.Message } func (e *TargetNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TargetNotFoundException" } return *e.ErrorCodeOverride @@ -1591,7 +1591,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -1617,7 +1617,7 @@ func (e *UnsupportedAPIEndpointException) ErrorMessage() string { return *e.Message } func (e *UnsupportedAPIEndpointException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedAPIEndpointException" } return *e.ErrorCodeOverride diff --git a/service/outposts/types/errors.go b/service/outposts/types/errors.go index 2d6a72a42ce..1f7a6a97624 100644 --- a/service/outposts/types/errors.go +++ b/service/outposts/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -159,7 +159,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/panorama/types/errors.go b/service/panorama/types/errors.go index fe90140bbd2..ebb603cca72 100644 --- a/service/panorama/types/errors.go +++ b/service/panorama/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -85,7 +85,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -114,7 +114,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -145,7 +145,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -176,7 +176,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/personalize/types/errors.go b/service/personalize/types/errors.go index c1af84c17f1..a06a7cce11a 100644 --- a/service/personalize/types/errors.go +++ b/service/personalize/types/errors.go @@ -26,7 +26,7 @@ func (e *InvalidInputException) ErrorMessage() string { return *e.Message } func (e *InvalidInputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -183,7 +183,7 @@ func (e *TooManyTagKeysException) ErrorMessage() string { return *e.Message } func (e *TooManyTagKeysException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagKeysException" } return *e.ErrorCodeOverride @@ -209,7 +209,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride diff --git a/service/personalizeevents/types/errors.go b/service/personalizeevents/types/errors.go index b6ab96a8653..c498c42d729 100644 --- a/service/personalizeevents/types/errors.go +++ b/service/personalizeevents/types/errors.go @@ -26,7 +26,7 @@ func (e *InvalidInputException) ErrorMessage() string { return *e.Message } func (e *InvalidInputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/personalizeruntime/types/errors.go b/service/personalizeruntime/types/errors.go index 58031bd68aa..c444f7f337e 100644 --- a/service/personalizeruntime/types/errors.go +++ b/service/personalizeruntime/types/errors.go @@ -26,7 +26,7 @@ func (e *InvalidInputException) ErrorMessage() string { return *e.Message } func (e *InvalidInputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/pi/types/errors.go b/service/pi/types/errors.go index 3936ccaa747..145abdd77f4 100644 --- a/service/pi/types/errors.go +++ b/service/pi/types/errors.go @@ -26,7 +26,7 @@ func (e *InternalServiceError) ErrorMessage() string { return *e.Message } func (e *InternalServiceError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceError" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InvalidArgumentException) ErrorMessage() string { return *e.Message } func (e *InvalidArgumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArgumentException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *NotAuthorizedException) ErrorMessage() string { return *e.Message } func (e *NotAuthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotAuthorizedException" } return *e.ErrorCodeOverride diff --git a/service/pinpoint/types/errors.go b/service/pinpoint/types/errors.go index 0110dedfc75..4a97d52581f 100644 --- a/service/pinpoint/types/errors.go +++ b/service/pinpoint/types/errors.go @@ -28,7 +28,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -112,7 +112,7 @@ func (e *InternalServerErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServerErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerErrorException" } return *e.ErrorCodeOverride @@ -140,7 +140,7 @@ func (e *MethodNotAllowedException) ErrorMessage() string { return *e.Message } func (e *MethodNotAllowedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MethodNotAllowedException" } return *e.ErrorCodeOverride @@ -168,7 +168,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -196,7 +196,7 @@ func (e *PayloadTooLargeException) ErrorMessage() string { return *e.Message } func (e *PayloadTooLargeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PayloadTooLargeException" } return *e.ErrorCodeOverride @@ -224,7 +224,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride diff --git a/service/pinpointemail/types/errors.go b/service/pinpointemail/types/errors.go index 3be3fa92861..513f30138e7 100644 --- a/service/pinpointemail/types/errors.go +++ b/service/pinpointemail/types/errors.go @@ -27,7 +27,7 @@ func (e *AccountSuspendedException) ErrorMessage() string { return *e.Message } func (e *AccountSuspendedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccountSuspendedException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *AlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *AlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AlreadyExistsException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *MailFromDomainNotVerifiedException) ErrorMessage() string { return *e.Message } func (e *MailFromDomainNotVerifiedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MailFromDomainNotVerifiedException" } return *e.ErrorCodeOverride @@ -185,7 +185,7 @@ func (e *MessageRejected) ErrorMessage() string { return *e.Message } func (e *MessageRejected) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MessageRejected" } return *e.ErrorCodeOverride @@ -211,7 +211,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -238,7 +238,7 @@ func (e *SendingPausedException) ErrorMessage() string { return *e.Message } func (e *SendingPausedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SendingPausedException" } return *e.ErrorCodeOverride @@ -264,7 +264,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride diff --git a/service/pinpointsmsvoice/types/errors.go b/service/pinpointsmsvoice/types/errors.go index 832c1051ad5..5ea3196fea4 100644 --- a/service/pinpointsmsvoice/types/errors.go +++ b/service/pinpointsmsvoice/types/errors.go @@ -26,7 +26,7 @@ func (e *AlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *AlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AlreadyExistsException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *InternalServiceErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServiceErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceErrorException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -158,7 +158,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride diff --git a/service/pinpointsmsvoicev2/types/errors.go b/service/pinpointsmsvoicev2/types/errors.go index 3b0305cd900..8d997a2a1ea 100644 --- a/service/pinpointsmsvoicev2/types/errors.go +++ b/service/pinpointsmsvoicev2/types/errors.go @@ -29,7 +29,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -62,7 +62,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -91,7 +91,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -120,7 +120,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -148,7 +148,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -175,7 +175,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -204,7 +204,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/pipes/types/errors.go b/service/pipes/types/errors.go index cefcad660e1..bab77b9e291 100644 --- a/service/pipes/types/errors.go +++ b/service/pipes/types/errors.go @@ -29,7 +29,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *InternalException) ErrorMessage() string { return *e.Message } func (e *InternalException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalException" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -114,7 +114,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -144,7 +144,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -172,7 +172,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/polly/types/errors.go b/service/polly/types/errors.go index 2b1a44eb5f6..cd775f0be5a 100644 --- a/service/polly/types/errors.go +++ b/service/polly/types/errors.go @@ -28,7 +28,7 @@ func (e *EngineNotSupportedException) ErrorMessage() string { return *e.Message } func (e *EngineNotSupportedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EngineNotSupportedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *InvalidLexiconException) ErrorMessage() string { return *e.Message } func (e *InvalidLexiconException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidLexiconException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -109,7 +109,7 @@ func (e *InvalidS3BucketException) ErrorMessage() string { return *e.Message } func (e *InvalidS3BucketException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidS3BucketException" } return *e.ErrorCodeOverride @@ -136,7 +136,7 @@ func (e *InvalidS3KeyException) ErrorMessage() string { return *e.Message } func (e *InvalidS3KeyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidS3KeyException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *InvalidSampleRateException) ErrorMessage() string { return *e.Message } func (e *InvalidSampleRateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSampleRateException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *InvalidSnsTopicArnException) ErrorMessage() string { return *e.Message } func (e *InvalidSnsTopicArnException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSnsTopicArnException" } return *e.ErrorCodeOverride @@ -216,7 +216,7 @@ func (e *InvalidSsmlException) ErrorMessage() string { return *e.Message } func (e *InvalidSsmlException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSsmlException" } return *e.ErrorCodeOverride @@ -242,7 +242,7 @@ func (e *InvalidTaskIdException) ErrorMessage() string { return *e.Message } func (e *InvalidTaskIdException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTaskIdException" } return *e.ErrorCodeOverride @@ -269,7 +269,7 @@ func (e *LanguageNotSupportedException) ErrorMessage() string { return *e.Message } func (e *LanguageNotSupportedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LanguageNotSupportedException" } return *e.ErrorCodeOverride @@ -299,7 +299,7 @@ func (e *LexiconNotFoundException) ErrorMessage() string { return *e.Message } func (e *LexiconNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LexiconNotFoundException" } return *e.ErrorCodeOverride @@ -325,7 +325,7 @@ func (e *LexiconSizeExceededException) ErrorMessage() string { return *e.Message } func (e *LexiconSizeExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LexiconSizeExceededException" } return *e.ErrorCodeOverride @@ -352,7 +352,7 @@ func (e *MarksNotSupportedForFormatException) ErrorMessage() string { return *e.Message } func (e *MarksNotSupportedForFormatException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MarksNotSupportedForFormatException" } return *e.ErrorCodeOverride @@ -380,7 +380,7 @@ func (e *MaxLexemeLengthExceededException) ErrorMessage() string { return *e.Message } func (e *MaxLexemeLengthExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaxLexemeLengthExceededException" } return *e.ErrorCodeOverride @@ -406,7 +406,7 @@ func (e *MaxLexiconsNumberExceededException) ErrorMessage() string { return *e.Message } func (e *MaxLexiconsNumberExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaxLexiconsNumberExceededException" } return *e.ErrorCodeOverride @@ -434,7 +434,7 @@ func (e *ServiceFailureException) ErrorMessage() string { return *e.Message } func (e *ServiceFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceFailureException" } return *e.ErrorCodeOverride @@ -460,7 +460,7 @@ func (e *SsmlMarksNotSupportedForTextTypeException) ErrorMessage() string { return *e.Message } func (e *SsmlMarksNotSupportedForTextTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SsmlMarksNotSupportedForTextTypeException" } return *e.ErrorCodeOverride @@ -488,7 +488,7 @@ func (e *SynthesisTaskNotFoundException) ErrorMessage() string { return *e.Message } func (e *SynthesisTaskNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SynthesisTaskNotFoundException" } return *e.ErrorCodeOverride @@ -519,7 +519,7 @@ func (e *TextLengthExceededException) ErrorMessage() string { return *e.Message } func (e *TextLengthExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TextLengthExceededException" } return *e.ErrorCodeOverride @@ -546,7 +546,7 @@ func (e *UnsupportedPlsAlphabetException) ErrorMessage() string { return *e.Message } func (e *UnsupportedPlsAlphabetException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedPlsAlphabetException" } return *e.ErrorCodeOverride @@ -574,7 +574,7 @@ func (e *UnsupportedPlsLanguageException) ErrorMessage() string { return *e.Message } func (e *UnsupportedPlsLanguageException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedPlsLanguageException" } return *e.ErrorCodeOverride diff --git a/service/pricing/types/errors.go b/service/pricing/types/errors.go index aebbdd02a36..a3d427e3bed 100644 --- a/service/pricing/types/errors.go +++ b/service/pricing/types/errors.go @@ -26,7 +26,7 @@ func (e *ExpiredNextTokenException) ErrorMessage() string { return *e.Message } func (e *ExpiredNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ExpiredNextTokenException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *InternalErrorException) ErrorMessage() string { return *e.Message } func (e *InternalErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalErrorException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride diff --git a/service/privatenetworks/types/errors.go b/service/privatenetworks/types/errors.go index c90c8c6cac5..68149cbb606 100644 --- a/service/privatenetworks/types/errors.go +++ b/service/privatenetworks/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -109,7 +109,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -164,7 +164,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/proton/types/errors.go b/service/proton/types/errors.go index 7c5e4cdb2bb..d7229be0901 100644 --- a/service/proton/types/errors.go +++ b/service/proton/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -132,7 +132,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -158,7 +158,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -185,7 +185,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/qldb/types/errors.go b/service/qldb/types/errors.go index a1da465cd94..9f36d2dbf5e 100644 --- a/service/qldb/types/errors.go +++ b/service/qldb/types/errors.go @@ -28,7 +28,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -85,7 +85,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -114,7 +114,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -143,7 +143,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -172,7 +172,7 @@ func (e *ResourcePreconditionNotMetException) ErrorMessage() string { return *e.Message } func (e *ResourcePreconditionNotMetException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourcePreconditionNotMetException" } return *e.ErrorCodeOverride diff --git a/service/qldbsession/types/errors.go b/service/qldbsession/types/errors.go index 242f123b0c1..93287376524 100644 --- a/service/qldbsession/types/errors.go +++ b/service/qldbsession/types/errors.go @@ -29,7 +29,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *CapacityExceededException) ErrorMessage() string { return *e.Message } func (e *CapacityExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CapacityExceededException" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *InvalidSessionException) ErrorMessage() string { return *e.Message } func (e *InvalidSessionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSessionException" } return *e.ErrorCodeOverride @@ -109,7 +109,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -136,7 +136,7 @@ func (e *OccConflictException) ErrorMessage() string { return *e.Message } func (e *OccConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OccConflictException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *RateExceededException) ErrorMessage() string { return *e.Message } func (e *RateExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RateExceededException" } return *e.ErrorCodeOverride diff --git a/service/quicksight/types/errors.go b/service/quicksight/types/errors.go index 04c097a77f1..eeb2a6f65bd 100644 --- a/service/quicksight/types/errors.go +++ b/service/quicksight/types/errors.go @@ -32,7 +32,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -61,7 +61,7 @@ func (e *ConcurrentUpdatingException) ErrorMessage() string { return *e.Message } func (e *ConcurrentUpdatingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentUpdatingException" } return *e.ErrorCodeOverride @@ -89,7 +89,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -118,7 +118,7 @@ func (e *DomainNotWhitelistedException) ErrorMessage() string { return *e.Message } func (e *DomainNotWhitelistedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DomainNotWhitelistedException" } return *e.ErrorCodeOverride @@ -147,7 +147,7 @@ func (e *IdentityTypeNotSupportedException) ErrorMessage() string { return *e.Message } func (e *IdentityTypeNotSupportedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IdentityTypeNotSupportedException" } return *e.ErrorCodeOverride @@ -175,7 +175,7 @@ func (e *InternalFailureException) ErrorMessage() string { return *e.Message } func (e *InternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailureException" } return *e.ErrorCodeOverride @@ -203,7 +203,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -231,7 +231,7 @@ func (e *InvalidParameterValueException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterValueException" } return *e.ErrorCodeOverride @@ -260,7 +260,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -289,7 +289,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -317,7 +317,7 @@ func (e *PreconditionNotMetException) ErrorMessage() string { return *e.Message } func (e *PreconditionNotMetException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PreconditionNotMetException" } return *e.ErrorCodeOverride @@ -347,7 +347,7 @@ func (e *QuickSightUserNotFoundException) ErrorMessage() string { return *e.Message } func (e *QuickSightUserNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "QuickSightUserNotFoundException" } return *e.ErrorCodeOverride @@ -376,7 +376,7 @@ func (e *ResourceExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceExistsException" } return *e.ErrorCodeOverride @@ -405,7 +405,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -434,7 +434,7 @@ func (e *ResourceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ResourceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceUnavailableException" } return *e.ErrorCodeOverride @@ -463,7 +463,7 @@ func (e *SessionLifetimeInMinutesInvalidException) ErrorMessage() string { return *e.Message } func (e *SessionLifetimeInMinutesInvalidException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SessionLifetimeInMinutesInvalidException" } return *e.ErrorCodeOverride @@ -493,7 +493,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -528,7 +528,7 @@ func (e *UnsupportedPricingPlanException) ErrorMessage() string { return *e.Message } func (e *UnsupportedPricingPlanException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedPricingPlanException" } return *e.ErrorCodeOverride @@ -559,7 +559,7 @@ func (e *UnsupportedUserEditionException) ErrorMessage() string { return *e.Message } func (e *UnsupportedUserEditionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedUserEditionException" } return *e.ErrorCodeOverride diff --git a/service/ram/types/errors.go b/service/ram/types/errors.go index 55300682965..76125ffe793 100644 --- a/service/ram/types/errors.go +++ b/service/ram/types/errors.go @@ -28,7 +28,7 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IdempotentParameterMismatchException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *InvalidClientTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidClientTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidClientTokenException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InvalidMaxResultsException) ErrorMessage() string { return *e.Message } func (e *InvalidMaxResultsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidMaxResultsException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -134,7 +134,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -160,7 +160,7 @@ func (e *InvalidResourceTypeException) ErrorMessage() string { return *e.Message } func (e *InvalidResourceTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidResourceTypeException" } return *e.ErrorCodeOverride @@ -186,7 +186,7 @@ func (e *InvalidStateTransitionException) ErrorMessage() string { return *e.Message } func (e *InvalidStateTransitionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidStateTransitionException" } return *e.ErrorCodeOverride @@ -212,7 +212,7 @@ func (e *MalformedArnException) ErrorMessage() string { return *e.Message } func (e *MalformedArnException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MalformedArnException" } return *e.ErrorCodeOverride @@ -238,7 +238,7 @@ func (e *MissingRequiredParameterException) ErrorMessage() string { return *e.Message } func (e *MissingRequiredParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MissingRequiredParameterException" } return *e.ErrorCodeOverride @@ -264,7 +264,7 @@ func (e *OperationNotPermittedException) ErrorMessage() string { return *e.Message } func (e *OperationNotPermittedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationNotPermittedException" } return *e.ErrorCodeOverride @@ -290,7 +290,7 @@ func (e *ResourceArnNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceArnNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceArnNotFoundException" } return *e.ErrorCodeOverride @@ -316,7 +316,7 @@ func (e *ResourceShareInvitationAlreadyAcceptedException) ErrorMessage() string return *e.Message } func (e *ResourceShareInvitationAlreadyAcceptedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceShareInvitationAlreadyAcceptedException" } return *e.ErrorCodeOverride @@ -344,7 +344,7 @@ func (e *ResourceShareInvitationAlreadyRejectedException) ErrorMessage() string return *e.Message } func (e *ResourceShareInvitationAlreadyRejectedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceShareInvitationAlreadyRejectedException" } return *e.ErrorCodeOverride @@ -372,7 +372,7 @@ func (e *ResourceShareInvitationArnNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceShareInvitationArnNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceShareInvitationArnNotFoundException" } return *e.ErrorCodeOverride @@ -400,7 +400,7 @@ func (e *ResourceShareInvitationExpiredException) ErrorMessage() string { return *e.Message } func (e *ResourceShareInvitationExpiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceShareInvitationExpiredException" } return *e.ErrorCodeOverride @@ -428,7 +428,7 @@ func (e *ResourceShareLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceShareLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceShareLimitExceededException" } return *e.ErrorCodeOverride @@ -456,7 +456,7 @@ func (e *ServerInternalException) ErrorMessage() string { return *e.Message } func (e *ServerInternalException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServerInternalException" } return *e.ErrorCodeOverride @@ -482,7 +482,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -508,7 +508,7 @@ func (e *TagLimitExceededException) ErrorMessage() string { return *e.Message } func (e *TagLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagLimitExceededException" } return *e.ErrorCodeOverride @@ -534,7 +534,7 @@ func (e *TagPolicyViolationException) ErrorMessage() string { return *e.Message } func (e *TagPolicyViolationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagPolicyViolationException" } return *e.ErrorCodeOverride @@ -561,7 +561,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -587,7 +587,7 @@ func (e *UnknownResourceException) ErrorMessage() string { return *e.Message } func (e *UnknownResourceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnknownResourceException" } return *e.ErrorCodeOverride diff --git a/service/rbin/types/errors.go b/service/rbin/types/errors.go index 84dfadfe250..0314531929f 100644 --- a/service/rbin/types/errors.go +++ b/service/rbin/types/errors.go @@ -28,7 +28,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -111,7 +111,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -139,7 +139,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/rds/types/errors.go b/service/rds/types/errors.go index f25cd55b6c6..91353c40497 100644 --- a/service/rds/types/errors.go +++ b/service/rds/types/errors.go @@ -27,7 +27,7 @@ func (e *AuthorizationAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *AuthorizationAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AuthorizationAlreadyExists" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *AuthorizationNotFoundFault) ErrorMessage() string { return *e.Message } func (e *AuthorizationNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AuthorizationNotFound" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *AuthorizationQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *AuthorizationQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AuthorizationQuotaExceeded" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *BackupPolicyNotFoundFault) ErrorMessage() string { return *e.Message } func (e *BackupPolicyNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BackupPolicyNotFoundFault" } return *e.ErrorCodeOverride @@ -132,7 +132,7 @@ func (e *BlueGreenDeploymentAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *BlueGreenDeploymentAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BlueGreenDeploymentAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -161,7 +161,7 @@ func (e *BlueGreenDeploymentNotFoundFault) ErrorMessage() string { return *e.Message } func (e *BlueGreenDeploymentNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BlueGreenDeploymentNotFoundFault" } return *e.ErrorCodeOverride @@ -187,7 +187,7 @@ func (e *CertificateNotFoundFault) ErrorMessage() string { return *e.Message } func (e *CertificateNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CertificateNotFound" } return *e.ErrorCodeOverride @@ -214,7 +214,7 @@ func (e *CustomAvailabilityZoneNotFoundFault) ErrorMessage() string { return *e.Message } func (e *CustomAvailabilityZoneNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CustomAvailabilityZoneNotFound" } return *e.ErrorCodeOverride @@ -242,7 +242,7 @@ func (e *CustomDBEngineVersionAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *CustomDBEngineVersionAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CustomDBEngineVersionAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -270,7 +270,7 @@ func (e *CustomDBEngineVersionNotFoundFault) ErrorMessage() string { return *e.Message } func (e *CustomDBEngineVersionNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CustomDBEngineVersionNotFoundFault" } return *e.ErrorCodeOverride @@ -298,7 +298,7 @@ func (e *CustomDBEngineVersionQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *CustomDBEngineVersionQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CustomDBEngineVersionQuotaExceededFault" } return *e.ErrorCodeOverride @@ -326,7 +326,7 @@ func (e *DBClusterAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBClusterAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -352,7 +352,7 @@ func (e *DBClusterBacktrackNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterBacktrackNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterBacktrackNotFoundFault" } return *e.ErrorCodeOverride @@ -378,7 +378,7 @@ func (e *DBClusterEndpointAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBClusterEndpointAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterEndpointAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -406,7 +406,7 @@ func (e *DBClusterEndpointNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterEndpointNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterEndpointNotFoundFault" } return *e.ErrorCodeOverride @@ -432,7 +432,7 @@ func (e *DBClusterEndpointQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBClusterEndpointQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterEndpointQuotaExceededFault" } return *e.ErrorCodeOverride @@ -460,7 +460,7 @@ func (e *DBClusterNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterNotFoundFault" } return *e.ErrorCodeOverride @@ -487,7 +487,7 @@ func (e *DBClusterParameterGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterParameterGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterParameterGroupNotFound" } return *e.ErrorCodeOverride @@ -516,7 +516,7 @@ func (e *DBClusterQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBClusterQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterQuotaExceededFault" } return *e.ErrorCodeOverride @@ -543,7 +543,7 @@ func (e *DBClusterRoleAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBClusterRoleAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterRoleAlreadyExists" } return *e.ErrorCodeOverride @@ -570,7 +570,7 @@ func (e *DBClusterRoleNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterRoleNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterRoleNotFound" } return *e.ErrorCodeOverride @@ -597,7 +597,7 @@ func (e *DBClusterRoleQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBClusterRoleQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterRoleQuotaExceeded" } return *e.ErrorCodeOverride @@ -623,7 +623,7 @@ func (e *DBClusterSnapshotAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBClusterSnapshotAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterSnapshotAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -651,7 +651,7 @@ func (e *DBClusterSnapshotNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBClusterSnapshotNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBClusterSnapshotNotFoundFault" } return *e.ErrorCodeOverride @@ -677,7 +677,7 @@ func (e *DBInstanceAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBInstanceAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBInstanceAlreadyExists" } return *e.ErrorCodeOverride @@ -703,7 +703,7 @@ func (e *DBInstanceAutomatedBackupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBInstanceAutomatedBackupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBInstanceAutomatedBackupNotFound" } return *e.ErrorCodeOverride @@ -733,7 +733,7 @@ func (e *DBInstanceAutomatedBackupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBInstanceAutomatedBackupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBInstanceAutomatedBackupQuotaExceeded" } return *e.ErrorCodeOverride @@ -761,7 +761,7 @@ func (e *DBInstanceNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBInstanceNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBInstanceNotFound" } return *e.ErrorCodeOverride @@ -788,7 +788,7 @@ func (e *DBInstanceRoleAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBInstanceRoleAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBInstanceRoleAlreadyExists" } return *e.ErrorCodeOverride @@ -815,7 +815,7 @@ func (e *DBInstanceRoleNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBInstanceRoleNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBInstanceRoleNotFound" } return *e.ErrorCodeOverride @@ -842,7 +842,7 @@ func (e *DBInstanceRoleQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBInstanceRoleQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBInstanceRoleQuotaExceeded" } return *e.ErrorCodeOverride @@ -868,7 +868,7 @@ func (e *DBLogFileNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBLogFileNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBLogFileNotFoundFault" } return *e.ErrorCodeOverride @@ -894,7 +894,7 @@ func (e *DBParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBParameterGroupAlreadyExists" } return *e.ErrorCodeOverride @@ -922,7 +922,7 @@ func (e *DBParameterGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBParameterGroupNotFound" } return *e.ErrorCodeOverride @@ -949,7 +949,7 @@ func (e *DBParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBParameterGroupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBParameterGroupQuotaExceeded" } return *e.ErrorCodeOverride @@ -978,7 +978,7 @@ func (e *DBProxyAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBProxyAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBProxyAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -1006,7 +1006,7 @@ func (e *DBProxyEndpointAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBProxyEndpointAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBProxyEndpointAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -1032,7 +1032,7 @@ func (e *DBProxyEndpointNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBProxyEndpointNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBProxyEndpointNotFoundFault" } return *e.ErrorCodeOverride @@ -1058,7 +1058,7 @@ func (e *DBProxyEndpointQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBProxyEndpointQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBProxyEndpointQuotaExceededFault" } return *e.ErrorCodeOverride @@ -1085,7 +1085,7 @@ func (e *DBProxyNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBProxyNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBProxyNotFoundFault" } return *e.ErrorCodeOverride @@ -1112,7 +1112,7 @@ func (e *DBProxyQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBProxyQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBProxyQuotaExceededFault" } return *e.ErrorCodeOverride @@ -1139,7 +1139,7 @@ func (e *DBProxyTargetAlreadyRegisteredFault) ErrorMessage() string { return *e.Message } func (e *DBProxyTargetAlreadyRegisteredFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBProxyTargetAlreadyRegisteredFault" } return *e.ErrorCodeOverride @@ -1168,7 +1168,7 @@ func (e *DBProxyTargetGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBProxyTargetGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBProxyTargetGroupNotFoundFault" } return *e.ErrorCodeOverride @@ -1196,7 +1196,7 @@ func (e *DBProxyTargetNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBProxyTargetNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBProxyTargetNotFoundFault" } return *e.ErrorCodeOverride @@ -1223,7 +1223,7 @@ func (e *DBSecurityGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBSecurityGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSecurityGroupAlreadyExists" } return *e.ErrorCodeOverride @@ -1249,7 +1249,7 @@ func (e *DBSecurityGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBSecurityGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSecurityGroupNotFound" } return *e.ErrorCodeOverride @@ -1275,7 +1275,7 @@ func (e *DBSecurityGroupNotSupportedFault) ErrorMessage() string { return *e.Message } func (e *DBSecurityGroupNotSupportedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSecurityGroupNotSupported" } return *e.ErrorCodeOverride @@ -1302,7 +1302,7 @@ func (e *DBSecurityGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBSecurityGroupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "QuotaExceeded.DBSecurityGroup" } return *e.ErrorCodeOverride @@ -1328,7 +1328,7 @@ func (e *DBSnapshotAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBSnapshotAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSnapshotAlreadyExists" } return *e.ErrorCodeOverride @@ -1354,7 +1354,7 @@ func (e *DBSnapshotNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBSnapshotNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSnapshotNotFound" } return *e.ErrorCodeOverride @@ -1380,7 +1380,7 @@ func (e *DBSubnetGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DBSubnetGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSubnetGroupAlreadyExists" } return *e.ErrorCodeOverride @@ -1407,7 +1407,7 @@ func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorMessage() string { return *e.Message } func (e *DBSubnetGroupDoesNotCoverEnoughAZs) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSubnetGroupDoesNotCoverEnoughAZs" } return *e.ErrorCodeOverride @@ -1436,7 +1436,7 @@ func (e *DBSubnetGroupNotAllowedFault) ErrorMessage() string { return *e.Message } func (e *DBSubnetGroupNotAllowedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSubnetGroupNotAllowedFault" } return *e.ErrorCodeOverride @@ -1462,7 +1462,7 @@ func (e *DBSubnetGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DBSubnetGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSubnetGroupNotFoundFault" } return *e.ErrorCodeOverride @@ -1489,7 +1489,7 @@ func (e *DBSubnetGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBSubnetGroupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSubnetGroupQuotaExceeded" } return *e.ErrorCodeOverride @@ -1516,7 +1516,7 @@ func (e *DBSubnetQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *DBSubnetQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBSubnetQuotaExceededFault" } return *e.ErrorCodeOverride @@ -1542,7 +1542,7 @@ func (e *DBUpgradeDependencyFailureFault) ErrorMessage() string { return *e.Message } func (e *DBUpgradeDependencyFailureFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DBUpgradeDependencyFailure" } return *e.ErrorCodeOverride @@ -1568,7 +1568,7 @@ func (e *DomainNotFoundFault) ErrorMessage() string { return *e.Message } func (e *DomainNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DomainNotFoundFault" } return *e.ErrorCodeOverride @@ -1594,7 +1594,7 @@ func (e *Ec2ImagePropertiesNotSupportedFault) ErrorMessage() string { return *e.Message } func (e *Ec2ImagePropertiesNotSupportedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "Ec2ImagePropertiesNotSupportedFault" } return *e.ErrorCodeOverride @@ -1622,7 +1622,7 @@ func (e *EventSubscriptionQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *EventSubscriptionQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EventSubscriptionQuotaExceeded" } return *e.ErrorCodeOverride @@ -1650,7 +1650,7 @@ func (e *ExportTaskAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ExportTaskAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ExportTaskAlreadyExists" } return *e.ErrorCodeOverride @@ -1676,7 +1676,7 @@ func (e *ExportTaskNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ExportTaskNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ExportTaskNotFound" } return *e.ErrorCodeOverride @@ -1703,7 +1703,7 @@ func (e *GlobalClusterAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GlobalClusterAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -1730,7 +1730,7 @@ func (e *GlobalClusterNotFoundFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GlobalClusterNotFoundFault" } return *e.ErrorCodeOverride @@ -1757,7 +1757,7 @@ func (e *GlobalClusterQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *GlobalClusterQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GlobalClusterQuotaExceededFault" } return *e.ErrorCodeOverride @@ -1783,7 +1783,7 @@ func (e *IamRoleMissingPermissionsFault) ErrorMessage() string { return *e.Message } func (e *IamRoleMissingPermissionsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IamRoleMissingPermissions" } return *e.ErrorCodeOverride @@ -1809,7 +1809,7 @@ func (e *IamRoleNotFoundFault) ErrorMessage() string { return *e.Message } func (e *IamRoleNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IamRoleNotFound" } return *e.ErrorCodeOverride @@ -1836,7 +1836,7 @@ func (e *InstanceQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *InstanceQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InstanceQuotaExceeded" } return *e.ErrorCodeOverride @@ -1864,7 +1864,7 @@ func (e *InsufficientAvailableIPsInSubnetFault) ErrorMessage() string { return *e.Message } func (e *InsufficientAvailableIPsInSubnetFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientAvailableIPsInSubnetFault" } return *e.ErrorCodeOverride @@ -1892,7 +1892,7 @@ func (e *InsufficientDBClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientDBClusterCapacityFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientDBClusterCapacityFault" } return *e.ErrorCodeOverride @@ -1921,7 +1921,7 @@ func (e *InsufficientDBInstanceCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientDBInstanceCapacityFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientDBInstanceCapacity" } return *e.ErrorCodeOverride @@ -1951,7 +1951,7 @@ func (e *InsufficientStorageClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientStorageClusterCapacityFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientStorageClusterCapacity" } return *e.ErrorCodeOverride @@ -1980,7 +1980,7 @@ func (e *InvalidBlueGreenDeploymentStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidBlueGreenDeploymentStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidBlueGreenDeploymentStateFault" } return *e.ErrorCodeOverride @@ -2008,7 +2008,7 @@ func (e *InvalidCustomDBEngineVersionStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidCustomDBEngineVersionStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCustomDBEngineVersionStateFault" } return *e.ErrorCodeOverride @@ -2037,7 +2037,7 @@ func (e *InvalidDBClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBClusterCapacityFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBClusterCapacityFault" } return *e.ErrorCodeOverride @@ -2064,7 +2064,7 @@ func (e *InvalidDBClusterEndpointStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBClusterEndpointStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBClusterEndpointStateFault" } return *e.ErrorCodeOverride @@ -2092,7 +2092,7 @@ func (e *InvalidDBClusterSnapshotStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBClusterSnapshotStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBClusterSnapshotStateFault" } return *e.ErrorCodeOverride @@ -2120,7 +2120,7 @@ func (e *InvalidDBClusterStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBClusterStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBClusterStateFault" } return *e.ErrorCodeOverride @@ -2147,7 +2147,7 @@ func (e *InvalidDBInstanceAutomatedBackupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBInstanceAutomatedBackupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBInstanceAutomatedBackupState" } return *e.ErrorCodeOverride @@ -2175,7 +2175,7 @@ func (e *InvalidDBInstanceStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBInstanceStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBInstanceState" } return *e.ErrorCodeOverride @@ -2203,7 +2203,7 @@ func (e *InvalidDBParameterGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBParameterGroupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBParameterGroupState" } return *e.ErrorCodeOverride @@ -2230,7 +2230,7 @@ func (e *InvalidDBProxyEndpointStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBProxyEndpointStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBProxyEndpointStateFault" } return *e.ErrorCodeOverride @@ -2256,7 +2256,7 @@ func (e *InvalidDBProxyStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBProxyStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBProxyStateFault" } return *e.ErrorCodeOverride @@ -2282,7 +2282,7 @@ func (e *InvalidDBSecurityGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBSecurityGroupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBSecurityGroupState" } return *e.ErrorCodeOverride @@ -2308,7 +2308,7 @@ func (e *InvalidDBSnapshotStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBSnapshotStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBSnapshotState" } return *e.ErrorCodeOverride @@ -2335,7 +2335,7 @@ func (e *InvalidDBSubnetGroupFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBSubnetGroupFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBSubnetGroupFault" } return *e.ErrorCodeOverride @@ -2361,7 +2361,7 @@ func (e *InvalidDBSubnetGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBSubnetGroupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBSubnetGroupStateFault" } return *e.ErrorCodeOverride @@ -2387,7 +2387,7 @@ func (e *InvalidDBSubnetStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidDBSubnetStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDBSubnetStateFault" } return *e.ErrorCodeOverride @@ -2414,7 +2414,7 @@ func (e *InvalidEventSubscriptionStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidEventSubscriptionStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidEventSubscriptionState" } return *e.ErrorCodeOverride @@ -2442,7 +2442,7 @@ func (e *InvalidExportOnlyFault) ErrorMessage() string { return *e.Message } func (e *InvalidExportOnlyFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidExportOnly" } return *e.ErrorCodeOverride @@ -2469,7 +2469,7 @@ func (e *InvalidExportSourceStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidExportSourceStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidExportSourceState" } return *e.ErrorCodeOverride @@ -2495,7 +2495,7 @@ func (e *InvalidExportTaskStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidExportTaskStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidExportTaskStateFault" } return *e.ErrorCodeOverride @@ -2522,7 +2522,7 @@ func (e *InvalidGlobalClusterStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidGlobalClusterStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidGlobalClusterStateFault" } return *e.ErrorCodeOverride @@ -2548,7 +2548,7 @@ func (e *InvalidOptionGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidOptionGroupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOptionGroupStateFault" } return *e.ErrorCodeOverride @@ -2574,7 +2574,7 @@ func (e *InvalidRestoreFault) ErrorMessage() string { return *e.Message } func (e *InvalidRestoreFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRestoreFault" } return *e.ErrorCodeOverride @@ -2602,7 +2602,7 @@ func (e *InvalidS3BucketFault) ErrorMessage() string { return *e.Message } func (e *InvalidS3BucketFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidS3BucketFault" } return *e.ErrorCodeOverride @@ -2629,7 +2629,7 @@ func (e *InvalidSubnet) ErrorMessage() string { return *e.Message } func (e *InvalidSubnet) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSubnet" } return *e.ErrorCodeOverride @@ -2656,7 +2656,7 @@ func (e *InvalidVPCNetworkStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidVPCNetworkStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidVPCNetworkStateFault" } return *e.ErrorCodeOverride @@ -2682,7 +2682,7 @@ func (e *KMSKeyNotAccessibleFault) ErrorMessage() string { return *e.Message } func (e *KMSKeyNotAccessibleFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSKeyNotAccessibleFault" } return *e.ErrorCodeOverride @@ -2709,7 +2709,7 @@ func (e *NetworkTypeNotSupported) ErrorMessage() string { return *e.Message } func (e *NetworkTypeNotSupported) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NetworkTypeNotSupported" } return *e.ErrorCodeOverride @@ -2735,7 +2735,7 @@ func (e *OptionGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *OptionGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OptionGroupAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -2761,7 +2761,7 @@ func (e *OptionGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *OptionGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OptionGroupNotFoundFault" } return *e.ErrorCodeOverride @@ -2787,7 +2787,7 @@ func (e *OptionGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *OptionGroupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OptionGroupQuotaExceededFault" } return *e.ErrorCodeOverride @@ -2814,7 +2814,7 @@ func (e *PointInTimeRestoreNotEnabledFault) ErrorMessage() string { return *e.Message } func (e *PointInTimeRestoreNotEnabledFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PointInTimeRestoreNotEnabled" } return *e.ErrorCodeOverride @@ -2840,7 +2840,7 @@ func (e *ProvisionedIopsNotAvailableInAZFault) ErrorMessage() string { return *e.Message } func (e *ProvisionedIopsNotAvailableInAZFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ProvisionedIopsNotAvailableInAZFault" } return *e.ErrorCodeOverride @@ -2868,7 +2868,7 @@ func (e *ReservedDBInstanceAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ReservedDBInstanceAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReservedDBInstanceAlreadyExists" } return *e.ErrorCodeOverride @@ -2896,7 +2896,7 @@ func (e *ReservedDBInstanceNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ReservedDBInstanceNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReservedDBInstanceNotFound" } return *e.ErrorCodeOverride @@ -2922,7 +2922,7 @@ func (e *ReservedDBInstanceQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ReservedDBInstanceQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReservedDBInstanceQuotaExceeded" } return *e.ErrorCodeOverride @@ -2950,7 +2950,7 @@ func (e *ReservedDBInstancesOfferingNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ReservedDBInstancesOfferingNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReservedDBInstancesOfferingNotFound" } return *e.ErrorCodeOverride @@ -2978,7 +2978,7 @@ func (e *ResourceNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundFault" } return *e.ErrorCodeOverride @@ -3005,7 +3005,7 @@ func (e *SharedSnapshotQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *SharedSnapshotQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SharedSnapshotQuotaExceeded" } return *e.ErrorCodeOverride @@ -3032,7 +3032,7 @@ func (e *SnapshotQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *SnapshotQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotQuotaExceeded" } return *e.ErrorCodeOverride @@ -3058,7 +3058,7 @@ func (e *SNSInvalidTopicFault) ErrorMessage() string { return *e.Message } func (e *SNSInvalidTopicFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SNSInvalidTopic" } return *e.ErrorCodeOverride @@ -3084,7 +3084,7 @@ func (e *SNSNoAuthorizationFault) ErrorMessage() string { return *e.Message } func (e *SNSNoAuthorizationFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SNSNoAuthorization" } return *e.ErrorCodeOverride @@ -3110,7 +3110,7 @@ func (e *SNSTopicArnNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SNSTopicArnNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SNSTopicArnNotFound" } return *e.ErrorCodeOverride @@ -3136,7 +3136,7 @@ func (e *SourceClusterNotSupportedFault) ErrorMessage() string { return *e.Message } func (e *SourceClusterNotSupportedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SourceClusterNotSupportedFault" } return *e.ErrorCodeOverride @@ -3162,7 +3162,7 @@ func (e *SourceDatabaseNotSupportedFault) ErrorMessage() string { return *e.Message } func (e *SourceDatabaseNotSupportedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SourceDatabaseNotSupportedFault" } return *e.ErrorCodeOverride @@ -3188,7 +3188,7 @@ func (e *SourceNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SourceNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SourceNotFound" } return *e.ErrorCodeOverride @@ -3215,7 +3215,7 @@ func (e *StorageQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *StorageQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StorageQuotaExceeded" } return *e.ErrorCodeOverride @@ -3241,7 +3241,7 @@ func (e *StorageTypeNotSupportedFault) ErrorMessage() string { return *e.Message } func (e *StorageTypeNotSupportedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StorageTypeNotSupported" } return *e.ErrorCodeOverride @@ -3267,7 +3267,7 @@ func (e *SubnetAlreadyInUse) ErrorMessage() string { return *e.Message } func (e *SubnetAlreadyInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetAlreadyInUse" } return *e.ErrorCodeOverride @@ -3293,7 +3293,7 @@ func (e *SubscriptionAlreadyExistFault) ErrorMessage() string { return *e.Message } func (e *SubscriptionAlreadyExistFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubscriptionAlreadyExist" } return *e.ErrorCodeOverride @@ -3319,7 +3319,7 @@ func (e *SubscriptionCategoryNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SubscriptionCategoryNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubscriptionCategoryNotFound" } return *e.ErrorCodeOverride @@ -3345,7 +3345,7 @@ func (e *SubscriptionNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SubscriptionNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubscriptionNotFound" } return *e.ErrorCodeOverride diff --git a/service/rdsdata/types/errors.go b/service/rdsdata/types/errors.go index 12e11fef0a4..b3b9215bfef 100644 --- a/service/rdsdata/types/errors.go +++ b/service/rdsdata/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *InternalServerErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServerErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerErrorException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *ServiceUnavailableError) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableError" } return *e.ErrorCodeOverride @@ -184,7 +184,7 @@ func (e *StatementTimeoutException) ErrorMessage() string { return *e.Message } func (e *StatementTimeoutException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StatementTimeoutException" } return *e.ErrorCodeOverride diff --git a/service/redshift/types/errors.go b/service/redshift/types/errors.go index 277618eb9d7..4a3c6e364a3 100644 --- a/service/redshift/types/errors.go +++ b/service/redshift/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessToClusterDeniedFault) ErrorMessage() string { return *e.Message } func (e *AccessToClusterDeniedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessToClusterDenied" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *AccessToSnapshotDeniedFault) ErrorMessage() string { return *e.Message } func (e *AccessToSnapshotDeniedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessToSnapshotDenied" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *AuthenticationProfileAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *AuthenticationProfileAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AuthenticationProfileAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *AuthenticationProfileNotFoundFault) ErrorMessage() string { return *e.Message } func (e *AuthenticationProfileNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AuthenticationProfileNotFoundFault" } return *e.ErrorCodeOverride @@ -137,7 +137,7 @@ func (e *AuthenticationProfileQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *AuthenticationProfileQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AuthenticationProfileQuotaExceededFault" } return *e.ErrorCodeOverride @@ -166,7 +166,7 @@ func (e *AuthorizationAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *AuthorizationAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AuthorizationAlreadyExists" } return *e.ErrorCodeOverride @@ -193,7 +193,7 @@ func (e *AuthorizationNotFoundFault) ErrorMessage() string { return *e.Message } func (e *AuthorizationNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AuthorizationNotFound" } return *e.ErrorCodeOverride @@ -219,7 +219,7 @@ func (e *AuthorizationQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *AuthorizationQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AuthorizationQuotaExceeded" } return *e.ErrorCodeOverride @@ -246,7 +246,7 @@ func (e *BatchDeleteRequestSizeExceededFault) ErrorMessage() string { return *e.Message } func (e *BatchDeleteRequestSizeExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BatchDeleteRequestSizeExceeded" } return *e.ErrorCodeOverride @@ -274,7 +274,7 @@ func (e *BatchModifyClusterSnapshotsLimitExceededFault) ErrorMessage() string { return *e.Message } func (e *BatchModifyClusterSnapshotsLimitExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BatchModifyClusterSnapshotsLimitExceededFault" } return *e.ErrorCodeOverride @@ -302,7 +302,7 @@ func (e *BucketNotFoundFault) ErrorMessage() string { return *e.Message } func (e *BucketNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BucketNotFoundFault" } return *e.ErrorCodeOverride @@ -328,7 +328,7 @@ func (e *ClusterAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ClusterAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterAlreadyExists" } return *e.ErrorCodeOverride @@ -354,7 +354,7 @@ func (e *ClusterNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ClusterNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterNotFound" } return *e.ErrorCodeOverride @@ -380,7 +380,7 @@ func (e *ClusterOnLatestRevisionFault) ErrorMessage() string { return *e.Message } func (e *ClusterOnLatestRevisionFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterOnLatestRevision" } return *e.ErrorCodeOverride @@ -406,7 +406,7 @@ func (e *ClusterParameterGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ClusterParameterGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterParameterGroupAlreadyExists" } return *e.ErrorCodeOverride @@ -434,7 +434,7 @@ func (e *ClusterParameterGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ClusterParameterGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterParameterGroupNotFound" } return *e.ErrorCodeOverride @@ -466,7 +466,7 @@ func (e *ClusterParameterGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterParameterGroupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterParameterGroupQuotaExceeded" } return *e.ErrorCodeOverride @@ -498,7 +498,7 @@ func (e *ClusterQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterQuotaExceeded" } return *e.ErrorCodeOverride @@ -524,7 +524,7 @@ func (e *ClusterSecurityGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ClusterSecurityGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterSecurityGroupAlreadyExists" } return *e.ErrorCodeOverride @@ -553,7 +553,7 @@ func (e *ClusterSecurityGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ClusterSecurityGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterSecurityGroupNotFound" } return *e.ErrorCodeOverride @@ -583,7 +583,7 @@ func (e *ClusterSecurityGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterSecurityGroupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "QuotaExceeded.ClusterSecurityGroup" } return *e.ErrorCodeOverride @@ -612,7 +612,7 @@ func (e *ClusterSnapshotAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ClusterSnapshotAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterSnapshotAlreadyExists" } return *e.ErrorCodeOverride @@ -638,7 +638,7 @@ func (e *ClusterSnapshotNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ClusterSnapshotNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterSnapshotNotFound" } return *e.ErrorCodeOverride @@ -665,7 +665,7 @@ func (e *ClusterSnapshotQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterSnapshotQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterSnapshotQuotaExceeded" } return *e.ErrorCodeOverride @@ -691,7 +691,7 @@ func (e *ClusterSubnetGroupAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ClusterSubnetGroupAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterSubnetGroupAlreadyExists" } return *e.ErrorCodeOverride @@ -720,7 +720,7 @@ func (e *ClusterSubnetGroupNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ClusterSubnetGroupNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterSubnetGroupNotFoundFault" } return *e.ErrorCodeOverride @@ -750,7 +750,7 @@ func (e *ClusterSubnetGroupQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterSubnetGroupQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterSubnetGroupQuotaExceeded" } return *e.ErrorCodeOverride @@ -782,7 +782,7 @@ func (e *ClusterSubnetQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ClusterSubnetQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterSubnetQuotaExceededFault" } return *e.ErrorCodeOverride @@ -808,7 +808,7 @@ func (e *CopyToRegionDisabledFault) ErrorMessage() string { return *e.Message } func (e *CopyToRegionDisabledFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CopyToRegionDisabledFault" } return *e.ErrorCodeOverride @@ -835,7 +835,7 @@ func (e *DependentServiceRequestThrottlingFault) ErrorMessage() string { return *e.Message } func (e *DependentServiceRequestThrottlingFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DependentServiceRequestThrottlingFault" } return *e.ErrorCodeOverride @@ -864,7 +864,7 @@ func (e *DependentServiceUnavailableFault) ErrorMessage() string { return *e.Message } func (e *DependentServiceUnavailableFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DependentServiceUnavailableFault" } return *e.ErrorCodeOverride @@ -891,7 +891,7 @@ func (e *EndpointAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *EndpointAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EndpointAlreadyExists" } return *e.ErrorCodeOverride @@ -917,7 +917,7 @@ func (e *EndpointAuthorizationAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *EndpointAuthorizationAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EndpointAuthorizationAlreadyExists" } return *e.ErrorCodeOverride @@ -945,7 +945,7 @@ func (e *EndpointAuthorizationNotFoundFault) ErrorMessage() string { return *e.Message } func (e *EndpointAuthorizationNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EndpointAuthorizationNotFound" } return *e.ErrorCodeOverride @@ -973,7 +973,7 @@ func (e *EndpointAuthorizationsPerClusterLimitExceededFault) ErrorMessage() stri return *e.Message } func (e *EndpointAuthorizationsPerClusterLimitExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EndpointAuthorizationsPerClusterLimitExceeded" } return *e.ErrorCodeOverride @@ -1001,7 +1001,7 @@ func (e *EndpointNotFoundFault) ErrorMessage() string { return *e.Message } func (e *EndpointNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EndpointNotFound" } return *e.ErrorCodeOverride @@ -1028,7 +1028,7 @@ func (e *EndpointsPerAuthorizationLimitExceededFault) ErrorMessage() string { return *e.Message } func (e *EndpointsPerAuthorizationLimitExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EndpointsPerAuthorizationLimitExceeded" } return *e.ErrorCodeOverride @@ -1056,7 +1056,7 @@ func (e *EndpointsPerClusterLimitExceededFault) ErrorMessage() string { return *e.Message } func (e *EndpointsPerClusterLimitExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EndpointsPerClusterLimitExceeded" } return *e.ErrorCodeOverride @@ -1088,7 +1088,7 @@ func (e *EventSubscriptionQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *EventSubscriptionQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EventSubscriptionQuotaExceeded" } return *e.ErrorCodeOverride @@ -1117,7 +1117,7 @@ func (e *HsmClientCertificateAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *HsmClientCertificateAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HsmClientCertificateAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -1146,7 +1146,7 @@ func (e *HsmClientCertificateNotFoundFault) ErrorMessage() string { return *e.Message } func (e *HsmClientCertificateNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HsmClientCertificateNotFoundFault" } return *e.ErrorCodeOverride @@ -1175,7 +1175,7 @@ func (e *HsmClientCertificateQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *HsmClientCertificateQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HsmClientCertificateQuotaExceededFault" } return *e.ErrorCodeOverride @@ -1204,7 +1204,7 @@ func (e *HsmConfigurationAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *HsmConfigurationAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HsmConfigurationAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -1232,7 +1232,7 @@ func (e *HsmConfigurationNotFoundFault) ErrorMessage() string { return *e.Message } func (e *HsmConfigurationNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HsmConfigurationNotFoundFault" } return *e.ErrorCodeOverride @@ -1261,7 +1261,7 @@ func (e *HsmConfigurationQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *HsmConfigurationQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HsmConfigurationQuotaExceededFault" } return *e.ErrorCodeOverride @@ -1289,7 +1289,7 @@ func (e *IncompatibleOrderableOptions) ErrorMessage() string { return *e.Message } func (e *IncompatibleOrderableOptions) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IncompatibleOrderableOptions" } return *e.ErrorCodeOverride @@ -1316,7 +1316,7 @@ func (e *InProgressTableRestoreQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *InProgressTableRestoreQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InProgressTableRestoreQuotaExceededFault" } return *e.ErrorCodeOverride @@ -1344,7 +1344,7 @@ func (e *InsufficientClusterCapacityFault) ErrorMessage() string { return *e.Message } func (e *InsufficientClusterCapacityFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientClusterCapacity" } return *e.ErrorCodeOverride @@ -1371,7 +1371,7 @@ func (e *InsufficientS3BucketPolicyFault) ErrorMessage() string { return *e.Message } func (e *InsufficientS3BucketPolicyFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientS3BucketPolicyFault" } return *e.ErrorCodeOverride @@ -1399,7 +1399,7 @@ func (e *InvalidAuthenticationProfileRequestFault) ErrorMessage() string { return *e.Message } func (e *InvalidAuthenticationProfileRequestFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAuthenticationProfileRequestFault" } return *e.ErrorCodeOverride @@ -1427,7 +1427,7 @@ func (e *InvalidAuthorizationStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidAuthorizationStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAuthorizationState" } return *e.ErrorCodeOverride @@ -1455,7 +1455,7 @@ func (e *InvalidClusterParameterGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidClusterParameterGroupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidClusterParameterGroupState" } return *e.ErrorCodeOverride @@ -1483,7 +1483,7 @@ func (e *InvalidClusterSecurityGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidClusterSecurityGroupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidClusterSecurityGroupState" } return *e.ErrorCodeOverride @@ -1511,7 +1511,7 @@ func (e *InvalidClusterSnapshotScheduleStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidClusterSnapshotScheduleStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidClusterSnapshotScheduleState" } return *e.ErrorCodeOverride @@ -1540,7 +1540,7 @@ func (e *InvalidClusterSnapshotStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidClusterSnapshotStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidClusterSnapshotState" } return *e.ErrorCodeOverride @@ -1566,7 +1566,7 @@ func (e *InvalidClusterStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidClusterStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidClusterState" } return *e.ErrorCodeOverride @@ -1592,7 +1592,7 @@ func (e *InvalidClusterSubnetGroupStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidClusterSubnetGroupStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidClusterSubnetGroupStateFault" } return *e.ErrorCodeOverride @@ -1620,7 +1620,7 @@ func (e *InvalidClusterSubnetStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidClusterSubnetStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidClusterSubnetStateFault" } return *e.ErrorCodeOverride @@ -1646,7 +1646,7 @@ func (e *InvalidClusterTrackFault) ErrorMessage() string { return *e.Message } func (e *InvalidClusterTrackFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidClusterTrack" } return *e.ErrorCodeOverride @@ -1672,7 +1672,7 @@ func (e *InvalidDataShareFault) ErrorMessage() string { return *e.Message } func (e *InvalidDataShareFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDataShareFault" } return *e.ErrorCodeOverride @@ -1698,7 +1698,7 @@ func (e *InvalidElasticIpFault) ErrorMessage() string { return *e.Message } func (e *InvalidElasticIpFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidElasticIpFault" } return *e.ErrorCodeOverride @@ -1724,7 +1724,7 @@ func (e *InvalidEndpointStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidEndpointStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidEndpointState" } return *e.ErrorCodeOverride @@ -1751,7 +1751,7 @@ func (e *InvalidHsmClientCertificateStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidHsmClientCertificateStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidHsmClientCertificateStateFault" } return *e.ErrorCodeOverride @@ -1780,7 +1780,7 @@ func (e *InvalidHsmConfigurationStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidHsmConfigurationStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidHsmConfigurationStateFault" } return *e.ErrorCodeOverride @@ -1807,7 +1807,7 @@ func (e *InvalidNamespaceFault) ErrorMessage() string { return *e.Message } func (e *InvalidNamespaceFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNamespaceFault" } return *e.ErrorCodeOverride @@ -1833,7 +1833,7 @@ func (e *InvalidReservedNodeStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidReservedNodeStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidReservedNodeState" } return *e.ErrorCodeOverride @@ -1859,7 +1859,7 @@ func (e *InvalidRestoreFault) ErrorMessage() string { return *e.Message } func (e *InvalidRestoreFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRestore" } return *e.ErrorCodeOverride @@ -1886,7 +1886,7 @@ func (e *InvalidRetentionPeriodFault) ErrorMessage() string { return *e.Message } func (e *InvalidRetentionPeriodFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRetentionPeriodFault" } return *e.ErrorCodeOverride @@ -1915,7 +1915,7 @@ func (e *InvalidS3BucketNameFault) ErrorMessage() string { return *e.Message } func (e *InvalidS3BucketNameFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidS3BucketNameFault" } return *e.ErrorCodeOverride @@ -1942,7 +1942,7 @@ func (e *InvalidS3KeyPrefixFault) ErrorMessage() string { return *e.Message } func (e *InvalidS3KeyPrefixFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidS3KeyPrefixFault" } return *e.ErrorCodeOverride @@ -1968,7 +1968,7 @@ func (e *InvalidScheduledActionFault) ErrorMessage() string { return *e.Message } func (e *InvalidScheduledActionFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidScheduledAction" } return *e.ErrorCodeOverride @@ -1994,7 +1994,7 @@ func (e *InvalidScheduleFault) ErrorMessage() string { return *e.Message } func (e *InvalidScheduleFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSchedule" } return *e.ErrorCodeOverride @@ -2021,7 +2021,7 @@ func (e *InvalidSnapshotCopyGrantStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidSnapshotCopyGrantStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSnapshotCopyGrantStateFault" } return *e.ErrorCodeOverride @@ -2050,7 +2050,7 @@ func (e *InvalidSubnet) ErrorMessage() string { return *e.Message } func (e *InvalidSubnet) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSubnet" } return *e.ErrorCodeOverride @@ -2077,7 +2077,7 @@ func (e *InvalidSubscriptionStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidSubscriptionStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSubscriptionStateFault" } return *e.ErrorCodeOverride @@ -2105,7 +2105,7 @@ func (e *InvalidTableRestoreArgumentFault) ErrorMessage() string { return *e.Message } func (e *InvalidTableRestoreArgumentFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTableRestoreArgument" } return *e.ErrorCodeOverride @@ -2131,7 +2131,7 @@ func (e *InvalidTagFault) ErrorMessage() string { return *e.Message } func (e *InvalidTagFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTagFault" } return *e.ErrorCodeOverride @@ -2157,7 +2157,7 @@ func (e *InvalidUsageLimitFault) ErrorMessage() string { return *e.Message } func (e *InvalidUsageLimitFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidUsageLimit" } return *e.ErrorCodeOverride @@ -2183,7 +2183,7 @@ func (e *InvalidVPCNetworkStateFault) ErrorMessage() string { return *e.Message } func (e *InvalidVPCNetworkStateFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidVPCNetworkStateFault" } return *e.ErrorCodeOverride @@ -2209,7 +2209,7 @@ func (e *LimitExceededFault) ErrorMessage() string { return *e.Message } func (e *LimitExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededFault" } return *e.ErrorCodeOverride @@ -2235,7 +2235,7 @@ func (e *NumberOfNodesPerClusterLimitExceededFault) ErrorMessage() string { return *e.Message } func (e *NumberOfNodesPerClusterLimitExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NumberOfNodesPerClusterLimitExceeded" } return *e.ErrorCodeOverride @@ -2266,7 +2266,7 @@ func (e *NumberOfNodesQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *NumberOfNodesQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NumberOfNodesQuotaExceeded" } return *e.ErrorCodeOverride @@ -2292,7 +2292,7 @@ func (e *PartnerNotFoundFault) ErrorMessage() string { return *e.Message } func (e *PartnerNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PartnerNotFound" } return *e.ErrorCodeOverride @@ -2318,7 +2318,7 @@ func (e *ReservedNodeAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ReservedNodeAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReservedNodeAlreadyExists" } return *e.ErrorCodeOverride @@ -2344,7 +2344,7 @@ func (e *ReservedNodeAlreadyMigratedFault) ErrorMessage() string { return *e.Message } func (e *ReservedNodeAlreadyMigratedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReservedNodeAlreadyMigrated" } return *e.ErrorCodeOverride @@ -2370,7 +2370,7 @@ func (e *ReservedNodeExchangeNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ReservedNodeExchangeNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReservedNodeExchangeNotFond" } return *e.ErrorCodeOverride @@ -2396,7 +2396,7 @@ func (e *ReservedNodeNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ReservedNodeNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReservedNodeNotFound" } return *e.ErrorCodeOverride @@ -2422,7 +2422,7 @@ func (e *ReservedNodeOfferingNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ReservedNodeOfferingNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReservedNodeOfferingNotFound" } return *e.ErrorCodeOverride @@ -2451,7 +2451,7 @@ func (e *ReservedNodeQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ReservedNodeQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReservedNodeQuotaExceeded" } return *e.ErrorCodeOverride @@ -2477,7 +2477,7 @@ func (e *ResizeNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ResizeNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResizeNotFound" } return *e.ErrorCodeOverride @@ -2503,7 +2503,7 @@ func (e *ResourceNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundFault" } return *e.ErrorCodeOverride @@ -2529,7 +2529,7 @@ func (e *ScheduledActionAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *ScheduledActionAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ScheduledActionAlreadyExists" } return *e.ErrorCodeOverride @@ -2555,7 +2555,7 @@ func (e *ScheduledActionNotFoundFault) ErrorMessage() string { return *e.Message } func (e *ScheduledActionNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ScheduledActionNotFound" } return *e.ErrorCodeOverride @@ -2581,7 +2581,7 @@ func (e *ScheduledActionQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *ScheduledActionQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ScheduledActionQuotaExceeded" } return *e.ErrorCodeOverride @@ -2607,7 +2607,7 @@ func (e *ScheduledActionTypeUnsupportedFault) ErrorMessage() string { return *e.Message } func (e *ScheduledActionTypeUnsupportedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ScheduledActionTypeUnsupported" } return *e.ErrorCodeOverride @@ -2635,7 +2635,7 @@ func (e *ScheduleDefinitionTypeUnsupportedFault) ErrorMessage() string { return *e.Message } func (e *ScheduleDefinitionTypeUnsupportedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ScheduleDefinitionTypeUnsupported" } return *e.ErrorCodeOverride @@ -2663,7 +2663,7 @@ func (e *SnapshotCopyAlreadyDisabledFault) ErrorMessage() string { return *e.Message } func (e *SnapshotCopyAlreadyDisabledFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotCopyAlreadyDisabledFault" } return *e.ErrorCodeOverride @@ -2689,7 +2689,7 @@ func (e *SnapshotCopyAlreadyEnabledFault) ErrorMessage() string { return *e.Message } func (e *SnapshotCopyAlreadyEnabledFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotCopyAlreadyEnabledFault" } return *e.ErrorCodeOverride @@ -2715,7 +2715,7 @@ func (e *SnapshotCopyDisabledFault) ErrorMessage() string { return *e.Message } func (e *SnapshotCopyDisabledFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotCopyDisabledFault" } return *e.ErrorCodeOverride @@ -2742,7 +2742,7 @@ func (e *SnapshotCopyGrantAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *SnapshotCopyGrantAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotCopyGrantAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -2771,7 +2771,7 @@ func (e *SnapshotCopyGrantNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SnapshotCopyGrantNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotCopyGrantNotFoundFault" } return *e.ErrorCodeOverride @@ -2798,7 +2798,7 @@ func (e *SnapshotCopyGrantQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *SnapshotCopyGrantQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotCopyGrantQuotaExceededFault" } return *e.ErrorCodeOverride @@ -2826,7 +2826,7 @@ func (e *SnapshotScheduleAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *SnapshotScheduleAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotScheduleAlreadyExists" } return *e.ErrorCodeOverride @@ -2854,7 +2854,7 @@ func (e *SnapshotScheduleNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SnapshotScheduleNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotScheduleNotFound" } return *e.ErrorCodeOverride @@ -2880,7 +2880,7 @@ func (e *SnapshotScheduleQuotaExceededFault) ErrorMessage() string { return *e.Message } func (e *SnapshotScheduleQuotaExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotScheduleQuotaExceeded" } return *e.ErrorCodeOverride @@ -2908,7 +2908,7 @@ func (e *SnapshotScheduleUpdateInProgressFault) ErrorMessage() string { return *e.Message } func (e *SnapshotScheduleUpdateInProgressFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SnapshotScheduleUpdateInProgress" } return *e.ErrorCodeOverride @@ -2937,7 +2937,7 @@ func (e *SNSInvalidTopicFault) ErrorMessage() string { return *e.Message } func (e *SNSInvalidTopicFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SNSInvalidTopic" } return *e.ErrorCodeOverride @@ -2963,7 +2963,7 @@ func (e *SNSNoAuthorizationFault) ErrorMessage() string { return *e.Message } func (e *SNSNoAuthorizationFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SNSNoAuthorization" } return *e.ErrorCodeOverride @@ -2990,7 +2990,7 @@ func (e *SNSTopicArnNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SNSTopicArnNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SNSTopicArnNotFound" } return *e.ErrorCodeOverride @@ -3016,7 +3016,7 @@ func (e *SourceNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SourceNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SourceNotFound" } return *e.ErrorCodeOverride @@ -3042,7 +3042,7 @@ func (e *SubnetAlreadyInUse) ErrorMessage() string { return *e.Message } func (e *SubnetAlreadyInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubnetAlreadyInUse" } return *e.ErrorCodeOverride @@ -3069,7 +3069,7 @@ func (e *SubscriptionAlreadyExistFault) ErrorMessage() string { return *e.Message } func (e *SubscriptionAlreadyExistFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubscriptionAlreadyExist" } return *e.ErrorCodeOverride @@ -3097,7 +3097,7 @@ func (e *SubscriptionCategoryNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SubscriptionCategoryNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubscriptionCategoryNotFound" } return *e.ErrorCodeOverride @@ -3123,7 +3123,7 @@ func (e *SubscriptionEventIdNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SubscriptionEventIdNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubscriptionEventIdNotFound" } return *e.ErrorCodeOverride @@ -3150,7 +3150,7 @@ func (e *SubscriptionNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SubscriptionNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubscriptionNotFound" } return *e.ErrorCodeOverride @@ -3178,7 +3178,7 @@ func (e *SubscriptionSeverityNotFoundFault) ErrorMessage() string { return *e.Message } func (e *SubscriptionSeverityNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubscriptionSeverityNotFound" } return *e.ErrorCodeOverride @@ -3205,7 +3205,7 @@ func (e *TableLimitExceededFault) ErrorMessage() string { return *e.Message } func (e *TableLimitExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TableLimitExceeded" } return *e.ErrorCodeOverride @@ -3231,7 +3231,7 @@ func (e *TableRestoreNotFoundFault) ErrorMessage() string { return *e.Message } func (e *TableRestoreNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TableRestoreNotFoundFault" } return *e.ErrorCodeOverride @@ -3257,7 +3257,7 @@ func (e *TagLimitExceededFault) ErrorMessage() string { return *e.Message } func (e *TagLimitExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagLimitExceededFault" } return *e.ErrorCodeOverride @@ -3283,7 +3283,7 @@ func (e *UnauthorizedOperation) ErrorMessage() string { return *e.Message } func (e *UnauthorizedOperation) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedOperation" } return *e.ErrorCodeOverride @@ -3309,7 +3309,7 @@ func (e *UnauthorizedPartnerIntegrationFault) ErrorMessage() string { return *e.Message } func (e *UnauthorizedPartnerIntegrationFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedPartnerIntegration" } return *e.ErrorCodeOverride @@ -3337,7 +3337,7 @@ func (e *UnknownSnapshotCopyRegionFault) ErrorMessage() string { return *e.Message } func (e *UnknownSnapshotCopyRegionFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnknownSnapshotCopyRegionFault" } return *e.ErrorCodeOverride @@ -3363,7 +3363,7 @@ func (e *UnsupportedOperationFault) ErrorMessage() string { return *e.Message } func (e *UnsupportedOperationFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedOperation" } return *e.ErrorCodeOverride @@ -3389,7 +3389,7 @@ func (e *UnsupportedOptionFault) ErrorMessage() string { return *e.Message } func (e *UnsupportedOptionFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedOptionFault" } return *e.ErrorCodeOverride @@ -3415,7 +3415,7 @@ func (e *UsageLimitAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *UsageLimitAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UsageLimitAlreadyExists" } return *e.ErrorCodeOverride @@ -3441,7 +3441,7 @@ func (e *UsageLimitNotFoundFault) ErrorMessage() string { return *e.Message } func (e *UsageLimitNotFoundFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UsageLimitNotFound" } return *e.ErrorCodeOverride diff --git a/service/redshiftdata/types/errors.go b/service/redshiftdata/types/errors.go index 78d29b8943e..ade6881d182 100644 --- a/service/redshiftdata/types/errors.go +++ b/service/redshiftdata/types/errors.go @@ -26,7 +26,7 @@ func (e *ActiveStatementsExceededException) ErrorMessage() string { return *e.Message } func (e *ActiveStatementsExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ActiveStatementsExceededException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *BatchExecuteStatementException) ErrorMessage() string { return *e.Message } func (e *BatchExecuteStatementException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BatchExecuteStatementException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *DatabaseConnectionException) ErrorMessage() string { return *e.Message } func (e *DatabaseConnectionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DatabaseConnectionException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *ExecuteStatementException) ErrorMessage() string { return *e.Message } func (e *ExecuteStatementException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ExecuteStatementException" } return *e.ErrorCodeOverride @@ -134,7 +134,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -188,7 +188,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/redshiftserverless/types/errors.go b/service/redshiftserverless/types/errors.go index e064a964931..840397a15b3 100644 --- a/service/redshiftserverless/types/errors.go +++ b/service/redshiftserverless/types/errors.go @@ -28,7 +28,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *InsufficientCapacityException) ErrorMessage() string { return *e.Message } func (e *InsufficientCapacityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientCapacityException" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *InvalidPaginationException) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPaginationException" } return *e.ErrorCodeOverride @@ -161,7 +161,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -187,7 +187,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -215,7 +215,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -243,7 +243,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -269,7 +269,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/rekognition/types/errors.go b/service/rekognition/types/errors.go index 390ef4aaef3..574736ea55e 100644 --- a/service/rekognition/types/errors.go +++ b/service/rekognition/types/errors.go @@ -29,7 +29,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -62,7 +62,7 @@ func (e *HumanLoopQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *HumanLoopQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HumanLoopQuotaExceededException" } return *e.ErrorCodeOverride @@ -93,7 +93,7 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IdempotentParameterMismatchException" } return *e.ErrorCodeOverride @@ -127,7 +127,7 @@ func (e *ImageTooLargeException) ErrorMessage() string { return *e.Message } func (e *ImageTooLargeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ImageTooLargeException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *InternalServerError) ErrorMessage() string { return *e.Message } func (e *InternalServerError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerError" } return *e.ErrorCodeOverride @@ -185,7 +185,7 @@ func (e *InvalidImageFormatException) ErrorMessage() string { return *e.Message } func (e *InvalidImageFormatException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidImageFormatException" } return *e.ErrorCodeOverride @@ -214,7 +214,7 @@ func (e *InvalidPaginationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPaginationTokenException" } return *e.ErrorCodeOverride @@ -244,7 +244,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -273,7 +273,7 @@ func (e *InvalidPolicyRevisionIdException) ErrorMessage() string { return *e.Message } func (e *InvalidPolicyRevisionIdException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPolicyRevisionIdException" } return *e.ErrorCodeOverride @@ -302,7 +302,7 @@ func (e *InvalidS3ObjectException) ErrorMessage() string { return *e.Message } func (e *InvalidS3ObjectException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidS3ObjectException" } return *e.ErrorCodeOverride @@ -335,7 +335,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -365,7 +365,7 @@ func (e *MalformedPolicyDocumentException) ErrorMessage() string { return *e.Message } func (e *MalformedPolicyDocumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MalformedPolicyDocumentException" } return *e.ErrorCodeOverride @@ -395,7 +395,7 @@ func (e *ProvisionedThroughputExceededException) ErrorMessage() string { return *e.Message } func (e *ProvisionedThroughputExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ProvisionedThroughputExceededException" } return *e.ErrorCodeOverride @@ -426,7 +426,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -455,7 +455,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -484,7 +484,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -514,7 +514,7 @@ func (e *ResourceNotReadyException) ErrorMessage() string { return *e.Message } func (e *ResourceNotReadyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotReadyException" } return *e.ErrorCodeOverride @@ -545,7 +545,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -575,7 +575,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -605,7 +605,7 @@ func (e *VideoTooLargeException) ErrorMessage() string { return *e.Message } func (e *VideoTooLargeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "VideoTooLargeException" } return *e.ErrorCodeOverride diff --git a/service/resiliencehub/types/errors.go b/service/resiliencehub/types/errors.go index 06d140e771c..c8a86e55b26 100644 --- a/service/resiliencehub/types/errors.go +++ b/service/resiliencehub/types/errors.go @@ -28,7 +28,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -60,7 +60,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -87,7 +87,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -116,7 +116,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -144,7 +144,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -173,7 +173,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -199,7 +199,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/resourceexplorer2/types/errors.go b/service/resourceexplorer2/types/errors.go index e56663bb30d..090825695ef 100644 --- a/service/resourceexplorer2/types/errors.go +++ b/service/resourceexplorer2/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -109,7 +109,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -138,7 +138,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -166,7 +166,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -192,7 +192,7 @@ func (e *UnauthorizedException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedException" } return *e.ErrorCodeOverride @@ -221,7 +221,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/resourcegroups/types/errors.go b/service/resourcegroups/types/errors.go index 540b7d5e906..6a16667f354 100644 --- a/service/resourcegroups/types/errors.go +++ b/service/resourcegroups/types/errors.go @@ -26,7 +26,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InternalServerErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServerErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerErrorException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *MethodNotAllowedException) ErrorMessage() string { return *e.Message } func (e *MethodNotAllowedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MethodNotAllowedException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -184,7 +184,7 @@ func (e *UnauthorizedException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedException" } return *e.ErrorCodeOverride diff --git a/service/resourcegroupstaggingapi/types/errors.go b/service/resourcegroupstaggingapi/types/errors.go index 18a006f12bd..48e8b29c28d 100644 --- a/service/resourcegroupstaggingapi/types/errors.go +++ b/service/resourcegroupstaggingapi/types/errors.go @@ -27,7 +27,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -69,7 +69,7 @@ func (e *ConstraintViolationException) ErrorMessage() string { return *e.Message } func (e *ConstraintViolationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConstraintViolationException" } return *e.ErrorCodeOverride @@ -96,7 +96,7 @@ func (e *InternalServiceException) ErrorMessage() string { return *e.Message } func (e *InternalServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceException" } return *e.ErrorCodeOverride @@ -139,7 +139,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -166,7 +166,7 @@ func (e *PaginationTokenExpiredException) ErrorMessage() string { return *e.Message } func (e *PaginationTokenExpiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PaginationTokenExpiredException" } return *e.ErrorCodeOverride @@ -192,7 +192,7 @@ func (e *ThrottledException) ErrorMessage() string { return *e.Message } func (e *ThrottledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottledException" } return *e.ErrorCodeOverride diff --git a/service/robomaker/types/errors.go b/service/robomaker/types/errors.go index 7b0ae37dfe5..b8147f571b5 100644 --- a/service/robomaker/types/errors.go +++ b/service/robomaker/types/errors.go @@ -26,7 +26,7 @@ func (e *ConcurrentDeploymentException) ErrorMessage() string { return *e.Message } func (e *ConcurrentDeploymentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentDeploymentException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IdempotentParameterMismatchException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -109,7 +109,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -136,7 +136,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -188,7 +188,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -214,7 +214,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -240,7 +240,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride diff --git a/service/rolesanywhere/types/errors.go b/service/rolesanywhere/types/errors.go index ee6e045ae85..149690f80a5 100644 --- a/service/rolesanywhere/types/errors.go +++ b/service/rolesanywhere/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/route53/types/errors.go b/service/route53/types/errors.go index 73f4125ff86..8ae91df46a7 100644 --- a/service/route53/types/errors.go +++ b/service/route53/types/errors.go @@ -26,7 +26,7 @@ func (e *CidrBlockInUseException) ErrorMessage() string { return *e.Message } func (e *CidrBlockInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CidrBlockInUseException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *CidrCollectionAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *CidrCollectionAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CidrCollectionAlreadyExistsException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *CidrCollectionInUseException) ErrorMessage() string { return *e.Message } func (e *CidrCollectionInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CidrCollectionInUseException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *CidrCollectionVersionMismatchException) ErrorMessage() string { return *e.Message } func (e *CidrCollectionVersionMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CidrCollectionVersionMismatchException" } return *e.ErrorCodeOverride @@ -137,7 +137,7 @@ func (e *ConcurrentModification) ErrorMessage() string { return *e.Message } func (e *ConcurrentModification) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModification" } return *e.ErrorCodeOverride @@ -181,7 +181,7 @@ func (e *ConflictingDomainExists) ErrorMessage() string { return *e.Message } func (e *ConflictingDomainExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictingDomainExists" } return *e.ErrorCodeOverride @@ -210,7 +210,7 @@ func (e *ConflictingTypes) ErrorMessage() string { return *e.Message } func (e *ConflictingTypes) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictingTypes" } return *e.ErrorCodeOverride @@ -237,7 +237,7 @@ func (e *DelegationSetAlreadyCreated) ErrorMessage() string { return *e.Message } func (e *DelegationSetAlreadyCreated) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DelegationSetAlreadyCreated" } return *e.ErrorCodeOverride @@ -263,7 +263,7 @@ func (e *DelegationSetAlreadyReusable) ErrorMessage() string { return *e.Message } func (e *DelegationSetAlreadyReusable) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DelegationSetAlreadyReusable" } return *e.ErrorCodeOverride @@ -290,7 +290,7 @@ func (e *DelegationSetInUse) ErrorMessage() string { return *e.Message } func (e *DelegationSetInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DelegationSetInUse" } return *e.ErrorCodeOverride @@ -320,7 +320,7 @@ func (e *DelegationSetNotAvailable) ErrorMessage() string { return *e.Message } func (e *DelegationSetNotAvailable) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DelegationSetNotAvailable" } return *e.ErrorCodeOverride @@ -346,7 +346,7 @@ func (e *DelegationSetNotReusable) ErrorMessage() string { return *e.Message } func (e *DelegationSetNotReusable) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DelegationSetNotReusable" } return *e.ErrorCodeOverride @@ -372,7 +372,7 @@ func (e *DNSSECNotFound) ErrorMessage() string { return *e.Message } func (e *DNSSECNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DNSSECNotFound" } return *e.ErrorCodeOverride @@ -407,7 +407,7 @@ func (e *HealthCheckAlreadyExists) ErrorMessage() string { return *e.Message } func (e *HealthCheckAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HealthCheckAlreadyExists" } return *e.ErrorCodeOverride @@ -433,7 +433,7 @@ func (e *HealthCheckInUse) ErrorMessage() string { return *e.Message } func (e *HealthCheckInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HealthCheckInUse" } return *e.ErrorCodeOverride @@ -460,7 +460,7 @@ func (e *HealthCheckVersionMismatch) ErrorMessage() string { return *e.Message } func (e *HealthCheckVersionMismatch) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HealthCheckVersionMismatch" } return *e.ErrorCodeOverride @@ -488,7 +488,7 @@ func (e *HostedZoneAlreadyExists) ErrorMessage() string { return *e.Message } func (e *HostedZoneAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HostedZoneAlreadyExists" } return *e.ErrorCodeOverride @@ -514,7 +514,7 @@ func (e *HostedZoneNotEmpty) ErrorMessage() string { return *e.Message } func (e *HostedZoneNotEmpty) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HostedZoneNotEmpty" } return *e.ErrorCodeOverride @@ -540,7 +540,7 @@ func (e *HostedZoneNotFound) ErrorMessage() string { return *e.Message } func (e *HostedZoneNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HostedZoneNotFound" } return *e.ErrorCodeOverride @@ -566,7 +566,7 @@ func (e *HostedZoneNotPrivate) ErrorMessage() string { return *e.Message } func (e *HostedZoneNotPrivate) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HostedZoneNotPrivate" } return *e.ErrorCodeOverride @@ -593,7 +593,7 @@ func (e *HostedZonePartiallyDelegated) ErrorMessage() string { return *e.Message } func (e *HostedZonePartiallyDelegated) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HostedZonePartiallyDelegated" } return *e.ErrorCodeOverride @@ -620,7 +620,7 @@ func (e *IncompatibleVersion) ErrorMessage() string { return *e.Message } func (e *IncompatibleVersion) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IncompatibleVersion" } return *e.ErrorCodeOverride @@ -666,7 +666,7 @@ func (e *InsufficientCloudWatchLogsResourcePolicy) ErrorMessage() string { return *e.Message } func (e *InsufficientCloudWatchLogsResourcePolicy) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InsufficientCloudWatchLogsResourcePolicy" } return *e.ErrorCodeOverride @@ -694,7 +694,7 @@ func (e *InvalidArgument) ErrorMessage() string { return *e.Message } func (e *InvalidArgument) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArgument" } return *e.ErrorCodeOverride @@ -723,7 +723,7 @@ func (e *InvalidChangeBatch) ErrorMessage() string { return *e.Message } func (e *InvalidChangeBatch) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidChangeBatch" } return *e.ErrorCodeOverride @@ -749,7 +749,7 @@ func (e *InvalidDomainName) ErrorMessage() string { return *e.Message } func (e *InvalidDomainName) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDomainName" } return *e.ErrorCodeOverride @@ -775,7 +775,7 @@ func (e *InvalidInput) ErrorMessage() string { return *e.Message } func (e *InvalidInput) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInput" } return *e.ErrorCodeOverride @@ -801,7 +801,7 @@ func (e *InvalidKeySigningKeyName) ErrorMessage() string { return *e.Message } func (e *InvalidKeySigningKeyName) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidKeySigningKeyName" } return *e.ErrorCodeOverride @@ -828,7 +828,7 @@ func (e *InvalidKeySigningKeyStatus) ErrorMessage() string { return *e.Message } func (e *InvalidKeySigningKeyStatus) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidKeySigningKeyStatus" } return *e.ErrorCodeOverride @@ -855,7 +855,7 @@ func (e *InvalidKMSArn) ErrorMessage() string { return *e.Message } func (e *InvalidKMSArn) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidKMSArn" } return *e.ErrorCodeOverride @@ -882,7 +882,7 @@ func (e *InvalidPaginationToken) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationToken) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPaginationToken" } return *e.ErrorCodeOverride @@ -909,7 +909,7 @@ func (e *InvalidSigningStatus) ErrorMessage() string { return *e.Message } func (e *InvalidSigningStatus) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSigningStatus" } return *e.ErrorCodeOverride @@ -936,7 +936,7 @@ func (e *InvalidTrafficPolicyDocument) ErrorMessage() string { return *e.Message } func (e *InvalidTrafficPolicyDocument) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTrafficPolicyDocument" } return *e.ErrorCodeOverride @@ -963,7 +963,7 @@ func (e *InvalidVPCId) ErrorMessage() string { return *e.Message } func (e *InvalidVPCId) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidVPCId" } return *e.ErrorCodeOverride @@ -990,7 +990,7 @@ func (e *KeySigningKeyAlreadyExists) ErrorMessage() string { return *e.Message } func (e *KeySigningKeyAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KeySigningKeyAlreadyExists" } return *e.ErrorCodeOverride @@ -1016,7 +1016,7 @@ func (e *KeySigningKeyInParentDSRecord) ErrorMessage() string { return *e.Message } func (e *KeySigningKeyInParentDSRecord) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KeySigningKeyInParentDSRecord" } return *e.ErrorCodeOverride @@ -1044,7 +1044,7 @@ func (e *KeySigningKeyInUse) ErrorMessage() string { return *e.Message } func (e *KeySigningKeyInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KeySigningKeyInUse" } return *e.ErrorCodeOverride @@ -1070,7 +1070,7 @@ func (e *KeySigningKeyWithActiveStatusNotFound) ErrorMessage() string { return *e.Message } func (e *KeySigningKeyWithActiveStatusNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KeySigningKeyWithActiveStatusNotFound" } return *e.ErrorCodeOverride @@ -1100,7 +1100,7 @@ func (e *LastVPCAssociation) ErrorMessage() string { return *e.Message } func (e *LastVPCAssociation) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LastVPCAssociation" } return *e.ErrorCodeOverride @@ -1129,7 +1129,7 @@ func (e *LimitsExceeded) ErrorMessage() string { return *e.Message } func (e *LimitsExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitsExceeded" } return *e.ErrorCodeOverride @@ -1155,7 +1155,7 @@ func (e *NoSuchChange) ErrorMessage() string { return *e.Message } func (e *NoSuchChange) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchChange" } return *e.ErrorCodeOverride @@ -1181,7 +1181,7 @@ func (e *NoSuchCidrCollectionException) ErrorMessage() string { return *e.Message } func (e *NoSuchCidrCollectionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchCidrCollectionException" } return *e.ErrorCodeOverride @@ -1207,7 +1207,7 @@ func (e *NoSuchCidrLocationException) ErrorMessage() string { return *e.Message } func (e *NoSuchCidrLocationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchCidrLocationException" } return *e.ErrorCodeOverride @@ -1233,7 +1233,7 @@ func (e *NoSuchCloudWatchLogsLogGroup) ErrorMessage() string { return *e.Message } func (e *NoSuchCloudWatchLogsLogGroup) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchCloudWatchLogsLogGroup" } return *e.ErrorCodeOverride @@ -1259,7 +1259,7 @@ func (e *NoSuchDelegationSet) ErrorMessage() string { return *e.Message } func (e *NoSuchDelegationSet) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchDelegationSet" } return *e.ErrorCodeOverride @@ -1288,7 +1288,7 @@ func (e *NoSuchGeoLocation) ErrorMessage() string { return *e.Message } func (e *NoSuchGeoLocation) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchGeoLocation" } return *e.ErrorCodeOverride @@ -1314,7 +1314,7 @@ func (e *NoSuchHealthCheck) ErrorMessage() string { return *e.Message } func (e *NoSuchHealthCheck) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchHealthCheck" } return *e.ErrorCodeOverride @@ -1340,7 +1340,7 @@ func (e *NoSuchHostedZone) ErrorMessage() string { return *e.Message } func (e *NoSuchHostedZone) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchHostedZone" } return *e.ErrorCodeOverride @@ -1366,7 +1366,7 @@ func (e *NoSuchKeySigningKey) ErrorMessage() string { return *e.Message } func (e *NoSuchKeySigningKey) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchKeySigningKey" } return *e.ErrorCodeOverride @@ -1392,7 +1392,7 @@ func (e *NoSuchQueryLoggingConfig) ErrorMessage() string { return *e.Message } func (e *NoSuchQueryLoggingConfig) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchQueryLoggingConfig" } return *e.ErrorCodeOverride @@ -1418,7 +1418,7 @@ func (e *NoSuchTrafficPolicy) ErrorMessage() string { return *e.Message } func (e *NoSuchTrafficPolicy) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchTrafficPolicy" } return *e.ErrorCodeOverride @@ -1444,7 +1444,7 @@ func (e *NoSuchTrafficPolicyInstance) ErrorMessage() string { return *e.Message } func (e *NoSuchTrafficPolicyInstance) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchTrafficPolicyInstance" } return *e.ErrorCodeOverride @@ -1471,7 +1471,7 @@ func (e *NotAuthorizedException) ErrorMessage() string { return *e.Message } func (e *NotAuthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotAuthorizedException" } return *e.ErrorCodeOverride @@ -1501,7 +1501,7 @@ func (e *PriorRequestNotComplete) ErrorMessage() string { return *e.Message } func (e *PriorRequestNotComplete) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PriorRequestNotComplete" } return *e.ErrorCodeOverride @@ -1528,7 +1528,7 @@ func (e *PublicZoneVPCAssociation) ErrorMessage() string { return *e.Message } func (e *PublicZoneVPCAssociation) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PublicZoneVPCAssociation" } return *e.ErrorCodeOverride @@ -1555,7 +1555,7 @@ func (e *QueryLoggingConfigAlreadyExists) ErrorMessage() string { return *e.Message } func (e *QueryLoggingConfigAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "QueryLoggingConfigAlreadyExists" } return *e.ErrorCodeOverride @@ -1581,7 +1581,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -1618,7 +1618,7 @@ func (e *TooManyHealthChecks) ErrorMessage() string { return *e.Message } func (e *TooManyHealthChecks) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyHealthChecks" } return *e.ErrorCodeOverride @@ -1656,7 +1656,7 @@ func (e *TooManyHostedZones) ErrorMessage() string { return *e.Message } func (e *TooManyHostedZones) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyHostedZones" } return *e.ErrorCodeOverride @@ -1683,7 +1683,7 @@ func (e *TooManyKeySigningKeys) ErrorMessage() string { return *e.Message } func (e *TooManyKeySigningKeys) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyKeySigningKeys" } return *e.ErrorCodeOverride @@ -1717,7 +1717,7 @@ func (e *TooManyTrafficPolicies) ErrorMessage() string { return *e.Message } func (e *TooManyTrafficPolicies) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTrafficPolicies" } return *e.ErrorCodeOverride @@ -1751,7 +1751,7 @@ func (e *TooManyTrafficPolicyInstances) ErrorMessage() string { return *e.Message } func (e *TooManyTrafficPolicyInstances) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTrafficPolicyInstances" } return *e.ErrorCodeOverride @@ -1784,7 +1784,7 @@ func (e *TooManyTrafficPolicyVersionsForCurrentPolicy) ErrorMessage() string { return *e.Message } func (e *TooManyTrafficPolicyVersionsForCurrentPolicy) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTrafficPolicyVersionsForCurrentPolicy" } return *e.ErrorCodeOverride @@ -1816,7 +1816,7 @@ func (e *TooManyVPCAssociationAuthorizations) ErrorMessage() string { return *e.Message } func (e *TooManyVPCAssociationAuthorizations) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyVPCAssociationAuthorizations" } return *e.ErrorCodeOverride @@ -1844,7 +1844,7 @@ func (e *TrafficPolicyAlreadyExists) ErrorMessage() string { return *e.Message } func (e *TrafficPolicyAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TrafficPolicyAlreadyExists" } return *e.ErrorCodeOverride @@ -1870,7 +1870,7 @@ func (e *TrafficPolicyInstanceAlreadyExists) ErrorMessage() string { return *e.Message } func (e *TrafficPolicyInstanceAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TrafficPolicyInstanceAlreadyExists" } return *e.ErrorCodeOverride @@ -1899,7 +1899,7 @@ func (e *TrafficPolicyInUse) ErrorMessage() string { return *e.Message } func (e *TrafficPolicyInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TrafficPolicyInUse" } return *e.ErrorCodeOverride @@ -1926,7 +1926,7 @@ func (e *VPCAssociationAuthorizationNotFound) ErrorMessage() string { return *e.Message } func (e *VPCAssociationAuthorizationNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "VPCAssociationAuthorizationNotFound" } return *e.ErrorCodeOverride @@ -1954,7 +1954,7 @@ func (e *VPCAssociationNotFound) ErrorMessage() string { return *e.Message } func (e *VPCAssociationNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "VPCAssociationNotFound" } return *e.ErrorCodeOverride diff --git a/service/route53domains/types/errors.go b/service/route53domains/types/errors.go index 3e92c1884c0..ad1d3dc413e 100644 --- a/service/route53domains/types/errors.go +++ b/service/route53domains/types/errors.go @@ -28,7 +28,7 @@ func (e *DnssecLimitExceeded) ErrorMessage() string { return *e.Message } func (e *DnssecLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DnssecLimitExceeded" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *DomainLimitExceeded) ErrorMessage() string { return *e.Message } func (e *DomainLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DomainLimitExceeded" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *DuplicateRequest) ErrorMessage() string { return *e.Message } func (e *DuplicateRequest) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateRequest" } return *e.ErrorCodeOverride @@ -109,7 +109,7 @@ func (e *InvalidInput) ErrorMessage() string { return *e.Message } func (e *InvalidInput) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInput" } return *e.ErrorCodeOverride @@ -136,7 +136,7 @@ func (e *OperationLimitExceeded) ErrorMessage() string { return *e.Message } func (e *OperationLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationLimitExceeded" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *TLDRulesViolation) ErrorMessage() string { return *e.Message } func (e *TLDRulesViolation) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TLDRulesViolation" } return *e.ErrorCodeOverride @@ -188,7 +188,7 @@ func (e *UnsupportedTLD) ErrorMessage() string { return *e.Message } func (e *UnsupportedTLD) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedTLD" } return *e.ErrorCodeOverride diff --git a/service/route53recoverycluster/types/errors.go b/service/route53recoverycluster/types/errors.go index 51f85bce2eb..ac209c014e5 100644 --- a/service/route53recoverycluster/types/errors.go +++ b/service/route53recoverycluster/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *EndpointTemporarilyUnavailableException) ErrorMessage() string { return *e.Message } func (e *EndpointTemporarilyUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EndpointTemporarilyUnavailableException" } return *e.ErrorCodeOverride @@ -111,7 +111,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -140,7 +140,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -172,7 +172,7 @@ func (e *ServiceLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceLimitExceededException" } return *e.ErrorCodeOverride @@ -200,7 +200,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -229,7 +229,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/route53recoverycontrolconfig/types/errors.go b/service/route53recoverycontrolconfig/types/errors.go index 616cc35a066..661c4f91a3c 100644 --- a/service/route53recoverycontrolconfig/types/errors.go +++ b/service/route53recoverycontrolconfig/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -132,7 +132,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -158,7 +158,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -186,7 +186,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/route53recoveryreadiness/types/errors.go b/service/route53recoveryreadiness/types/errors.go index c28de9fb34d..04e8b947efb 100644 --- a/service/route53recoveryreadiness/types/errors.go +++ b/service/route53recoveryreadiness/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/route53resolver/types/errors.go b/service/route53resolver/types/errors.go index 090c1c7e0cc..e82ae900992 100644 --- a/service/route53resolver/types/errors.go +++ b/service/route53resolver/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InternalServiceErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServiceErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceErrorException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -132,7 +132,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -158,7 +158,7 @@ func (e *InvalidPolicyDocument) ErrorMessage() string { return *e.Message } func (e *InvalidPolicyDocument) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPolicyDocument" } return *e.ErrorCodeOverride @@ -184,7 +184,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -210,7 +210,7 @@ func (e *InvalidTagException) ErrorMessage() string { return *e.Message } func (e *InvalidTagException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTagException" } return *e.ErrorCodeOverride @@ -238,7 +238,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -266,7 +266,7 @@ func (e *ResourceExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceExistsException" } return *e.ErrorCodeOverride @@ -294,7 +294,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -322,7 +322,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -350,7 +350,7 @@ func (e *ResourceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ResourceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceUnavailableException" } return *e.ErrorCodeOverride @@ -376,7 +376,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -402,7 +402,7 @@ func (e *UnknownResourceException) ErrorMessage() string { return *e.Message } func (e *UnknownResourceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnknownResourceException" } return *e.ErrorCodeOverride @@ -427,7 +427,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/rum/types/errors.go b/service/rum/types/errors.go index 65beb19900a..61e3b1b174a 100644 --- a/service/rum/types/errors.go +++ b/service/rum/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -112,7 +112,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -138,7 +138,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -168,7 +168,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -194,7 +194,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/s3/types/errors.go b/service/s3/types/errors.go index 4567a385cbb..18134c52df4 100644 --- a/service/s3/types/errors.go +++ b/service/s3/types/errors.go @@ -27,7 +27,7 @@ func (e *BucketAlreadyExists) ErrorMessage() string { return *e.Message } func (e *BucketAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BucketAlreadyExists" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *BucketAlreadyOwnedByYou) ErrorMessage() string { return *e.Message } func (e *BucketAlreadyOwnedByYou) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BucketAlreadyOwnedByYou" } return *e.ErrorCodeOverride @@ -86,7 +86,7 @@ func (e *InvalidObjectState) ErrorMessage() string { return *e.Message } func (e *InvalidObjectState) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidObjectState" } return *e.ErrorCodeOverride @@ -112,7 +112,7 @@ func (e *NoSuchBucket) ErrorMessage() string { return *e.Message } func (e *NoSuchBucket) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchBucket" } return *e.ErrorCodeOverride @@ -138,7 +138,7 @@ func (e *NoSuchKey) ErrorMessage() string { return *e.Message } func (e *NoSuchKey) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchKey" } return *e.ErrorCodeOverride @@ -164,7 +164,7 @@ func (e *NoSuchUpload) ErrorMessage() string { return *e.Message } func (e *NoSuchUpload) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchUpload" } return *e.ErrorCodeOverride @@ -190,7 +190,7 @@ func (e *NotFound) ErrorMessage() string { return *e.Message } func (e *NotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFound" } return *e.ErrorCodeOverride @@ -216,7 +216,7 @@ func (e *ObjectAlreadyInActiveTierError) ErrorMessage() string { return *e.Message } func (e *ObjectAlreadyInActiveTierError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ObjectAlreadyInActiveTierError" } return *e.ErrorCodeOverride @@ -243,7 +243,7 @@ func (e *ObjectNotInActiveTierError) ErrorMessage() string { return *e.Message } func (e *ObjectNotInActiveTierError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ObjectNotInActiveTierError" } return *e.ErrorCodeOverride diff --git a/service/s3control/types/errors.go b/service/s3control/types/errors.go index fe06cea1e17..6d47d4bde0c 100644 --- a/service/s3control/types/errors.go +++ b/service/s3control/types/errors.go @@ -25,7 +25,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *BucketAlreadyExists) ErrorMessage() string { return *e.Message } func (e *BucketAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BucketAlreadyExists" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *BucketAlreadyOwnedByYou) ErrorMessage() string { return *e.Message } func (e *BucketAlreadyOwnedByYou) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BucketAlreadyOwnedByYou" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *IdempotencyException) ErrorMessage() string { return *e.Message } func (e *IdempotencyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IdempotencyException" } return *e.ErrorCodeOverride @@ -129,7 +129,7 @@ func (e *InternalServiceException) ErrorMessage() string { return *e.Message } func (e *InternalServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceException" } return *e.ErrorCodeOverride @@ -154,7 +154,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -179,7 +179,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -204,7 +204,7 @@ func (e *JobStatusException) ErrorMessage() string { return *e.Message } func (e *JobStatusException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "JobStatusException" } return *e.ErrorCodeOverride @@ -231,7 +231,7 @@ func (e *NoSuchPublicAccessBlockConfiguration) ErrorMessage() string { return *e.Message } func (e *NoSuchPublicAccessBlockConfiguration) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchPublicAccessBlockConfiguration" } return *e.ErrorCodeOverride @@ -258,7 +258,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -283,7 +283,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -309,7 +309,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride diff --git a/service/s3outposts/types/errors.go b/service/s3outposts/types/errors.go index 44a76190315..ef669ea6776 100644 --- a/service/s3outposts/types/errors.go +++ b/service/s3outposts/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/sagemaker/types/errors.go b/service/sagemaker/types/errors.go index 7a2232fdf95..f1e14cdd27e 100644 --- a/service/sagemaker/types/errors.go +++ b/service/sagemaker/types/errors.go @@ -27,7 +27,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ResourceInUse) ErrorMessage() string { return *e.Message } func (e *ResourceInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUse" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *ResourceLimitExceeded) ErrorMessage() string { return *e.Message } func (e *ResourceLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceLimitExceeded" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *ResourceNotFound) ErrorMessage() string { return *e.Message } func (e *ResourceNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFound" } return *e.ErrorCodeOverride diff --git a/service/sagemakera2iruntime/types/errors.go b/service/sagemakera2iruntime/types/errors.go index b08329583f5..5b09ad8f2d7 100644 --- a/service/sagemakera2iruntime/types/errors.go +++ b/service/sagemakera2iruntime/types/errors.go @@ -28,7 +28,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -116,7 +116,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -142,7 +142,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -168,7 +168,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/sagemakeredge/types/errors.go b/service/sagemakeredge/types/errors.go index 34d11b8cbd8..5ee3c91aa64 100644 --- a/service/sagemakeredge/types/errors.go +++ b/service/sagemakeredge/types/errors.go @@ -27,7 +27,7 @@ func (e *InternalServiceException) ErrorMessage() string { return *e.Message } func (e *InternalServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceException" } return *e.ErrorCodeOverride diff --git a/service/sagemakerfeaturestoreruntime/types/errors.go b/service/sagemakerfeaturestoreruntime/types/errors.go index bf594afcba2..3e2e53e5f8c 100644 --- a/service/sagemakerfeaturestoreruntime/types/errors.go +++ b/service/sagemakerfeaturestoreruntime/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessForbidden) ErrorMessage() string { return *e.Message } func (e *AccessForbidden) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessForbidden" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *InternalFailure) ErrorMessage() string { return *e.Message } func (e *InternalFailure) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailure" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *ResourceNotFound) ErrorMessage() string { return *e.Message } func (e *ResourceNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFound" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *ServiceUnavailable) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailable) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailable" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *ValidationError) ErrorMessage() string { return *e.Message } func (e *ValidationError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationError" } return *e.ErrorCodeOverride diff --git a/service/sagemakergeospatial/types/errors.go b/service/sagemakergeospatial/types/errors.go index 3e69a41a1f7..8a8d996ca1e 100644 --- a/service/sagemakergeospatial/types/errors.go +++ b/service/sagemakergeospatial/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -109,7 +109,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -137,7 +137,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -165,7 +165,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -194,7 +194,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/sagemakerruntime/types/errors.go b/service/sagemakerruntime/types/errors.go index 1df2a061de9..efcd7be5047 100644 --- a/service/sagemakerruntime/types/errors.go +++ b/service/sagemakerruntime/types/errors.go @@ -27,7 +27,7 @@ func (e *InternalDependencyException) ErrorMessage() string { return *e.Message } func (e *InternalDependencyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalDependencyException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *InternalFailure) ErrorMessage() string { return *e.Message } func (e *InternalFailure) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailure" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *ModelError) ErrorMessage() string { return *e.Message } func (e *ModelError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ModelError" } return *e.ErrorCodeOverride @@ -111,7 +111,7 @@ func (e *ModelNotReadyException) ErrorMessage() string { return *e.Message } func (e *ModelNotReadyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ModelNotReadyException" } return *e.ErrorCodeOverride @@ -137,7 +137,7 @@ func (e *ServiceUnavailable) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailable) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailable" } return *e.ErrorCodeOverride @@ -163,7 +163,7 @@ func (e *ValidationError) ErrorMessage() string { return *e.Message } func (e *ValidationError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationError" } return *e.ErrorCodeOverride diff --git a/service/savingsplans/types/errors.go b/service/savingsplans/types/errors.go index 67424b9aba8..5f0e4ccb100 100644 --- a/service/savingsplans/types/errors.go +++ b/service/savingsplans/types/errors.go @@ -26,7 +26,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/scheduler/types/errors.go b/service/scheduler/types/errors.go index 97af2d15fea..8d21c4d7032 100644 --- a/service/scheduler/types/errors.go +++ b/service/scheduler/types/errors.go @@ -26,7 +26,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/schemas/types/errors.go b/service/schemas/types/errors.go index f31aa2f8dd8..7b730324174 100644 --- a/service/schemas/types/errors.go +++ b/service/schemas/types/errors.go @@ -27,7 +27,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *GoneException) ErrorMessage() string { return *e.Message } func (e *GoneException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "GoneException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *InternalServerErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServerErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerErrorException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *PreconditionFailedException) ErrorMessage() string { return *e.Message } func (e *PreconditionFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PreconditionFailedException" } return *e.ErrorCodeOverride @@ -216,7 +216,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -243,7 +243,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -270,7 +270,7 @@ func (e *UnauthorizedException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedException" } return *e.ErrorCodeOverride diff --git a/service/secretsmanager/types/errors.go b/service/secretsmanager/types/errors.go index d790cd8129b..f9236760c16 100644 --- a/service/secretsmanager/types/errors.go +++ b/service/secretsmanager/types/errors.go @@ -27,7 +27,7 @@ func (e *DecryptionFailure) ErrorMessage() string { return *e.Message } func (e *DecryptionFailure) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DecryptionFailure" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *EncryptionFailure) ErrorMessage() string { return *e.Message } func (e *EncryptionFailure) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EncryptionFailure" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InternalServiceError) ErrorMessage() string { return *e.Message } func (e *InternalServiceError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceError" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -134,7 +134,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -172,7 +172,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -198,7 +198,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -224,7 +224,7 @@ func (e *MalformedPolicyDocumentException) ErrorMessage() string { return *e.Message } func (e *MalformedPolicyDocumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MalformedPolicyDocumentException" } return *e.ErrorCodeOverride @@ -250,7 +250,7 @@ func (e *PreconditionNotMetException) ErrorMessage() string { return *e.Message } func (e *PreconditionNotMetException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PreconditionNotMetException" } return *e.ErrorCodeOverride @@ -277,7 +277,7 @@ func (e *PublicPolicyException) ErrorMessage() string { return *e.Message } func (e *PublicPolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PublicPolicyException" } return *e.ErrorCodeOverride @@ -303,7 +303,7 @@ func (e *ResourceExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceExistsException" } return *e.ErrorCodeOverride @@ -329,7 +329,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/securityhub/types/errors.go b/service/securityhub/types/errors.go index f77e0b270fa..a8d4cc36af1 100644 --- a/service/securityhub/types/errors.go +++ b/service/securityhub/types/errors.go @@ -28,7 +28,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *InternalException) ErrorMessage() string { return *e.Message } func (e *InternalException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalException" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *InvalidAccessException) ErrorMessage() string { return *e.Message } func (e *InvalidAccessException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAccessException" } return *e.ErrorCodeOverride @@ -113,7 +113,7 @@ func (e *InvalidInputException) ErrorMessage() string { return *e.Message } func (e *InvalidInputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputException" } return *e.ErrorCodeOverride @@ -143,7 +143,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -171,7 +171,7 @@ func (e *ResourceConflictException) ErrorMessage() string { return *e.Message } func (e *ResourceConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceConflictException" } return *e.ErrorCodeOverride @@ -199,7 +199,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/securitylake/types/errors.go b/service/securitylake/types/errors.go index a5b9fecab9f..34b7fe5c415 100644 --- a/service/securitylake/types/errors.go +++ b/service/securitylake/types/errors.go @@ -31,7 +31,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -59,7 +59,7 @@ func (e *AccountNotFoundException) ErrorMessage() string { return *e.Message } func (e *AccountNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccountNotFoundException" } return *e.ErrorCodeOverride @@ -86,7 +86,7 @@ func (e *BucketNotFoundException) ErrorMessage() string { return *e.Message } func (e *BucketNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BucketNotFoundException" } return *e.ErrorCodeOverride @@ -112,7 +112,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -144,7 +144,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -170,7 +170,7 @@ func (e *ConflictSourceNamesException) ErrorMessage() string { return *e.Message } func (e *ConflictSourceNamesException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictSourceNamesException" } return *e.ErrorCodeOverride @@ -196,7 +196,7 @@ func (e *ConflictSubscriptionException) ErrorMessage() string { return *e.Message } func (e *ConflictSubscriptionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictSubscriptionException" } return *e.ErrorCodeOverride @@ -222,7 +222,7 @@ func (e *EventBridgeException) ErrorMessage() string { return *e.Message } func (e *EventBridgeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EventBridgeException" } return *e.ErrorCodeOverride @@ -251,7 +251,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -278,7 +278,7 @@ func (e *InvalidInputException) ErrorMessage() string { return *e.Message } func (e *InvalidInputException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputException" } return *e.ErrorCodeOverride @@ -307,7 +307,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -337,7 +337,7 @@ func (e *S3Exception) ErrorMessage() string { return *e.Message } func (e *S3Exception) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "S3Exception" } return *e.ErrorCodeOverride @@ -370,7 +370,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -400,7 +400,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -429,7 +429,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/serverlessapplicationrepository/types/errors.go b/service/serverlessapplicationrepository/types/errors.go index 81eb88ae0db..dde3b2cd45e 100644 --- a/service/serverlessapplicationrepository/types/errors.go +++ b/service/serverlessapplicationrepository/types/errors.go @@ -28,7 +28,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *ForbiddenException) ErrorMessage() string { return *e.Message } func (e *ForbiddenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride @@ -112,7 +112,7 @@ func (e *InternalServerErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServerErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerErrorException" } return *e.ErrorCodeOverride @@ -141,7 +141,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -169,7 +169,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride diff --git a/service/servicecatalog/types/errors.go b/service/servicecatalog/types/errors.go index c027ec10415..483d99c636a 100644 --- a/service/servicecatalog/types/errors.go +++ b/service/servicecatalog/types/errors.go @@ -26,7 +26,7 @@ func (e *DuplicateResourceException) ErrorMessage() string { return *e.Message } func (e *DuplicateResourceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateResourceException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InvalidParametersException) ErrorMessage() string { return *e.Message } func (e *InvalidParametersException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParametersException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *InvalidStateException) ErrorMessage() string { return *e.Message } func (e *InvalidStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidStateException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -134,7 +134,7 @@ func (e *OperationNotSupportedException) ErrorMessage() string { return *e.Message } func (e *OperationNotSupportedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationNotSupportedException" } return *e.ErrorCodeOverride @@ -161,7 +161,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -187,7 +187,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -216,7 +216,7 @@ func (e *TagOptionNotMigratedException) ErrorMessage() string { return *e.Message } func (e *TagOptionNotMigratedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagOptionNotMigratedException" } return *e.ErrorCodeOverride diff --git a/service/servicecatalogappregistry/types/errors.go b/service/servicecatalogappregistry/types/errors.go index 38f2f3936d3..574969484a7 100644 --- a/service/servicecatalogappregistry/types/errors.go +++ b/service/servicecatalogappregistry/types/errors.go @@ -27,7 +27,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/servicediscovery/types/errors.go b/service/servicediscovery/types/errors.go index 733621012db..511efc6d6cd 100644 --- a/service/servicediscovery/types/errors.go +++ b/service/servicediscovery/types/errors.go @@ -27,7 +27,7 @@ func (e *CustomHealthNotFound) ErrorMessage() string { return *e.Message } func (e *CustomHealthNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CustomHealthNotFound" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *DuplicateRequest) ErrorMessage() string { return *e.Message } func (e *DuplicateRequest) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateRequest" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InstanceNotFound) ErrorMessage() string { return *e.Message } func (e *InstanceNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InstanceNotFound" } return *e.ErrorCodeOverride @@ -110,7 +110,7 @@ func (e *InvalidInput) ErrorMessage() string { return *e.Message } func (e *InvalidInput) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInput" } return *e.ErrorCodeOverride @@ -139,7 +139,7 @@ func (e *NamespaceAlreadyExists) ErrorMessage() string { return *e.Message } func (e *NamespaceAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NamespaceAlreadyExists" } return *e.ErrorCodeOverride @@ -165,7 +165,7 @@ func (e *NamespaceNotFound) ErrorMessage() string { return *e.Message } func (e *NamespaceNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NamespaceNotFound" } return *e.ErrorCodeOverride @@ -191,7 +191,7 @@ func (e *OperationNotFound) ErrorMessage() string { return *e.Message } func (e *OperationNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationNotFound" } return *e.ErrorCodeOverride @@ -220,7 +220,7 @@ func (e *RequestLimitExceeded) ErrorMessage() string { return *e.Message } func (e *RequestLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestLimitExceeded" } return *e.ErrorCodeOverride @@ -247,7 +247,7 @@ func (e *ResourceInUse) ErrorMessage() string { return *e.Message } func (e *ResourceInUse) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUse" } return *e.ErrorCodeOverride @@ -274,7 +274,7 @@ func (e *ResourceLimitExceeded) ErrorMessage() string { return *e.Message } func (e *ResourceLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceLimitExceeded" } return *e.ErrorCodeOverride @@ -300,7 +300,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -330,7 +330,7 @@ func (e *ServiceAlreadyExists) ErrorMessage() string { return *e.Message } func (e *ServiceAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceAlreadyExists" } return *e.ErrorCodeOverride @@ -356,7 +356,7 @@ func (e *ServiceNotFound) ErrorMessage() string { return *e.Message } func (e *ServiceNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceNotFound" } return *e.ErrorCodeOverride @@ -385,7 +385,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride diff --git a/service/servicequotas/types/errors.go b/service/servicequotas/types/errors.go index 8e809e9d634..cc80c77bad1 100644 --- a/service/servicequotas/types/errors.go +++ b/service/servicequotas/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *AWSServiceAccessNotEnabledException) ErrorMessage() string { return *e.Message } func (e *AWSServiceAccessNotEnabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AWSServiceAccessNotEnabledException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *DependencyAccessDeniedException) ErrorMessage() string { return *e.Message } func (e *DependencyAccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DependencyAccessDeniedException" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *IllegalArgumentException) ErrorMessage() string { return *e.Message } func (e *IllegalArgumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IllegalArgumentException" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *InvalidPaginationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPaginationTokenException" } return *e.ErrorCodeOverride @@ -159,7 +159,7 @@ func (e *InvalidResourceStateException) ErrorMessage() string { return *e.Message } func (e *InvalidResourceStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidResourceStateException" } return *e.ErrorCodeOverride @@ -185,7 +185,7 @@ func (e *NoAvailableOrganizationException) ErrorMessage() string { return *e.Message } func (e *NoAvailableOrganizationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoAvailableOrganizationException" } return *e.ErrorCodeOverride @@ -211,7 +211,7 @@ func (e *NoSuchResourceException) ErrorMessage() string { return *e.Message } func (e *NoSuchResourceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoSuchResourceException" } return *e.ErrorCodeOverride @@ -237,7 +237,7 @@ func (e *OrganizationNotInAllFeaturesModeException) ErrorMessage() string { return *e.Message } func (e *OrganizationNotInAllFeaturesModeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OrganizationNotInAllFeaturesModeException" } return *e.ErrorCodeOverride @@ -267,7 +267,7 @@ func (e *QuotaExceededException) ErrorMessage() string { return *e.Message } func (e *QuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "QuotaExceededException" } return *e.ErrorCodeOverride @@ -293,7 +293,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -319,7 +319,7 @@ func (e *ServiceException) ErrorMessage() string { return *e.Message } func (e *ServiceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceException" } return *e.ErrorCodeOverride @@ -345,7 +345,7 @@ func (e *ServiceQuotaTemplateNotInUseException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaTemplateNotInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaTemplateNotInUseException" } return *e.ErrorCodeOverride @@ -373,7 +373,7 @@ func (e *TagPolicyViolationException) ErrorMessage() string { return *e.Message } func (e *TagPolicyViolationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagPolicyViolationException" } return *e.ErrorCodeOverride @@ -399,7 +399,7 @@ func (e *TemplatesNotAvailableInRegionException) ErrorMessage() string { return *e.Message } func (e *TemplatesNotAvailableInRegionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TemplatesNotAvailableInRegionException" } return *e.ErrorCodeOverride @@ -428,7 +428,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -457,7 +457,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride diff --git a/service/ses/types/errors.go b/service/ses/types/errors.go index b80a87d9db5..a4b318a6581 100644 --- a/service/ses/types/errors.go +++ b/service/ses/types/errors.go @@ -28,7 +28,7 @@ func (e *AccountSendingPausedException) ErrorMessage() string { return *e.Message } func (e *AccountSendingPausedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccountSendingPausedException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *AlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *AlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AlreadyExists" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *CannotDeleteException) ErrorMessage() string { return *e.Message } func (e *CannotDeleteException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CannotDelete" } return *e.ErrorCodeOverride @@ -113,7 +113,7 @@ func (e *ConfigurationSetAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ConfigurationSetAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConfigurationSetAlreadyExists" } return *e.ErrorCodeOverride @@ -143,7 +143,7 @@ func (e *ConfigurationSetDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *ConfigurationSetDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConfigurationSetDoesNotExist" } return *e.ErrorCodeOverride @@ -175,7 +175,7 @@ func (e *ConfigurationSetSendingPausedException) ErrorMessage() string { return *e.Message } func (e *ConfigurationSetSendingPausedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConfigurationSetSendingPausedException" } return *e.ErrorCodeOverride @@ -203,7 +203,7 @@ func (e *CustomVerificationEmailInvalidContentException) ErrorMessage() string { return *e.Message } func (e *CustomVerificationEmailInvalidContentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CustomVerificationEmailInvalidContent" } return *e.ErrorCodeOverride @@ -234,7 +234,7 @@ func (e *CustomVerificationEmailTemplateAlreadyExistsException) ErrorMessage() s return *e.Message } func (e *CustomVerificationEmailTemplateAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CustomVerificationEmailTemplateAlreadyExists" } return *e.ErrorCodeOverride @@ -265,7 +265,7 @@ func (e *CustomVerificationEmailTemplateDoesNotExistException) ErrorMessage() st return *e.Message } func (e *CustomVerificationEmailTemplateDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CustomVerificationEmailTemplateDoesNotExist" } return *e.ErrorCodeOverride @@ -297,7 +297,7 @@ func (e *EventDestinationAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *EventDestinationAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EventDestinationAlreadyExists" } return *e.ErrorCodeOverride @@ -328,7 +328,7 @@ func (e *EventDestinationDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *EventDestinationDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EventDestinationDoesNotExist" } return *e.ErrorCodeOverride @@ -360,7 +360,7 @@ func (e *FromEmailAddressNotVerifiedException) ErrorMessage() string { return *e.Message } func (e *FromEmailAddressNotVerifiedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FromEmailAddressNotVerified" } return *e.ErrorCodeOverride @@ -392,7 +392,7 @@ func (e *InvalidCloudWatchDestinationException) ErrorMessage() string { return *e.Message } func (e *InvalidCloudWatchDestinationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCloudWatchDestination" } return *e.ErrorCodeOverride @@ -421,7 +421,7 @@ func (e *InvalidConfigurationSetException) ErrorMessage() string { return *e.Message } func (e *InvalidConfigurationSetException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidConfigurationSet" } return *e.ErrorCodeOverride @@ -447,7 +447,7 @@ func (e *InvalidDeliveryOptionsException) ErrorMessage() string { return *e.Message } func (e *InvalidDeliveryOptionsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDeliveryOptions" } return *e.ErrorCodeOverride @@ -477,7 +477,7 @@ func (e *InvalidFirehoseDestinationException) ErrorMessage() string { return *e.Message } func (e *InvalidFirehoseDestinationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidFirehoseDestination" } return *e.ErrorCodeOverride @@ -510,7 +510,7 @@ func (e *InvalidLambdaFunctionException) ErrorMessage() string { return *e.Message } func (e *InvalidLambdaFunctionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidLambdaFunction" } return *e.ErrorCodeOverride @@ -537,7 +537,7 @@ func (e *InvalidPolicyException) ErrorMessage() string { return *e.Message } func (e *InvalidPolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPolicy" } return *e.ErrorCodeOverride @@ -566,7 +566,7 @@ func (e *InvalidRenderingParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidRenderingParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRenderingParameter" } return *e.ErrorCodeOverride @@ -600,7 +600,7 @@ func (e *InvalidS3ConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidS3ConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidS3Configuration" } return *e.ErrorCodeOverride @@ -630,7 +630,7 @@ func (e *InvalidSNSDestinationException) ErrorMessage() string { return *e.Message } func (e *InvalidSNSDestinationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSNSDestination" } return *e.ErrorCodeOverride @@ -661,7 +661,7 @@ func (e *InvalidSnsTopicException) ErrorMessage() string { return *e.Message } func (e *InvalidSnsTopicException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSnsTopic" } return *e.ErrorCodeOverride @@ -690,7 +690,7 @@ func (e *InvalidTemplateException) ErrorMessage() string { return *e.Message } func (e *InvalidTemplateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTemplate" } return *e.ErrorCodeOverride @@ -724,7 +724,7 @@ func (e *InvalidTrackingOptionsException) ErrorMessage() string { return *e.Message } func (e *InvalidTrackingOptionsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTrackingOptions" } return *e.ErrorCodeOverride @@ -752,7 +752,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceeded" } return *e.ErrorCodeOverride @@ -782,7 +782,7 @@ func (e *MailFromDomainNotVerifiedException) ErrorMessage() string { return *e.Message } func (e *MailFromDomainNotVerifiedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MailFromDomainNotVerifiedException" } return *e.ErrorCodeOverride @@ -811,7 +811,7 @@ func (e *MessageRejected) ErrorMessage() string { return *e.Message } func (e *MessageRejected) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MessageRejected" } return *e.ErrorCodeOverride @@ -841,7 +841,7 @@ func (e *MissingRenderingAttributeException) ErrorMessage() string { return *e.Message } func (e *MissingRenderingAttributeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MissingRenderingAttribute" } return *e.ErrorCodeOverride @@ -869,7 +869,7 @@ func (e *ProductionAccessNotGrantedException) ErrorMessage() string { return *e.Message } func (e *ProductionAccessNotGrantedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ProductionAccessNotGranted" } return *e.ErrorCodeOverride @@ -899,7 +899,7 @@ func (e *RuleDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *RuleDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RuleDoesNotExist" } return *e.ErrorCodeOverride @@ -927,7 +927,7 @@ func (e *RuleSetDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *RuleSetDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RuleSetDoesNotExist" } return *e.ErrorCodeOverride @@ -956,7 +956,7 @@ func (e *TemplateDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *TemplateDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TemplateDoesNotExist" } return *e.ErrorCodeOverride @@ -985,7 +985,7 @@ func (e *TrackingOptionsAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *TrackingOptionsAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TrackingOptionsAlreadyExistsException" } return *e.ErrorCodeOverride @@ -1015,7 +1015,7 @@ func (e *TrackingOptionsDoesNotExistException) ErrorMessage() string { return *e.Message } func (e *TrackingOptionsDoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TrackingOptionsDoesNotExistException" } return *e.ErrorCodeOverride diff --git a/service/sesv2/types/errors.go b/service/sesv2/types/errors.go index c41f6cfbac0..448cc6908d3 100644 --- a/service/sesv2/types/errors.go +++ b/service/sesv2/types/errors.go @@ -27,7 +27,7 @@ func (e *AccountSuspendedException) ErrorMessage() string { return *e.Message } func (e *AccountSuspendedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccountSuspendedException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *AlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *AlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AlreadyExistsException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -158,7 +158,7 @@ func (e *InternalServiceErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServiceErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceErrorException" } return *e.ErrorCodeOverride @@ -184,7 +184,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -210,7 +210,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -236,7 +236,7 @@ func (e *MailFromDomainNotVerifiedException) ErrorMessage() string { return *e.Message } func (e *MailFromDomainNotVerifiedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MailFromDomainNotVerifiedException" } return *e.ErrorCodeOverride @@ -264,7 +264,7 @@ func (e *MessageRejected) ErrorMessage() string { return *e.Message } func (e *MessageRejected) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MessageRejected" } return *e.ErrorCodeOverride @@ -290,7 +290,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -317,7 +317,7 @@ func (e *SendingPausedException) ErrorMessage() string { return *e.Message } func (e *SendingPausedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SendingPausedException" } return *e.ErrorCodeOverride @@ -343,7 +343,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride diff --git a/service/sfn/types/errors.go b/service/sfn/types/errors.go index ac953c31515..7b79a588aad 100644 --- a/service/sfn/types/errors.go +++ b/service/sfn/types/errors.go @@ -26,7 +26,7 @@ func (e *ActivityDoesNotExist) ErrorMessage() string { return *e.Message } func (e *ActivityDoesNotExist) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ActivityDoesNotExist" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ActivityLimitExceeded) ErrorMessage() string { return *e.Message } func (e *ActivityLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ActivityLimitExceeded" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *ActivityWorkerLimitExceeded) ErrorMessage() string { return *e.Message } func (e *ActivityWorkerLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ActivityWorkerLimitExceeded" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *ExecutionAlreadyExists) ErrorMessage() string { return *e.Message } func (e *ExecutionAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ExecutionAlreadyExists" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *ExecutionDoesNotExist) ErrorMessage() string { return *e.Message } func (e *ExecutionDoesNotExist) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ExecutionDoesNotExist" } return *e.ErrorCodeOverride @@ -160,7 +160,7 @@ func (e *ExecutionLimitExceeded) ErrorMessage() string { return *e.Message } func (e *ExecutionLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ExecutionLimitExceeded" } return *e.ErrorCodeOverride @@ -186,7 +186,7 @@ func (e *InvalidArn) ErrorMessage() string { return *e.Message } func (e *InvalidArn) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArn" } return *e.ErrorCodeOverride @@ -212,7 +212,7 @@ func (e *InvalidDefinition) ErrorMessage() string { return *e.Message } func (e *InvalidDefinition) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDefinition" } return *e.ErrorCodeOverride @@ -238,7 +238,7 @@ func (e *InvalidExecutionInput) ErrorMessage() string { return *e.Message } func (e *InvalidExecutionInput) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidExecutionInput" } return *e.ErrorCodeOverride @@ -263,7 +263,7 @@ func (e *InvalidLoggingConfiguration) ErrorMessage() string { return *e.Message } func (e *InvalidLoggingConfiguration) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidLoggingConfiguration" } return *e.ErrorCodeOverride @@ -289,7 +289,7 @@ func (e *InvalidName) ErrorMessage() string { return *e.Message } func (e *InvalidName) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidName" } return *e.ErrorCodeOverride @@ -315,7 +315,7 @@ func (e *InvalidOutput) ErrorMessage() string { return *e.Message } func (e *InvalidOutput) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOutput" } return *e.ErrorCodeOverride @@ -341,7 +341,7 @@ func (e *InvalidToken) ErrorMessage() string { return *e.Message } func (e *InvalidToken) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidToken" } return *e.ErrorCodeOverride @@ -368,7 +368,7 @@ func (e *InvalidTracingConfiguration) ErrorMessage() string { return *e.Message } func (e *InvalidTracingConfiguration) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTracingConfiguration" } return *e.ErrorCodeOverride @@ -395,7 +395,7 @@ func (e *MissingRequiredParameter) ErrorMessage() string { return *e.Message } func (e *MissingRequiredParameter) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MissingRequiredParameter" } return *e.ErrorCodeOverride @@ -424,7 +424,7 @@ func (e *ResourceNotFound) ErrorMessage() string { return *e.Message } func (e *ResourceNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFound" } return *e.ErrorCodeOverride @@ -451,7 +451,7 @@ func (e *StateMachineAlreadyExists) ErrorMessage() string { return *e.Message } func (e *StateMachineAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StateMachineAlreadyExists" } return *e.ErrorCodeOverride @@ -477,7 +477,7 @@ func (e *StateMachineDeleting) ErrorMessage() string { return *e.Message } func (e *StateMachineDeleting) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StateMachineDeleting" } return *e.ErrorCodeOverride @@ -503,7 +503,7 @@ func (e *StateMachineDoesNotExist) ErrorMessage() string { return *e.Message } func (e *StateMachineDoesNotExist) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StateMachineDoesNotExist" } return *e.ErrorCodeOverride @@ -530,7 +530,7 @@ func (e *StateMachineLimitExceeded) ErrorMessage() string { return *e.Message } func (e *StateMachineLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StateMachineLimitExceeded" } return *e.ErrorCodeOverride @@ -555,7 +555,7 @@ func (e *StateMachineTypeNotSupported) ErrorMessage() string { return *e.Message } func (e *StateMachineTypeNotSupported) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StateMachineTypeNotSupported" } return *e.ErrorCodeOverride @@ -580,7 +580,7 @@ func (e *TaskDoesNotExist) ErrorMessage() string { return *e.Message } func (e *TaskDoesNotExist) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TaskDoesNotExist" } return *e.ErrorCodeOverride @@ -605,7 +605,7 @@ func (e *TaskTimedOut) ErrorMessage() string { return *e.Message } func (e *TaskTimedOut) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TaskTimedOut" } return *e.ErrorCodeOverride @@ -635,7 +635,7 @@ func (e *TooManyTags) ErrorMessage() string { return *e.Message } func (e *TooManyTags) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTags" } return *e.ErrorCodeOverride @@ -664,7 +664,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/shield/types/errors.go b/service/shield/types/errors.go index bbbcd2c6f20..26d993b4f0e 100644 --- a/service/shield/types/errors.go +++ b/service/shield/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -58,7 +58,7 @@ func (e *AccessDeniedForDependencyException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedForDependencyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedForDependencyException" } return *e.ErrorCodeOverride @@ -87,7 +87,7 @@ func (e *InternalErrorException) ErrorMessage() string { return *e.Message } func (e *InternalErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalErrorException" } return *e.ErrorCodeOverride @@ -113,7 +113,7 @@ func (e *InvalidOperationException) ErrorMessage() string { return *e.Message } func (e *InvalidOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOperationException" } return *e.ErrorCodeOverride @@ -141,7 +141,7 @@ func (e *InvalidPaginationTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidPaginationTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPaginationTokenException" } return *e.ErrorCodeOverride @@ -171,7 +171,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -198,7 +198,7 @@ func (e *InvalidResourceException) ErrorMessage() string { return *e.Message } func (e *InvalidResourceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidResourceException" } return *e.ErrorCodeOverride @@ -227,7 +227,7 @@ func (e *LimitsExceededException) ErrorMessage() string { return *e.Message } func (e *LimitsExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitsExceededException" } return *e.ErrorCodeOverride @@ -256,7 +256,7 @@ func (e *LockedSubscriptionException) ErrorMessage() string { return *e.Message } func (e *LockedSubscriptionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LockedSubscriptionException" } return *e.ErrorCodeOverride @@ -282,7 +282,7 @@ func (e *NoAssociatedRoleException) ErrorMessage() string { return *e.Message } func (e *NoAssociatedRoleException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoAssociatedRoleException" } return *e.ErrorCodeOverride @@ -309,7 +309,7 @@ func (e *OptimisticLockException) ErrorMessage() string { return *e.Message } func (e *OptimisticLockException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OptimisticLockException" } return *e.ErrorCodeOverride @@ -338,7 +338,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -367,7 +367,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/signer/types/errors.go b/service/signer/types/errors.go index 4e8cfedf87b..a390a919b0a 100644 --- a/service/signer/types/errors.go +++ b/service/signer/types/errors.go @@ -28,7 +28,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -85,7 +85,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -113,7 +113,7 @@ func (e *InternalServiceErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServiceErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceErrorException" } return *e.ErrorCodeOverride @@ -141,7 +141,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -169,7 +169,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -197,7 +197,7 @@ func (e *ServiceLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceLimitExceededException" } return *e.ErrorCodeOverride @@ -226,7 +226,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -255,7 +255,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -283,7 +283,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/simspaceweaver/types/errors.go b/service/simspaceweaver/types/errors.go index c7de2e4f5de..9125f7f1333 100644 --- a/service/simspaceweaver/types/errors.go +++ b/service/simspaceweaver/types/errors.go @@ -25,7 +25,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -50,7 +50,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -75,7 +75,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -100,7 +100,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -125,7 +125,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -150,7 +150,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -175,7 +175,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/sms/types/errors.go b/service/sms/types/errors.go index 7f9fe7a9717..3dd2c351932 100644 --- a/service/sms/types/errors.go +++ b/service/sms/types/errors.go @@ -27,7 +27,7 @@ func (e *DryRunOperationException) ErrorMessage() string { return *e.Message } func (e *DryRunOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DryRunOperationException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *InternalError) ErrorMessage() string { return *e.Message } func (e *InternalError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalError" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *MissingRequiredParameterException) ErrorMessage() string { return *e.Message } func (e *MissingRequiredParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MissingRequiredParameterException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *NoConnectorsAvailableException) ErrorMessage() string { return *e.Message } func (e *NoConnectorsAvailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NoConnectorsAvailableException" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *OperationNotPermittedException) ErrorMessage() string { return *e.Message } func (e *OperationNotPermittedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationNotPermittedException" } return *e.ErrorCodeOverride @@ -183,7 +183,7 @@ func (e *ReplicationJobAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ReplicationJobAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReplicationJobAlreadyExistsException" } return *e.ErrorCodeOverride @@ -211,7 +211,7 @@ func (e *ReplicationJobNotFoundException) ErrorMessage() string { return *e.Message } func (e *ReplicationJobNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReplicationJobNotFoundException" } return *e.ErrorCodeOverride @@ -238,7 +238,7 @@ func (e *ReplicationRunLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ReplicationRunLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReplicationRunLimitExceededException" } return *e.ErrorCodeOverride @@ -266,7 +266,7 @@ func (e *ServerCannotBeReplicatedException) ErrorMessage() string { return *e.Message } func (e *ServerCannotBeReplicatedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServerCannotBeReplicatedException" } return *e.ErrorCodeOverride @@ -292,7 +292,7 @@ func (e *TemporarilyUnavailableException) ErrorMessage() string { return *e.Message } func (e *TemporarilyUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TemporarilyUnavailableException" } return *e.ErrorCodeOverride @@ -319,7 +319,7 @@ func (e *UnauthorizedOperationException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedOperationException" } return *e.ErrorCodeOverride diff --git a/service/snowball/types/errors.go b/service/snowball/types/errors.go index 76f2646a362..b61cf32589b 100644 --- a/service/snowball/types/errors.go +++ b/service/snowball/types/errors.go @@ -28,7 +28,7 @@ func (e *ClusterLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ClusterLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ClusterLimitExceededException" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *Ec2RequestFailedException) ErrorMessage() string { return *e.Message } func (e *Ec2RequestFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "Ec2RequestFailedException" } return *e.ErrorCodeOverride @@ -111,7 +111,7 @@ func (e *InvalidAddressException) ErrorMessage() string { return *e.Message } func (e *InvalidAddressException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAddressException" } return *e.ErrorCodeOverride @@ -139,7 +139,7 @@ func (e *InvalidInputCombinationException) ErrorMessage() string { return *e.Message } func (e *InvalidInputCombinationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInputCombinationException" } return *e.ErrorCodeOverride @@ -166,7 +166,7 @@ func (e *InvalidJobStateException) ErrorMessage() string { return *e.Message } func (e *InvalidJobStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidJobStateException" } return *e.ErrorCodeOverride @@ -193,7 +193,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -222,7 +222,7 @@ func (e *InvalidResourceException) ErrorMessage() string { return *e.Message } func (e *InvalidResourceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidResourceException" } return *e.ErrorCodeOverride @@ -249,7 +249,7 @@ func (e *KMSRequestFailedException) ErrorMessage() string { return *e.Message } func (e *KMSRequestFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSRequestFailedException" } return *e.ErrorCodeOverride @@ -277,7 +277,7 @@ func (e *ReturnShippingLabelAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ReturnShippingLabelAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReturnShippingLabelAlreadyExistsException" } return *e.ErrorCodeOverride @@ -307,7 +307,7 @@ func (e *UnsupportedAddressException) ErrorMessage() string { return *e.Message } func (e *UnsupportedAddressException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedAddressException" } return *e.ErrorCodeOverride diff --git a/service/snowdevicemanagement/types/errors.go b/service/snowdevicemanagement/types/errors.go index ee772c7ac02..18a8df7da3f 100644 --- a/service/snowdevicemanagement/types/errors.go +++ b/service/snowdevicemanagement/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/sns/types/errors.go b/service/sns/types/errors.go index 8bda7bd6864..6fd885edec0 100644 --- a/service/sns/types/errors.go +++ b/service/sns/types/errors.go @@ -26,7 +26,7 @@ func (e *AuthorizationErrorException) ErrorMessage() string { return *e.Message } func (e *AuthorizationErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AuthorizationError" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *BatchEntryIdsNotDistinctException) ErrorMessage() string { return *e.Message } func (e *BatchEntryIdsNotDistinctException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BatchEntryIdsNotDistinct" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *BatchRequestTooLongException) ErrorMessage() string { return *e.Message } func (e *BatchRequestTooLongException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BatchRequestTooLong" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *ConcurrentAccessException) ErrorMessage() string { return *e.Message } func (e *ConcurrentAccessException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentAccess" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *EmptyBatchRequestException) ErrorMessage() string { return *e.Message } func (e *EmptyBatchRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EmptyBatchRequest" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *EndpointDisabledException) ErrorMessage() string { return *e.Message } func (e *EndpointDisabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EndpointDisabled" } return *e.ErrorCodeOverride @@ -185,7 +185,7 @@ func (e *FilterPolicyLimitExceededException) ErrorMessage() string { return *e.Message } func (e *FilterPolicyLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FilterPolicyLimitExceeded" } return *e.ErrorCodeOverride @@ -213,7 +213,7 @@ func (e *InternalErrorException) ErrorMessage() string { return *e.Message } func (e *InternalErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalError" } return *e.ErrorCodeOverride @@ -239,7 +239,7 @@ func (e *InvalidBatchEntryIdException) ErrorMessage() string { return *e.Message } func (e *InvalidBatchEntryIdException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidBatchEntryId" } return *e.ErrorCodeOverride @@ -266,7 +266,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameter" } return *e.ErrorCodeOverride @@ -293,7 +293,7 @@ func (e *InvalidParameterValueException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ParameterValueInvalid" } return *e.ErrorCodeOverride @@ -320,7 +320,7 @@ func (e *InvalidSecurityException) ErrorMessage() string { return *e.Message } func (e *InvalidSecurityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSecurity" } return *e.ErrorCodeOverride @@ -347,7 +347,7 @@ func (e *KMSAccessDeniedException) ErrorMessage() string { return *e.Message } func (e *KMSAccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSAccessDenied" } return *e.ErrorCodeOverride @@ -374,7 +374,7 @@ func (e *KMSDisabledException) ErrorMessage() string { return *e.Message } func (e *KMSDisabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSDisabled" } return *e.ErrorCodeOverride @@ -404,7 +404,7 @@ func (e *KMSInvalidStateException) ErrorMessage() string { return *e.Message } func (e *KMSInvalidStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSInvalidState" } return *e.ErrorCodeOverride @@ -431,7 +431,7 @@ func (e *KMSNotFoundException) ErrorMessage() string { return *e.Message } func (e *KMSNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSNotFound" } return *e.ErrorCodeOverride @@ -457,7 +457,7 @@ func (e *KMSOptInRequired) ErrorMessage() string { return *e.Message } func (e *KMSOptInRequired) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSOptInRequired" } return *e.ErrorCodeOverride @@ -486,7 +486,7 @@ func (e *KMSThrottlingException) ErrorMessage() string { return *e.Message } func (e *KMSThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "KMSThrottling" } return *e.ErrorCodeOverride @@ -512,7 +512,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFound" } return *e.ErrorCodeOverride @@ -540,7 +540,7 @@ func (e *OptedOutException) ErrorMessage() string { return *e.Message } func (e *OptedOutException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OptedOut" } return *e.ErrorCodeOverride @@ -566,7 +566,7 @@ func (e *PlatformApplicationDisabledException) ErrorMessage() string { return *e.Message } func (e *PlatformApplicationDisabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PlatformApplicationDisabled" } return *e.ErrorCodeOverride @@ -595,7 +595,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFound" } return *e.ErrorCodeOverride @@ -622,7 +622,7 @@ func (e *StaleTagException) ErrorMessage() string { return *e.Message } func (e *StaleTagException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StaleTag" } return *e.ErrorCodeOverride @@ -649,7 +649,7 @@ func (e *SubscriptionLimitExceededException) ErrorMessage() string { return *e.Message } func (e *SubscriptionLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubscriptionLimitExceeded" } return *e.ErrorCodeOverride @@ -677,7 +677,7 @@ func (e *TagLimitExceededException) ErrorMessage() string { return *e.Message } func (e *TagLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagLimitExceeded" } return *e.ErrorCodeOverride @@ -704,7 +704,7 @@ func (e *TagPolicyException) ErrorMessage() string { return *e.Message } func (e *TagPolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TagPolicy" } return *e.ErrorCodeOverride @@ -731,7 +731,7 @@ func (e *ThrottledException) ErrorMessage() string { return *e.Message } func (e *ThrottledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "Throttled" } return *e.ErrorCodeOverride @@ -757,7 +757,7 @@ func (e *TooManyEntriesInBatchRequestException) ErrorMessage() string { return *e.Message } func (e *TooManyEntriesInBatchRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyEntriesInBatchRequest" } return *e.ErrorCodeOverride @@ -785,7 +785,7 @@ func (e *TopicLimitExceededException) ErrorMessage() string { return *e.Message } func (e *TopicLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TopicLimitExceeded" } return *e.ErrorCodeOverride @@ -812,7 +812,7 @@ func (e *UserErrorException) ErrorMessage() string { return *e.Message } func (e *UserErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UserError" } return *e.ErrorCodeOverride @@ -838,7 +838,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride @@ -866,7 +866,7 @@ func (e *VerificationException) ErrorMessage() string { return *e.Message } func (e *VerificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "VerificationException" } return *e.ErrorCodeOverride diff --git a/service/sqs/types/errors.go b/service/sqs/types/errors.go index 37c897e788b..0671b155afb 100644 --- a/service/sqs/types/errors.go +++ b/service/sqs/types/errors.go @@ -26,7 +26,7 @@ func (e *BatchEntryIdsNotDistinct) ErrorMessage() string { return *e.Message } func (e *BatchEntryIdsNotDistinct) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AWS.SimpleQueueService.BatchEntryIdsNotDistinct" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *BatchRequestTooLong) ErrorMessage() string { return *e.Message } func (e *BatchRequestTooLong) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AWS.SimpleQueueService.BatchRequestTooLong" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *EmptyBatchRequest) ErrorMessage() string { return *e.Message } func (e *EmptyBatchRequest) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AWS.SimpleQueueService.EmptyBatchRequest" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *InvalidAttributeName) ErrorMessage() string { return *e.Message } func (e *InvalidAttributeName) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAttributeName" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *InvalidBatchEntryId) ErrorMessage() string { return *e.Message } func (e *InvalidBatchEntryId) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AWS.SimpleQueueService.InvalidBatchEntryId" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *InvalidIdFormat) ErrorMessage() string { return *e.Message } func (e *InvalidIdFormat) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidIdFormat" } return *e.ErrorCodeOverride @@ -182,7 +182,7 @@ func (e *InvalidMessageContents) ErrorMessage() string { return *e.Message } func (e *InvalidMessageContents) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidMessageContents" } return *e.ErrorCodeOverride @@ -208,7 +208,7 @@ func (e *MessageNotInflight) ErrorMessage() string { return *e.Message } func (e *MessageNotInflight) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AWS.SimpleQueueService.MessageNotInflight" } return *e.ErrorCodeOverride @@ -237,7 +237,7 @@ func (e *OverLimit) ErrorMessage() string { return *e.Message } func (e *OverLimit) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OverLimit" } return *e.ErrorCodeOverride @@ -265,7 +265,7 @@ func (e *PurgeQueueInProgress) ErrorMessage() string { return *e.Message } func (e *PurgeQueueInProgress) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AWS.SimpleQueueService.PurgeQueueInProgress" } return *e.ErrorCodeOverride @@ -292,7 +292,7 @@ func (e *QueueDeletedRecently) ErrorMessage() string { return *e.Message } func (e *QueueDeletedRecently) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AWS.SimpleQueueService.QueueDeletedRecently" } return *e.ErrorCodeOverride @@ -318,7 +318,7 @@ func (e *QueueDoesNotExist) ErrorMessage() string { return *e.Message } func (e *QueueDoesNotExist) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AWS.SimpleQueueService.NonExistentQueue" } return *e.ErrorCodeOverride @@ -346,7 +346,7 @@ func (e *QueueNameExists) ErrorMessage() string { return *e.Message } func (e *QueueNameExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "QueueAlreadyExists" } return *e.ErrorCodeOverride @@ -372,7 +372,7 @@ func (e *ReceiptHandleIsInvalid) ErrorMessage() string { return *e.Message } func (e *ReceiptHandleIsInvalid) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReceiptHandleIsInvalid" } return *e.ErrorCodeOverride @@ -398,7 +398,7 @@ func (e *TooManyEntriesInBatchRequest) ErrorMessage() string { return *e.Message } func (e *TooManyEntriesInBatchRequest) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AWS.SimpleQueueService.TooManyEntriesInBatchRequest" } return *e.ErrorCodeOverride @@ -424,7 +424,7 @@ func (e *UnsupportedOperation) ErrorMessage() string { return *e.Message } func (e *UnsupportedOperation) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AWS.SimpleQueueService.UnsupportedOperation" } return *e.ErrorCodeOverride diff --git a/service/ssm/types/errors.go b/service/ssm/types/errors.go index 4c13bfed6fb..3f8dfbc8198 100644 --- a/service/ssm/types/errors.go +++ b/service/ssm/types/errors.go @@ -27,7 +27,7 @@ func (e *AlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *AlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AlreadyExistsException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *AssociatedInstances) ErrorMessage() string { return *e.Message } func (e *AssociatedInstances) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AssociatedInstances" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *AssociationAlreadyExists) ErrorMessage() string { return *e.Message } func (e *AssociationAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AssociationAlreadyExists" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *AssociationDoesNotExist) ErrorMessage() string { return *e.Message } func (e *AssociationDoesNotExist) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AssociationDoesNotExist" } return *e.ErrorCodeOverride @@ -132,7 +132,7 @@ func (e *AssociationExecutionDoesNotExist) ErrorMessage() string { return *e.Message } func (e *AssociationExecutionDoesNotExist) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AssociationExecutionDoesNotExist" } return *e.ErrorCodeOverride @@ -158,7 +158,7 @@ func (e *AssociationLimitExceeded) ErrorMessage() string { return *e.Message } func (e *AssociationLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AssociationLimitExceeded" } return *e.ErrorCodeOverride @@ -185,7 +185,7 @@ func (e *AssociationVersionLimitExceeded) ErrorMessage() string { return *e.Message } func (e *AssociationVersionLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AssociationVersionLimitExceeded" } return *e.ErrorCodeOverride @@ -212,7 +212,7 @@ func (e *AutomationDefinitionNotApprovedException) ErrorMessage() string { return *e.Message } func (e *AutomationDefinitionNotApprovedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AutomationDefinitionNotApprovedException" } return *e.ErrorCodeOverride @@ -240,7 +240,7 @@ func (e *AutomationDefinitionNotFoundException) ErrorMessage() string { return *e.Message } func (e *AutomationDefinitionNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AutomationDefinitionNotFoundException" } return *e.ErrorCodeOverride @@ -268,7 +268,7 @@ func (e *AutomationDefinitionVersionNotFoundException) ErrorMessage() string { return *e.Message } func (e *AutomationDefinitionVersionNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AutomationDefinitionVersionNotFoundException" } return *e.ErrorCodeOverride @@ -297,7 +297,7 @@ func (e *AutomationExecutionLimitExceededException) ErrorMessage() string { return *e.Message } func (e *AutomationExecutionLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AutomationExecutionLimitExceededException" } return *e.ErrorCodeOverride @@ -326,7 +326,7 @@ func (e *AutomationExecutionNotFoundException) ErrorMessage() string { return *e.Message } func (e *AutomationExecutionNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AutomationExecutionNotFoundException" } return *e.ErrorCodeOverride @@ -355,7 +355,7 @@ func (e *AutomationStepNotFoundException) ErrorMessage() string { return *e.Message } func (e *AutomationStepNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AutomationStepNotFoundException" } return *e.ErrorCodeOverride @@ -382,7 +382,7 @@ func (e *ComplianceTypeCountLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ComplianceTypeCountLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ComplianceTypeCountLimitExceededException" } return *e.ErrorCodeOverride @@ -411,7 +411,7 @@ func (e *CustomSchemaCountLimitExceededException) ErrorMessage() string { return *e.Message } func (e *CustomSchemaCountLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CustomSchemaCountLimitExceededException" } return *e.ErrorCodeOverride @@ -439,7 +439,7 @@ func (e *DocumentAlreadyExists) ErrorMessage() string { return *e.Message } func (e *DocumentAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DocumentAlreadyExists" } return *e.ErrorCodeOverride @@ -465,7 +465,7 @@ func (e *DocumentLimitExceeded) ErrorMessage() string { return *e.Message } func (e *DocumentLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DocumentLimitExceeded" } return *e.ErrorCodeOverride @@ -496,7 +496,7 @@ func (e *DocumentPermissionLimit) ErrorMessage() string { return *e.Message } func (e *DocumentPermissionLimit) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DocumentPermissionLimit" } return *e.ErrorCodeOverride @@ -523,7 +523,7 @@ func (e *DocumentVersionLimitExceeded) ErrorMessage() string { return *e.Message } func (e *DocumentVersionLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DocumentVersionLimitExceeded" } return *e.ErrorCodeOverride @@ -553,7 +553,7 @@ func (e *DoesNotExistException) ErrorMessage() string { return *e.Message } func (e *DoesNotExistException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DoesNotExistException" } return *e.ErrorCodeOverride @@ -580,7 +580,7 @@ func (e *DuplicateDocumentContent) ErrorMessage() string { return *e.Message } func (e *DuplicateDocumentContent) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateDocumentContent" } return *e.ErrorCodeOverride @@ -607,7 +607,7 @@ func (e *DuplicateDocumentVersionName) ErrorMessage() string { return *e.Message } func (e *DuplicateDocumentVersionName) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateDocumentVersionName" } return *e.ErrorCodeOverride @@ -633,7 +633,7 @@ func (e *DuplicateInstanceId) ErrorMessage() string { return *e.Message } func (e *DuplicateInstanceId) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DuplicateInstanceId" } return *e.ErrorCodeOverride @@ -660,7 +660,7 @@ func (e *FeatureNotAvailableException) ErrorMessage() string { return *e.Message } func (e *FeatureNotAvailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FeatureNotAvailableException" } return *e.ErrorCodeOverride @@ -689,7 +689,7 @@ func (e *HierarchyLevelLimitExceededException) ErrorMessage() string { return *e.Message } func (e *HierarchyLevelLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HierarchyLevelLimitExceededException" } return *e.ErrorCodeOverride @@ -719,7 +719,7 @@ func (e *HierarchyTypeMismatchException) ErrorMessage() string { return *e.Message } func (e *HierarchyTypeMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HierarchyTypeMismatchException" } return *e.ErrorCodeOverride @@ -746,7 +746,7 @@ func (e *IdempotentParameterMismatch) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatch) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IdempotentParameterMismatch" } return *e.ErrorCodeOverride @@ -774,7 +774,7 @@ func (e *IncompatiblePolicyException) ErrorMessage() string { return *e.Message } func (e *IncompatiblePolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IncompatiblePolicyException" } return *e.ErrorCodeOverride @@ -800,7 +800,7 @@ func (e *InternalServerError) ErrorMessage() string { return *e.Message } func (e *InternalServerError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerError" } return *e.ErrorCodeOverride @@ -827,7 +827,7 @@ func (e *InvalidActivation) ErrorMessage() string { return *e.Message } func (e *InvalidActivation) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidActivation" } return *e.ErrorCodeOverride @@ -854,7 +854,7 @@ func (e *InvalidActivationId) ErrorMessage() string { return *e.Message } func (e *InvalidActivationId) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidActivationId" } return *e.ErrorCodeOverride @@ -882,7 +882,7 @@ func (e *InvalidAggregatorException) ErrorMessage() string { return *e.Message } func (e *InvalidAggregatorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAggregatorException" } return *e.ErrorCodeOverride @@ -908,7 +908,7 @@ func (e *InvalidAllowedPatternException) ErrorMessage() string { return *e.Message } func (e *InvalidAllowedPatternException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAllowedPatternException" } return *e.ErrorCodeOverride @@ -934,7 +934,7 @@ func (e *InvalidAssociation) ErrorMessage() string { return *e.Message } func (e *InvalidAssociation) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAssociation" } return *e.ErrorCodeOverride @@ -962,7 +962,7 @@ func (e *InvalidAssociationVersion) ErrorMessage() string { return *e.Message } func (e *InvalidAssociationVersion) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAssociationVersion" } return *e.ErrorCodeOverride @@ -990,7 +990,7 @@ func (e *InvalidAutomationExecutionParametersException) ErrorMessage() string { return *e.Message } func (e *InvalidAutomationExecutionParametersException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAutomationExecutionParametersException" } return *e.ErrorCodeOverride @@ -1018,7 +1018,7 @@ func (e *InvalidAutomationSignalException) ErrorMessage() string { return *e.Message } func (e *InvalidAutomationSignalException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAutomationSignalException" } return *e.ErrorCodeOverride @@ -1044,7 +1044,7 @@ func (e *InvalidAutomationStatusUpdateException) ErrorMessage() string { return *e.Message } func (e *InvalidAutomationStatusUpdateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAutomationStatusUpdateException" } return *e.ErrorCodeOverride @@ -1072,7 +1072,7 @@ func (e *InvalidCommandId) ErrorMessage() string { return *e.Message } func (e *InvalidCommandId) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCommandId" } return *e.ErrorCodeOverride @@ -1099,7 +1099,7 @@ func (e *InvalidDeleteInventoryParametersException) ErrorMessage() string { return *e.Message } func (e *InvalidDeleteInventoryParametersException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDeleteInventoryParametersException" } return *e.ErrorCodeOverride @@ -1128,7 +1128,7 @@ func (e *InvalidDeletionIdException) ErrorMessage() string { return *e.Message } func (e *InvalidDeletionIdException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDeletionIdException" } return *e.ErrorCodeOverride @@ -1154,7 +1154,7 @@ func (e *InvalidDocument) ErrorMessage() string { return *e.Message } func (e *InvalidDocument) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDocument" } return *e.ErrorCodeOverride @@ -1180,7 +1180,7 @@ func (e *InvalidDocumentContent) ErrorMessage() string { return *e.Message } func (e *InvalidDocumentContent) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDocumentContent" } return *e.ErrorCodeOverride @@ -1207,7 +1207,7 @@ func (e *InvalidDocumentOperation) ErrorMessage() string { return *e.Message } func (e *InvalidDocumentOperation) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDocumentOperation" } return *e.ErrorCodeOverride @@ -1233,7 +1233,7 @@ func (e *InvalidDocumentSchemaVersion) ErrorMessage() string { return *e.Message } func (e *InvalidDocumentSchemaVersion) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDocumentSchemaVersion" } return *e.ErrorCodeOverride @@ -1260,7 +1260,7 @@ func (e *InvalidDocumentType) ErrorMessage() string { return *e.Message } func (e *InvalidDocumentType) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDocumentType" } return *e.ErrorCodeOverride @@ -1286,7 +1286,7 @@ func (e *InvalidDocumentVersion) ErrorMessage() string { return *e.Message } func (e *InvalidDocumentVersion) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidDocumentVersion" } return *e.ErrorCodeOverride @@ -1313,7 +1313,7 @@ func (e *InvalidFilter) ErrorMessage() string { return *e.Message } func (e *InvalidFilter) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidFilter" } return *e.ErrorCodeOverride @@ -1339,7 +1339,7 @@ func (e *InvalidFilterKey) ErrorMessage() string { return *e.Message } func (e *InvalidFilterKey) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidFilterKey" } return *e.ErrorCodeOverride @@ -1366,7 +1366,7 @@ func (e *InvalidFilterOption) ErrorMessage() string { return *e.Message } func (e *InvalidFilterOption) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidFilterOption" } return *e.ErrorCodeOverride @@ -1392,7 +1392,7 @@ func (e *InvalidFilterValue) ErrorMessage() string { return *e.Message } func (e *InvalidFilterValue) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidFilterValue" } return *e.ErrorCodeOverride @@ -1431,7 +1431,7 @@ func (e *InvalidInstanceId) ErrorMessage() string { return *e.Message } func (e *InvalidInstanceId) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInstanceId" } return *e.ErrorCodeOverride @@ -1457,7 +1457,7 @@ func (e *InvalidInstanceInformationFilterValue) ErrorMessage() string { return *e.Message } func (e *InvalidInstanceInformationFilterValue) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInstanceInformationFilterValue" } return *e.ErrorCodeOverride @@ -1485,7 +1485,7 @@ func (e *InvalidInventoryGroupException) ErrorMessage() string { return *e.Message } func (e *InvalidInventoryGroupException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInventoryGroupException" } return *e.ErrorCodeOverride @@ -1512,7 +1512,7 @@ func (e *InvalidInventoryItemContextException) ErrorMessage() string { return *e.Message } func (e *InvalidInventoryItemContextException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInventoryItemContextException" } return *e.ErrorCodeOverride @@ -1540,7 +1540,7 @@ func (e *InvalidInventoryRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidInventoryRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidInventoryRequestException" } return *e.ErrorCodeOverride @@ -1568,7 +1568,7 @@ func (e *InvalidItemContentException) ErrorMessage() string { return *e.Message } func (e *InvalidItemContentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidItemContentException" } return *e.ErrorCodeOverride @@ -1594,7 +1594,7 @@ func (e *InvalidKeyId) ErrorMessage() string { return *e.Message } func (e *InvalidKeyId) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidKeyId" } return *e.ErrorCodeOverride @@ -1620,7 +1620,7 @@ func (e *InvalidNextToken) ErrorMessage() string { return *e.Message } func (e *InvalidNextToken) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextToken" } return *e.ErrorCodeOverride @@ -1647,7 +1647,7 @@ func (e *InvalidNotificationConfig) ErrorMessage() string { return *e.Message } func (e *InvalidNotificationConfig) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNotificationConfig" } return *e.ErrorCodeOverride @@ -1674,7 +1674,7 @@ func (e *InvalidOptionException) ErrorMessage() string { return *e.Message } func (e *InvalidOptionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOptionException" } return *e.ErrorCodeOverride @@ -1700,7 +1700,7 @@ func (e *InvalidOutputFolder) ErrorMessage() string { return *e.Message } func (e *InvalidOutputFolder) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOutputFolder" } return *e.ErrorCodeOverride @@ -1726,7 +1726,7 @@ func (e *InvalidOutputLocation) ErrorMessage() string { return *e.Message } func (e *InvalidOutputLocation) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOutputLocation" } return *e.ErrorCodeOverride @@ -1754,7 +1754,7 @@ func (e *InvalidParameters) ErrorMessage() string { return *e.Message } func (e *InvalidParameters) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameters" } return *e.ErrorCodeOverride @@ -1781,7 +1781,7 @@ func (e *InvalidPermissionType) ErrorMessage() string { return *e.Message } func (e *InvalidPermissionType) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPermissionType" } return *e.ErrorCodeOverride @@ -1807,7 +1807,7 @@ func (e *InvalidPluginName) ErrorMessage() string { return *e.Message } func (e *InvalidPluginName) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPluginName" } return *e.ErrorCodeOverride @@ -1833,7 +1833,7 @@ func (e *InvalidPolicyAttributeException) ErrorMessage() string { return *e.Message } func (e *InvalidPolicyAttributeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPolicyAttributeException" } return *e.ErrorCodeOverride @@ -1860,7 +1860,7 @@ func (e *InvalidPolicyTypeException) ErrorMessage() string { return *e.Message } func (e *InvalidPolicyTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPolicyTypeException" } return *e.ErrorCodeOverride @@ -1887,7 +1887,7 @@ func (e *InvalidResourceId) ErrorMessage() string { return *e.Message } func (e *InvalidResourceId) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidResourceId" } return *e.ErrorCodeOverride @@ -1914,7 +1914,7 @@ func (e *InvalidResourceType) ErrorMessage() string { return *e.Message } func (e *InvalidResourceType) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidResourceType" } return *e.ErrorCodeOverride @@ -1940,7 +1940,7 @@ func (e *InvalidResultAttributeException) ErrorMessage() string { return *e.Message } func (e *InvalidResultAttributeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidResultAttributeException" } return *e.ErrorCodeOverride @@ -1971,7 +1971,7 @@ func (e *InvalidRole) ErrorMessage() string { return *e.Message } func (e *InvalidRole) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRole" } return *e.ErrorCodeOverride @@ -1997,7 +1997,7 @@ func (e *InvalidSchedule) ErrorMessage() string { return *e.Message } func (e *InvalidSchedule) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidSchedule" } return *e.ErrorCodeOverride @@ -2023,7 +2023,7 @@ func (e *InvalidTag) ErrorMessage() string { return *e.Message } func (e *InvalidTag) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTag" } return *e.ErrorCodeOverride @@ -2050,7 +2050,7 @@ func (e *InvalidTarget) ErrorMessage() string { return *e.Message } func (e *InvalidTarget) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTarget" } return *e.ErrorCodeOverride @@ -2076,7 +2076,7 @@ func (e *InvalidTargetMaps) ErrorMessage() string { return *e.Message } func (e *InvalidTargetMaps) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTargetMaps" } return *e.ErrorCodeOverride @@ -2102,7 +2102,7 @@ func (e *InvalidTypeNameException) ErrorMessage() string { return *e.Message } func (e *InvalidTypeNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidTypeNameException" } return *e.ErrorCodeOverride @@ -2128,7 +2128,7 @@ func (e *InvalidUpdate) ErrorMessage() string { return *e.Message } func (e *InvalidUpdate) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidUpdate" } return *e.ErrorCodeOverride @@ -2155,7 +2155,7 @@ func (e *InvocationDoesNotExist) ErrorMessage() string { return *e.Message } func (e *InvocationDoesNotExist) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvocationDoesNotExist" } return *e.ErrorCodeOverride @@ -2183,7 +2183,7 @@ func (e *ItemContentMismatchException) ErrorMessage() string { return *e.Message } func (e *ItemContentMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ItemContentMismatchException" } return *e.ErrorCodeOverride @@ -2211,7 +2211,7 @@ func (e *ItemSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ItemSizeLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ItemSizeLimitExceededException" } return *e.ErrorCodeOverride @@ -2237,7 +2237,7 @@ func (e *MaxDocumentSizeExceeded) ErrorMessage() string { return *e.Message } func (e *MaxDocumentSizeExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MaxDocumentSizeExceeded" } return *e.ErrorCodeOverride @@ -2265,7 +2265,7 @@ func (e *OpsItemAccessDeniedException) ErrorMessage() string { return *e.Message } func (e *OpsItemAccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OpsItemAccessDeniedException" } return *e.ErrorCodeOverride @@ -2293,7 +2293,7 @@ func (e *OpsItemAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *OpsItemAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OpsItemAlreadyExistsException" } return *e.ErrorCodeOverride @@ -2322,7 +2322,7 @@ func (e *OpsItemInvalidParameterException) ErrorMessage() string { return *e.Message } func (e *OpsItemInvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OpsItemInvalidParameterException" } return *e.ErrorCodeOverride @@ -2354,7 +2354,7 @@ func (e *OpsItemLimitExceededException) ErrorMessage() string { return *e.Message } func (e *OpsItemLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OpsItemLimitExceededException" } return *e.ErrorCodeOverride @@ -2380,7 +2380,7 @@ func (e *OpsItemNotFoundException) ErrorMessage() string { return *e.Message } func (e *OpsItemNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OpsItemNotFoundException" } return *e.ErrorCodeOverride @@ -2409,7 +2409,7 @@ func (e *OpsItemRelatedItemAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *OpsItemRelatedItemAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OpsItemRelatedItemAlreadyExistsException" } return *e.ErrorCodeOverride @@ -2438,7 +2438,7 @@ func (e *OpsItemRelatedItemAssociationNotFoundException) ErrorMessage() string { return *e.Message } func (e *OpsItemRelatedItemAssociationNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OpsItemRelatedItemAssociationNotFoundException" } return *e.ErrorCodeOverride @@ -2466,7 +2466,7 @@ func (e *OpsMetadataAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *OpsMetadataAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OpsMetadataAlreadyExistsException" } return *e.ErrorCodeOverride @@ -2492,7 +2492,7 @@ func (e *OpsMetadataInvalidArgumentException) ErrorMessage() string { return *e.Message } func (e *OpsMetadataInvalidArgumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OpsMetadataInvalidArgumentException" } return *e.ErrorCodeOverride @@ -2521,7 +2521,7 @@ func (e *OpsMetadataKeyLimitExceededException) ErrorMessage() string { return *e.Message } func (e *OpsMetadataKeyLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OpsMetadataKeyLimitExceededException" } return *e.ErrorCodeOverride @@ -2551,7 +2551,7 @@ func (e *OpsMetadataLimitExceededException) ErrorMessage() string { return *e.Message } func (e *OpsMetadataLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OpsMetadataLimitExceededException" } return *e.ErrorCodeOverride @@ -2577,7 +2577,7 @@ func (e *OpsMetadataNotFoundException) ErrorMessage() string { return *e.Message } func (e *OpsMetadataNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OpsMetadataNotFoundException" } return *e.ErrorCodeOverride @@ -2604,7 +2604,7 @@ func (e *OpsMetadataTooManyUpdatesException) ErrorMessage() string { return *e.Message } func (e *OpsMetadataTooManyUpdatesException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OpsMetadataTooManyUpdatesException" } return *e.ErrorCodeOverride @@ -2632,7 +2632,7 @@ func (e *ParameterAlreadyExists) ErrorMessage() string { return *e.Message } func (e *ParameterAlreadyExists) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ParameterAlreadyExists" } return *e.ErrorCodeOverride @@ -2659,7 +2659,7 @@ func (e *ParameterLimitExceeded) ErrorMessage() string { return *e.Message } func (e *ParameterLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ParameterLimitExceeded" } return *e.ErrorCodeOverride @@ -2702,7 +2702,7 @@ func (e *ParameterMaxVersionLimitExceeded) ErrorMessage() string { return *e.Message } func (e *ParameterMaxVersionLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ParameterMaxVersionLimitExceeded" } return *e.ErrorCodeOverride @@ -2728,7 +2728,7 @@ func (e *ParameterNotFound) ErrorMessage() string { return *e.Message } func (e *ParameterNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ParameterNotFound" } return *e.ErrorCodeOverride @@ -2754,7 +2754,7 @@ func (e *ParameterPatternMismatchException) ErrorMessage() string { return *e.Message } func (e *ParameterPatternMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ParameterPatternMismatchException" } return *e.ErrorCodeOverride @@ -2780,7 +2780,7 @@ func (e *ParameterVersionLabelLimitExceeded) ErrorMessage() string { return *e.Message } func (e *ParameterVersionLabelLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ParameterVersionLabelLimitExceeded" } return *e.ErrorCodeOverride @@ -2809,7 +2809,7 @@ func (e *ParameterVersionNotFound) ErrorMessage() string { return *e.Message } func (e *ParameterVersionNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ParameterVersionNotFound" } return *e.ErrorCodeOverride @@ -2836,7 +2836,7 @@ func (e *PoliciesLimitExceededException) ErrorMessage() string { return *e.Message } func (e *PoliciesLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PoliciesLimitExceededException" } return *e.ErrorCodeOverride @@ -2864,7 +2864,7 @@ func (e *ResourceDataSyncAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceDataSyncAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceDataSyncAlreadyExistsException" } return *e.ErrorCodeOverride @@ -2893,7 +2893,7 @@ func (e *ResourceDataSyncConflictException) ErrorMessage() string { return *e.Message } func (e *ResourceDataSyncConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceDataSyncConflictException" } return *e.ErrorCodeOverride @@ -2919,7 +2919,7 @@ func (e *ResourceDataSyncCountExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceDataSyncCountExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceDataSyncCountExceededException" } return *e.ErrorCodeOverride @@ -2947,7 +2947,7 @@ func (e *ResourceDataSyncInvalidConfigurationException) ErrorMessage() string { return *e.Message } func (e *ResourceDataSyncInvalidConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceDataSyncInvalidConfigurationException" } return *e.ErrorCodeOverride @@ -2978,7 +2978,7 @@ func (e *ResourceDataSyncNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceDataSyncNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceDataSyncNotFoundException" } return *e.ErrorCodeOverride @@ -3005,7 +3005,7 @@ func (e *ResourceInUseException) ErrorMessage() string { return *e.Message } func (e *ResourceInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceInUseException" } return *e.ErrorCodeOverride @@ -3036,7 +3036,7 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceLimitExceededException" } return *e.ErrorCodeOverride @@ -3064,7 +3064,7 @@ func (e *ResourcePolicyConflictException) ErrorMessage() string { return *e.Message } func (e *ResourcePolicyConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourcePolicyConflictException" } return *e.ErrorCodeOverride @@ -3093,7 +3093,7 @@ func (e *ResourcePolicyInvalidParameterException) ErrorMessage() string { return *e.Message } func (e *ResourcePolicyInvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourcePolicyInvalidParameterException" } return *e.ErrorCodeOverride @@ -3126,7 +3126,7 @@ func (e *ResourcePolicyLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourcePolicyLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourcePolicyLimitExceededException" } return *e.ErrorCodeOverride @@ -3155,7 +3155,7 @@ func (e *ServiceSettingNotFound) ErrorMessage() string { return *e.Message } func (e *ServiceSettingNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceSettingNotFound" } return *e.ErrorCodeOverride @@ -3181,7 +3181,7 @@ func (e *StatusUnchanged) ErrorMessage() string { return *e.Message } func (e *StatusUnchanged) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StatusUnchanged" } return *e.ErrorCodeOverride @@ -3207,7 +3207,7 @@ func (e *SubTypeCountLimitExceededException) ErrorMessage() string { return *e.Message } func (e *SubTypeCountLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SubTypeCountLimitExceededException" } return *e.ErrorCodeOverride @@ -3236,7 +3236,7 @@ func (e *TargetInUseException) ErrorMessage() string { return *e.Message } func (e *TargetInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TargetInUseException" } return *e.ErrorCodeOverride @@ -3268,7 +3268,7 @@ func (e *TargetNotConnected) ErrorMessage() string { return *e.Message } func (e *TargetNotConnected) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TargetNotConnected" } return *e.ErrorCodeOverride @@ -3295,7 +3295,7 @@ func (e *TooManyTagsError) ErrorMessage() string { return *e.Message } func (e *TooManyTagsError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsError" } return *e.ErrorCodeOverride @@ -3321,7 +3321,7 @@ func (e *TooManyUpdates) ErrorMessage() string { return *e.Message } func (e *TooManyUpdates) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyUpdates" } return *e.ErrorCodeOverride @@ -3347,7 +3347,7 @@ func (e *TotalSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *TotalSizeLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TotalSizeLimitExceededException" } return *e.ErrorCodeOverride @@ -3373,7 +3373,7 @@ func (e *UnsupportedCalendarException) ErrorMessage() string { return *e.Message } func (e *UnsupportedCalendarException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedCalendarException" } return *e.ErrorCodeOverride @@ -3404,7 +3404,7 @@ func (e *UnsupportedFeatureRequiredException) ErrorMessage() string { return *e.Message } func (e *UnsupportedFeatureRequiredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedFeatureRequiredException" } return *e.ErrorCodeOverride @@ -3436,7 +3436,7 @@ func (e *UnsupportedInventoryItemContextException) ErrorMessage() string { return *e.Message } func (e *UnsupportedInventoryItemContextException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedInventoryItemContextException" } return *e.ErrorCodeOverride @@ -3466,7 +3466,7 @@ func (e *UnsupportedInventorySchemaVersionException) ErrorMessage() string { return *e.Message } func (e *UnsupportedInventorySchemaVersionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedInventorySchemaVersionException" } return *e.ErrorCodeOverride @@ -3495,7 +3495,7 @@ func (e *UnsupportedOperatingSystem) ErrorMessage() string { return *e.Message } func (e *UnsupportedOperatingSystem) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedOperatingSystem" } return *e.ErrorCodeOverride @@ -3521,7 +3521,7 @@ func (e *UnsupportedParameterType) ErrorMessage() string { return *e.Message } func (e *UnsupportedParameterType) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedParameterType" } return *e.ErrorCodeOverride @@ -3548,7 +3548,7 @@ func (e *UnsupportedPlatformType) ErrorMessage() string { return *e.Message } func (e *UnsupportedPlatformType) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedPlatformType" } return *e.ErrorCodeOverride diff --git a/service/ssmcontacts/types/errors.go b/service/ssmcontacts/types/errors.go index 92720bcf1da..4f2735a9fe8 100644 --- a/service/ssmcontacts/types/errors.go +++ b/service/ssmcontacts/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *DataEncryptionException) ErrorMessage() string { return *e.Message } func (e *DataEncryptionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DataEncryptionException" } return *e.ErrorCodeOverride @@ -109,7 +109,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -138,7 +138,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -169,7 +169,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -199,7 +199,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -229,7 +229,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/ssmincidents/types/errors.go b/service/ssmincidents/types/errors.go index a8772de97d5..0355ed3b77b 100644 --- a/service/ssmincidents/types/errors.go +++ b/service/ssmincidents/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -84,7 +84,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -113,7 +113,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -144,7 +144,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -173,7 +173,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -200,7 +200,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/ssmsap/types/errors.go b/service/ssmsap/types/errors.go index 9b8823aaee8..bcf891db0ac 100644 --- a/service/ssmsap/types/errors.go +++ b/service/ssmsap/types/errors.go @@ -26,7 +26,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/sso/types/errors.go b/service/sso/types/errors.go index 8f0ac3a2937..e97a126e8bb 100644 --- a/service/sso/types/errors.go +++ b/service/sso/types/errors.go @@ -27,7 +27,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *UnauthorizedException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedException" } return *e.ErrorCodeOverride diff --git a/service/ssoadmin/types/errors.go b/service/ssoadmin/types/errors.go index 7f739c733a7..a738a17dbb7 100644 --- a/service/ssoadmin/types/errors.go +++ b/service/ssoadmin/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -188,7 +188,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/ssooidc/types/errors.go b/service/ssooidc/types/errors.go index b75cc489d93..8814b27d17f 100644 --- a/service/ssooidc/types/errors.go +++ b/service/ssooidc/types/errors.go @@ -29,7 +29,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -59,7 +59,7 @@ func (e *AuthorizationPendingException) ErrorMessage() string { return *e.Message } func (e *AuthorizationPendingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AuthorizationPendingException" } return *e.ErrorCodeOverride @@ -89,7 +89,7 @@ func (e *ExpiredTokenException) ErrorMessage() string { return *e.Message } func (e *ExpiredTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ExpiredTokenException" } return *e.ErrorCodeOverride @@ -119,7 +119,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -150,7 +150,7 @@ func (e *InvalidClientException) ErrorMessage() string { return *e.Message } func (e *InvalidClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidClientException" } return *e.ErrorCodeOverride @@ -180,7 +180,7 @@ func (e *InvalidClientMetadataException) ErrorMessage() string { return *e.Message } func (e *InvalidClientMetadataException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidClientMetadataException" } return *e.ErrorCodeOverride @@ -210,7 +210,7 @@ func (e *InvalidGrantException) ErrorMessage() string { return *e.Message } func (e *InvalidGrantException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidGrantException" } return *e.ErrorCodeOverride @@ -240,7 +240,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -269,7 +269,7 @@ func (e *InvalidScopeException) ErrorMessage() string { return *e.Message } func (e *InvalidScopeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidScopeException" } return *e.ErrorCodeOverride @@ -299,7 +299,7 @@ func (e *SlowDownException) ErrorMessage() string { return *e.Message } func (e *SlowDownException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "SlowDownException" } return *e.ErrorCodeOverride @@ -329,7 +329,7 @@ func (e *UnauthorizedClientException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedClientException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedClientException" } return *e.ErrorCodeOverride @@ -358,7 +358,7 @@ func (e *UnsupportedGrantTypeException) ErrorMessage() string { return *e.Message } func (e *UnsupportedGrantTypeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedGrantTypeException" } return *e.ErrorCodeOverride diff --git a/service/storagegateway/types/errors.go b/service/storagegateway/types/errors.go index 0d684c39db4..dc4b041bc9a 100644 --- a/service/storagegateway/types/errors.go +++ b/service/storagegateway/types/errors.go @@ -29,7 +29,7 @@ func (e *InternalServerError) ErrorMessage() string { return *e.Message } func (e *InternalServerError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerError" } return *e.ErrorCodeOverride @@ -58,7 +58,7 @@ func (e *InvalidGatewayRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidGatewayRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidGatewayRequestException" } return *e.ErrorCodeOverride @@ -87,7 +87,7 @@ func (e *ServiceUnavailableError) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableError" } return *e.ErrorCodeOverride diff --git a/service/sts/types/errors.go b/service/sts/types/errors.go index 88d3e6c6935..9e3adaa9a07 100644 --- a/service/sts/types/errors.go +++ b/service/sts/types/errors.go @@ -27,7 +27,7 @@ func (e *ExpiredTokenException) ErrorMessage() string { return *e.Message } func (e *ExpiredTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ExpiredTokenException" } return *e.ErrorCodeOverride @@ -57,7 +57,7 @@ func (e *IDPCommunicationErrorException) ErrorMessage() string { return *e.Message } func (e *IDPCommunicationErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IDPCommunicationError" } return *e.ErrorCodeOverride @@ -86,7 +86,7 @@ func (e *IDPRejectedClaimException) ErrorMessage() string { return *e.Message } func (e *IDPRejectedClaimException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IDPRejectedClaim" } return *e.ErrorCodeOverride @@ -114,7 +114,7 @@ func (e *InvalidAuthorizationMessageException) ErrorMessage() string { return *e.Message } func (e *InvalidAuthorizationMessageException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidAuthorizationMessageException" } return *e.ErrorCodeOverride @@ -144,7 +144,7 @@ func (e *InvalidIdentityTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidIdentityTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidIdentityToken" } return *e.ErrorCodeOverride @@ -171,7 +171,7 @@ func (e *MalformedPolicyDocumentException) ErrorMessage() string { return *e.Message } func (e *MalformedPolicyDocumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MalformedPolicyDocument" } return *e.ErrorCodeOverride @@ -208,7 +208,7 @@ func (e *PackedPolicyTooLargeException) ErrorMessage() string { return *e.Message } func (e *PackedPolicyTooLargeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PackedPolicyTooLarge" } return *e.ErrorCodeOverride @@ -239,7 +239,7 @@ func (e *RegionDisabledException) ErrorMessage() string { return *e.Message } func (e *RegionDisabledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RegionDisabledException" } return *e.ErrorCodeOverride diff --git a/service/support/types/errors.go b/service/support/types/errors.go index dd018a2706a..ef5caf9586f 100644 --- a/service/support/types/errors.go +++ b/service/support/types/errors.go @@ -26,7 +26,7 @@ func (e *AttachmentIdNotFound) ErrorMessage() string { return *e.Message } func (e *AttachmentIdNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AttachmentIdNotFound" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *AttachmentLimitExceeded) ErrorMessage() string { return *e.Message } func (e *AttachmentLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AttachmentLimitExceeded" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *AttachmentSetExpired) ErrorMessage() string { return *e.Message } func (e *AttachmentSetExpired) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AttachmentSetExpired" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *AttachmentSetIdNotFound) ErrorMessage() string { return *e.Message } func (e *AttachmentSetIdNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AttachmentSetIdNotFound" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *AttachmentSetSizeLimitExceeded) ErrorMessage() string { return *e.Message } func (e *AttachmentSetSizeLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AttachmentSetSizeLimitExceeded" } return *e.ErrorCodeOverride @@ -159,7 +159,7 @@ func (e *CaseCreationLimitExceeded) ErrorMessage() string { return *e.Message } func (e *CaseCreationLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CaseCreationLimitExceeded" } return *e.ErrorCodeOverride @@ -185,7 +185,7 @@ func (e *CaseIdNotFound) ErrorMessage() string { return *e.Message } func (e *CaseIdNotFound) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CaseIdNotFound" } return *e.ErrorCodeOverride @@ -212,7 +212,7 @@ func (e *DescribeAttachmentLimitExceeded) ErrorMessage() string { return *e.Message } func (e *DescribeAttachmentLimitExceeded) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DescribeAttachmentLimitExceeded" } return *e.ErrorCodeOverride @@ -238,7 +238,7 @@ func (e *InternalServerError) ErrorMessage() string { return *e.Message } func (e *InternalServerError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerError" } return *e.ErrorCodeOverride diff --git a/service/supportapp/types/errors.go b/service/supportapp/types/errors.go index f1f2bae18d4..15a1ba4ad7f 100644 --- a/service/supportapp/types/errors.go +++ b/service/supportapp/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -74,7 +74,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -101,7 +101,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -128,7 +128,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -184,7 +184,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/swf/types/errors.go b/service/swf/types/errors.go index fef194b7099..4986e6bc221 100644 --- a/service/swf/types/errors.go +++ b/service/swf/types/errors.go @@ -32,7 +32,7 @@ func (e *DefaultUndefinedFault) ErrorMessage() string { return *e.Message } func (e *DefaultUndefinedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DefaultUndefinedFault" } return *e.ErrorCodeOverride @@ -60,7 +60,7 @@ func (e *DomainAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *DomainAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DomainAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -86,7 +86,7 @@ func (e *DomainDeprecatedFault) ErrorMessage() string { return *e.Message } func (e *DomainDeprecatedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DomainDeprecatedFault" } return *e.ErrorCodeOverride @@ -114,7 +114,7 @@ func (e *LimitExceededFault) ErrorMessage() string { return *e.Message } func (e *LimitExceededFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededFault" } return *e.ErrorCodeOverride @@ -141,7 +141,7 @@ func (e *OperationNotPermittedFault) ErrorMessage() string { return *e.Message } func (e *OperationNotPermittedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationNotPermittedFault" } return *e.ErrorCodeOverride @@ -167,7 +167,7 @@ func (e *TooManyTagsFault) ErrorMessage() string { return *e.Message } func (e *TooManyTagsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsFault" } return *e.ErrorCodeOverride @@ -195,7 +195,7 @@ func (e *TypeAlreadyExistsFault) ErrorMessage() string { return *e.Message } func (e *TypeAlreadyExistsFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TypeAlreadyExistsFault" } return *e.ErrorCodeOverride @@ -221,7 +221,7 @@ func (e *TypeDeprecatedFault) ErrorMessage() string { return *e.Message } func (e *TypeDeprecatedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TypeDeprecatedFault" } return *e.ErrorCodeOverride @@ -249,7 +249,7 @@ func (e *UnknownResourceFault) ErrorMessage() string { return *e.Message } func (e *UnknownResourceFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnknownResourceFault" } return *e.ErrorCodeOverride @@ -276,7 +276,7 @@ func (e *WorkflowExecutionAlreadyStartedFault) ErrorMessage() string { return *e.Message } func (e *WorkflowExecutionAlreadyStartedFault) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WorkflowExecutionAlreadyStartedFault" } return *e.ErrorCodeOverride diff --git a/service/synthetics/types/errors.go b/service/synthetics/types/errors.go index 68160061c45..1e189893566 100644 --- a/service/synthetics/types/errors.go +++ b/service/synthetics/types/errors.go @@ -26,7 +26,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InternalFailureException) ErrorMessage() string { return *e.Message } func (e *InternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailureException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *RequestEntityTooLargeException) ErrorMessage() string { return *e.Message } func (e *RequestEntityTooLargeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestEntityTooLargeException" } return *e.ErrorCodeOverride @@ -182,7 +182,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -208,7 +208,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -234,7 +234,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -260,7 +260,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/textract/types/errors.go b/service/textract/types/errors.go index bed170b769d..efb39ef72fb 100644 --- a/service/textract/types/errors.go +++ b/service/textract/types/errors.go @@ -29,7 +29,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -58,7 +58,7 @@ func (e *BadDocumentException) ErrorMessage() string { return *e.Message } func (e *BadDocumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadDocumentException" } return *e.ErrorCodeOverride @@ -88,7 +88,7 @@ func (e *DocumentTooLargeException) ErrorMessage() string { return *e.Message } func (e *DocumentTooLargeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DocumentTooLargeException" } return *e.ErrorCodeOverride @@ -120,7 +120,7 @@ func (e *HumanLoopQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *HumanLoopQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "HumanLoopQuotaExceededException" } return *e.ErrorCodeOverride @@ -150,7 +150,7 @@ func (e *IdempotentParameterMismatchException) ErrorMessage() string { return *e.Message } func (e *IdempotentParameterMismatchException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IdempotentParameterMismatchException" } return *e.ErrorCodeOverride @@ -180,7 +180,7 @@ func (e *InternalServerError) ErrorMessage() string { return *e.Message } func (e *InternalServerError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerError" } return *e.ErrorCodeOverride @@ -208,7 +208,7 @@ func (e *InvalidJobIdException) ErrorMessage() string { return *e.Message } func (e *InvalidJobIdException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidJobIdException" } return *e.ErrorCodeOverride @@ -237,7 +237,7 @@ func (e *InvalidKMSKeyException) ErrorMessage() string { return *e.Message } func (e *InvalidKMSKeyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidKMSKeyException" } return *e.ErrorCodeOverride @@ -268,7 +268,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -300,7 +300,7 @@ func (e *InvalidS3ObjectException) ErrorMessage() string { return *e.Message } func (e *InvalidS3ObjectException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidS3ObjectException" } return *e.ErrorCodeOverride @@ -332,7 +332,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -361,7 +361,7 @@ func (e *ProvisionedThroughputExceededException) ErrorMessage() string { return *e.Message } func (e *ProvisionedThroughputExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ProvisionedThroughputExceededException" } return *e.ErrorCodeOverride @@ -392,7 +392,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -421,7 +421,7 @@ func (e *UnsupportedDocumentException) ErrorMessage() string { return *e.Message } func (e *UnsupportedDocumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedDocumentException" } return *e.ErrorCodeOverride diff --git a/service/timestreamquery/types/errors.go b/service/timestreamquery/types/errors.go index 28145f2ac62..ec62ff739a1 100644 --- a/service/timestreamquery/types/errors.go +++ b/service/timestreamquery/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -79,7 +79,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *InvalidEndpointException) ErrorMessage() string { return *e.Message } func (e *InvalidEndpointException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidEndpointException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *QueryExecutionException) ErrorMessage() string { return *e.Message } func (e *QueryExecutionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "QueryExecutionException" } return *e.ErrorCodeOverride @@ -159,7 +159,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -185,7 +185,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -211,7 +211,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -237,7 +237,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/timestreamwrite/types/errors.go b/service/timestreamwrite/types/errors.go index d4f2092bef8..05fce7f1786 100644 --- a/service/timestreamwrite/types/errors.go +++ b/service/timestreamwrite/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -106,7 +106,7 @@ func (e *InvalidEndpointException) ErrorMessage() string { return *e.Message } func (e *InvalidEndpointException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidEndpointException" } return *e.ErrorCodeOverride @@ -160,7 +160,7 @@ func (e *RejectedRecordsException) ErrorMessage() string { return *e.Message } func (e *RejectedRecordsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RejectedRecordsException" } return *e.ErrorCodeOverride @@ -187,7 +187,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -213,7 +213,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -240,7 +240,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -266,7 +266,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/tnb/types/errors.go b/service/tnb/types/errors.go index a9fc0ac91f6..67681a6405c 100644 --- a/service/tnb/types/errors.go +++ b/service/tnb/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -157,7 +157,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/transcribe/types/errors.go b/service/transcribe/types/errors.go index abcf4f83ad1..50ba920794d 100644 --- a/service/transcribe/types/errors.go +++ b/service/transcribe/types/errors.go @@ -28,7 +28,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InternalFailureException) ErrorMessage() string { return *e.Message } func (e *InternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailureException" } return *e.ErrorCodeOverride @@ -109,7 +109,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -136,7 +136,7 @@ func (e *NotFoundException) ErrorMessage() string { return *e.Message } func (e *NotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride diff --git a/service/transcribestreaming/types/errors.go b/service/transcribestreaming/types/errors.go index 1f918e4559f..1242cac65e0 100644 --- a/service/transcribestreaming/types/errors.go +++ b/service/transcribestreaming/types/errors.go @@ -29,7 +29,7 @@ func (e *BadRequestException) ErrorMessage() string { return *e.Message } func (e *BadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *InternalFailureException) ErrorMessage() string { return *e.Message } func (e *InternalFailureException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalFailureException" } return *e.ErrorCodeOverride @@ -111,7 +111,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -137,7 +137,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride diff --git a/service/transfer/types/errors.go b/service/transfer/types/errors.go index ede7a40f48f..f153614fbed 100644 --- a/service/transfer/types/errors.go +++ b/service/transfer/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *InternalServiceError) ErrorMessage() string { return *e.Message } func (e *InternalServiceError) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServiceError" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *InvalidNextTokenException) ErrorMessage() string { return *e.Message } func (e *InvalidNextTokenException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidNextTokenException" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *ResourceExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceExistsException" } return *e.ErrorCodeOverride @@ -192,7 +192,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -219,7 +219,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -247,7 +247,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride diff --git a/service/translate/types/errors.go b/service/translate/types/errors.go index 1ae2d3be53d..7816966c16c 100644 --- a/service/translate/types/errors.go +++ b/service/translate/types/errors.go @@ -27,7 +27,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -86,7 +86,7 @@ func (e *DetectedLanguageLowConfidenceException) ErrorMessage() string { return *e.Message } func (e *DetectedLanguageLowConfidenceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DetectedLanguageLowConfidenceException" } return *e.ErrorCodeOverride @@ -114,7 +114,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -140,7 +140,7 @@ func (e *InvalidFilterException) ErrorMessage() string { return *e.Message } func (e *InvalidFilterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidFilterException" } return *e.ErrorCodeOverride @@ -167,7 +167,7 @@ func (e *InvalidParameterValueException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterValueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterValueException" } return *e.ErrorCodeOverride @@ -194,7 +194,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -221,7 +221,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -249,7 +249,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -276,7 +276,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -303,7 +303,7 @@ func (e *TextSizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *TextSizeLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TextSizeLimitExceededException" } return *e.ErrorCodeOverride @@ -330,7 +330,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -358,7 +358,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -386,7 +386,7 @@ func (e *UnsupportedDisplayLanguageCodeException) ErrorMessage() string { return *e.Message } func (e *UnsupportedDisplayLanguageCodeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedDisplayLanguageCodeException" } return *e.ErrorCodeOverride @@ -420,7 +420,7 @@ func (e *UnsupportedLanguagePairException) ErrorMessage() string { return *e.Message } func (e *UnsupportedLanguagePairException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedLanguagePairException" } return *e.ErrorCodeOverride diff --git a/service/voiceid/types/errors.go b/service/voiceid/types/errors.go index e7ad19f828a..4008b3b9ff9 100644 --- a/service/voiceid/types/errors.go +++ b/service/voiceid/types/errors.go @@ -27,7 +27,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -56,7 +56,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -111,7 +111,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -139,7 +139,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -168,7 +168,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -195,7 +195,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/waf/types/errors.go b/service/waf/types/errors.go index 7e33894b9f1..e8d6ca371e2 100644 --- a/service/waf/types/errors.go +++ b/service/waf/types/errors.go @@ -25,7 +25,7 @@ func (e *WAFBadRequestException) ErrorMessage() string { return *e.Message } func (e *WAFBadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFBadRequestException" } return *e.ErrorCodeOverride @@ -51,7 +51,7 @@ func (e *WAFDisallowedNameException) ErrorMessage() string { return *e.Message } func (e *WAFDisallowedNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFDisallowedNameException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *WAFEntityMigrationException) ErrorMessage() string { return *e.Message } func (e *WAFEntityMigrationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFEntityMigrationException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *WAFInternalErrorException) ErrorMessage() string { return *e.Message } func (e *WAFInternalErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFInternalErrorException" } return *e.ErrorCodeOverride @@ -158,7 +158,7 @@ func (e *WAFInvalidAccountException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidAccountException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFInvalidAccountException" } return *e.ErrorCodeOverride @@ -201,7 +201,7 @@ func (e *WAFInvalidOperationException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFInvalidOperationException" } return *e.ErrorCodeOverride @@ -260,7 +260,7 @@ func (e *WAFInvalidParameterException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFInvalidParameterException" } return *e.ErrorCodeOverride @@ -311,7 +311,7 @@ func (e *WAFInvalidPermissionPolicyException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidPermissionPolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFInvalidPermissionPolicyException" } return *e.ErrorCodeOverride @@ -339,7 +339,7 @@ func (e *WAFInvalidRegexPatternException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidRegexPatternException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFInvalidRegexPatternException" } return *e.ErrorCodeOverride @@ -368,7 +368,7 @@ func (e *WAFLimitsExceededException) ErrorMessage() string { return *e.Message } func (e *WAFLimitsExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFLimitsExceededException" } return *e.ErrorCodeOverride @@ -407,7 +407,7 @@ func (e *WAFNonEmptyEntityException) ErrorMessage() string { return *e.Message } func (e *WAFNonEmptyEntityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFNonEmptyEntityException" } return *e.ErrorCodeOverride @@ -447,7 +447,7 @@ func (e *WAFNonexistentContainerException) ErrorMessage() string { return *e.Message } func (e *WAFNonexistentContainerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFNonexistentContainerException" } return *e.ErrorCodeOverride @@ -473,7 +473,7 @@ func (e *WAFNonexistentItemException) ErrorMessage() string { return *e.Message } func (e *WAFNonexistentItemException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFNonexistentItemException" } return *e.ErrorCodeOverride @@ -505,7 +505,7 @@ func (e *WAFReferencedItemException) ErrorMessage() string { return *e.Message } func (e *WAFReferencedItemException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFReferencedItemException" } return *e.ErrorCodeOverride @@ -538,7 +538,7 @@ func (e *WAFServiceLinkedRoleErrorException) ErrorMessage() string { return *e.Message } func (e *WAFServiceLinkedRoleErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFServiceLinkedRoleErrorException" } return *e.ErrorCodeOverride @@ -567,7 +567,7 @@ func (e *WAFStaleDataException) ErrorMessage() string { return *e.Message } func (e *WAFStaleDataException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFStaleDataException" } return *e.ErrorCodeOverride @@ -593,7 +593,7 @@ func (e *WAFSubscriptionNotFoundException) ErrorMessage() string { return *e.Message } func (e *WAFSubscriptionNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFSubscriptionNotFoundException" } return *e.ErrorCodeOverride @@ -618,7 +618,7 @@ func (e *WAFTagOperationException) ErrorMessage() string { return *e.Message } func (e *WAFTagOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFTagOperationException" } return *e.ErrorCodeOverride @@ -643,7 +643,7 @@ func (e *WAFTagOperationInternalErrorException) ErrorMessage() string { return *e.Message } func (e *WAFTagOperationInternalErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFTagOperationInternalErrorException" } return *e.ErrorCodeOverride diff --git a/service/wafregional/types/errors.go b/service/wafregional/types/errors.go index aaa1908b012..826cd2f24a7 100644 --- a/service/wafregional/types/errors.go +++ b/service/wafregional/types/errors.go @@ -25,7 +25,7 @@ func (e *WAFBadRequestException) ErrorMessage() string { return *e.Message } func (e *WAFBadRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFBadRequestException" } return *e.ErrorCodeOverride @@ -51,7 +51,7 @@ func (e *WAFDisallowedNameException) ErrorMessage() string { return *e.Message } func (e *WAFDisallowedNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFDisallowedNameException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *WAFEntityMigrationException) ErrorMessage() string { return *e.Message } func (e *WAFEntityMigrationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFEntityMigrationException" } return *e.ErrorCodeOverride @@ -131,7 +131,7 @@ func (e *WAFInternalErrorException) ErrorMessage() string { return *e.Message } func (e *WAFInternalErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFInternalErrorException" } return *e.ErrorCodeOverride @@ -158,7 +158,7 @@ func (e *WAFInvalidAccountException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidAccountException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFInvalidAccountException" } return *e.ErrorCodeOverride @@ -201,7 +201,7 @@ func (e *WAFInvalidOperationException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFInvalidOperationException" } return *e.ErrorCodeOverride @@ -260,7 +260,7 @@ func (e *WAFInvalidParameterException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFInvalidParameterException" } return *e.ErrorCodeOverride @@ -311,7 +311,7 @@ func (e *WAFInvalidPermissionPolicyException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidPermissionPolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFInvalidPermissionPolicyException" } return *e.ErrorCodeOverride @@ -339,7 +339,7 @@ func (e *WAFInvalidRegexPatternException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidRegexPatternException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFInvalidRegexPatternException" } return *e.ErrorCodeOverride @@ -368,7 +368,7 @@ func (e *WAFLimitsExceededException) ErrorMessage() string { return *e.Message } func (e *WAFLimitsExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFLimitsExceededException" } return *e.ErrorCodeOverride @@ -407,7 +407,7 @@ func (e *WAFNonEmptyEntityException) ErrorMessage() string { return *e.Message } func (e *WAFNonEmptyEntityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFNonEmptyEntityException" } return *e.ErrorCodeOverride @@ -447,7 +447,7 @@ func (e *WAFNonexistentContainerException) ErrorMessage() string { return *e.Message } func (e *WAFNonexistentContainerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFNonexistentContainerException" } return *e.ErrorCodeOverride @@ -473,7 +473,7 @@ func (e *WAFNonexistentItemException) ErrorMessage() string { return *e.Message } func (e *WAFNonexistentItemException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFNonexistentItemException" } return *e.ErrorCodeOverride @@ -505,7 +505,7 @@ func (e *WAFReferencedItemException) ErrorMessage() string { return *e.Message } func (e *WAFReferencedItemException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFReferencedItemException" } return *e.ErrorCodeOverride @@ -538,7 +538,7 @@ func (e *WAFServiceLinkedRoleErrorException) ErrorMessage() string { return *e.Message } func (e *WAFServiceLinkedRoleErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFServiceLinkedRoleErrorException" } return *e.ErrorCodeOverride @@ -567,7 +567,7 @@ func (e *WAFStaleDataException) ErrorMessage() string { return *e.Message } func (e *WAFStaleDataException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFStaleDataException" } return *e.ErrorCodeOverride @@ -593,7 +593,7 @@ func (e *WAFSubscriptionNotFoundException) ErrorMessage() string { return *e.Message } func (e *WAFSubscriptionNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFSubscriptionNotFoundException" } return *e.ErrorCodeOverride @@ -618,7 +618,7 @@ func (e *WAFTagOperationException) ErrorMessage() string { return *e.Message } func (e *WAFTagOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFTagOperationException" } return *e.ErrorCodeOverride @@ -643,7 +643,7 @@ func (e *WAFTagOperationInternalErrorException) ErrorMessage() string { return *e.Message } func (e *WAFTagOperationInternalErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFTagOperationInternalErrorException" } return *e.ErrorCodeOverride @@ -672,7 +672,7 @@ func (e *WAFUnavailableEntityException) ErrorMessage() string { return *e.Message } func (e *WAFUnavailableEntityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFUnavailableEntityException" } return *e.ErrorCodeOverride diff --git a/service/wafv2/types/errors.go b/service/wafv2/types/errors.go index 08bf5fbc63c..2e8e79a1cf0 100644 --- a/service/wafv2/types/errors.go +++ b/service/wafv2/types/errors.go @@ -27,7 +27,7 @@ func (e *WAFAssociatedItemException) ErrorMessage() string { return *e.Message } func (e *WAFAssociatedItemException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFAssociatedItemException" } return *e.ErrorCodeOverride @@ -61,7 +61,7 @@ func (e *WAFConfigurationWarningException) ErrorMessage() string { return *e.Message } func (e *WAFConfigurationWarningException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFConfigurationWarningException" } return *e.ErrorCodeOverride @@ -88,7 +88,7 @@ func (e *WAFDuplicateItemException) ErrorMessage() string { return *e.Message } func (e *WAFDuplicateItemException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFDuplicateItemException" } return *e.ErrorCodeOverride @@ -116,7 +116,7 @@ func (e *WAFExpiredManagedRuleGroupVersionException) ErrorMessage() string { return *e.Message } func (e *WAFExpiredManagedRuleGroupVersionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFExpiredManagedRuleGroupVersionException" } return *e.ErrorCodeOverride @@ -145,7 +145,7 @@ func (e *WAFInternalErrorException) ErrorMessage() string { return *e.Message } func (e *WAFInternalErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFInternalErrorException" } return *e.ErrorCodeOverride @@ -171,7 +171,7 @@ func (e *WAFInvalidOperationException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFInvalidOperationException" } return *e.ErrorCodeOverride @@ -215,7 +215,7 @@ func (e *WAFInvalidParameterException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFInvalidParameterException" } return *e.ErrorCodeOverride @@ -262,7 +262,7 @@ func (e *WAFInvalidPermissionPolicyException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidPermissionPolicyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFInvalidPermissionPolicyException" } return *e.ErrorCodeOverride @@ -291,7 +291,7 @@ func (e *WAFInvalidResourceException) ErrorMessage() string { return *e.Message } func (e *WAFInvalidResourceException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFInvalidResourceException" } return *e.ErrorCodeOverride @@ -321,7 +321,7 @@ func (e *WAFLimitsExceededException) ErrorMessage() string { return *e.Message } func (e *WAFLimitsExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFLimitsExceededException" } return *e.ErrorCodeOverride @@ -350,7 +350,7 @@ func (e *WAFLogDestinationPermissionIssueException) ErrorMessage() string { return *e.Message } func (e *WAFLogDestinationPermissionIssueException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFLogDestinationPermissionIssueException" } return *e.ErrorCodeOverride @@ -381,7 +381,7 @@ func (e *WAFNonexistentItemException) ErrorMessage() string { return *e.Message } func (e *WAFNonexistentItemException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFNonexistentItemException" } return *e.ErrorCodeOverride @@ -409,7 +409,7 @@ func (e *WAFOptimisticLockException) ErrorMessage() string { return *e.Message } func (e *WAFOptimisticLockException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFOptimisticLockException" } return *e.ErrorCodeOverride @@ -442,7 +442,7 @@ func (e *WAFServiceLinkedRoleErrorException) ErrorMessage() string { return *e.Message } func (e *WAFServiceLinkedRoleErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFServiceLinkedRoleErrorException" } return *e.ErrorCodeOverride @@ -471,7 +471,7 @@ func (e *WAFSubscriptionNotFoundException) ErrorMessage() string { return *e.Message } func (e *WAFSubscriptionNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFSubscriptionNotFoundException" } return *e.ErrorCodeOverride @@ -497,7 +497,7 @@ func (e *WAFTagOperationException) ErrorMessage() string { return *e.Message } func (e *WAFTagOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFTagOperationException" } return *e.ErrorCodeOverride @@ -524,7 +524,7 @@ func (e *WAFTagOperationInternalErrorException) ErrorMessage() string { return *e.Message } func (e *WAFTagOperationInternalErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFTagOperationInternalErrorException" } return *e.ErrorCodeOverride @@ -556,7 +556,7 @@ func (e *WAFUnavailableEntityException) ErrorMessage() string { return *e.Message } func (e *WAFUnavailableEntityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WAFUnavailableEntityException" } return *e.ErrorCodeOverride diff --git a/service/wellarchitected/types/errors.go b/service/wellarchitected/types/errors.go index 5d779e9aa2d..02392ffc230 100644 --- a/service/wellarchitected/types/errors.go +++ b/service/wellarchitected/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -110,7 +110,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -141,7 +141,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -170,7 +170,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -199,7 +199,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/wisdom/types/errors.go b/service/wisdom/types/errors.go index 1c4925c6013..155928b89db 100644 --- a/service/wisdom/types/errors.go +++ b/service/wisdom/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -82,7 +82,7 @@ func (e *PreconditionFailedException) ErrorMessage() string { return *e.Message } func (e *PreconditionFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PreconditionFailedException" } return *e.ErrorCodeOverride @@ -110,7 +110,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -138,7 +138,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -167,7 +167,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -193,7 +193,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/workdocs/types/errors.go b/service/workdocs/types/errors.go index d2d0c053bd8..532636edf5e 100644 --- a/service/workdocs/types/errors.go +++ b/service/workdocs/types/errors.go @@ -26,7 +26,7 @@ func (e *ConcurrentModificationException) ErrorMessage() string { return *e.Message } func (e *ConcurrentModificationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConcurrentModificationException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *ConflictingOperationException) ErrorMessage() string { return *e.Message } func (e *ConflictingOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictingOperationException" } return *e.ErrorCodeOverride @@ -80,7 +80,7 @@ func (e *CustomMetadataLimitExceededException) ErrorMessage() string { return *e.Message } func (e *CustomMetadataLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "CustomMetadataLimitExceededException" } return *e.ErrorCodeOverride @@ -110,7 +110,7 @@ func (e *DeactivatingLastSystemUserException) ErrorMessage() string { return *e.Message } func (e *DeactivatingLastSystemUserException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DeactivatingLastSystemUserException" } return *e.ErrorCodeOverride @@ -139,7 +139,7 @@ func (e *DocumentLockedForCommentsException) ErrorMessage() string { return *e.Message } func (e *DocumentLockedForCommentsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DocumentLockedForCommentsException" } return *e.ErrorCodeOverride @@ -168,7 +168,7 @@ func (e *DraftUploadOutOfSyncException) ErrorMessage() string { return *e.Message } func (e *DraftUploadOutOfSyncException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DraftUploadOutOfSyncException" } return *e.ErrorCodeOverride @@ -194,7 +194,7 @@ func (e *EntityAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *EntityAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EntityAlreadyExistsException" } return *e.ErrorCodeOverride @@ -222,7 +222,7 @@ func (e *EntityNotExistsException) ErrorMessage() string { return *e.Message } func (e *EntityNotExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EntityNotExistsException" } return *e.ErrorCodeOverride @@ -250,7 +250,7 @@ func (e *FailedDependencyException) ErrorMessage() string { return *e.Message } func (e *FailedDependencyException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "FailedDependencyException" } return *e.ErrorCodeOverride @@ -276,7 +276,7 @@ func (e *IllegalUserStateException) ErrorMessage() string { return *e.Message } func (e *IllegalUserStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "IllegalUserStateException" } return *e.ErrorCodeOverride @@ -302,7 +302,7 @@ func (e *InvalidArgumentException) ErrorMessage() string { return *e.Message } func (e *InvalidArgumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidArgumentException" } return *e.ErrorCodeOverride @@ -328,7 +328,7 @@ func (e *InvalidCommentOperationException) ErrorMessage() string { return *e.Message } func (e *InvalidCommentOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCommentOperationException" } return *e.ErrorCodeOverride @@ -354,7 +354,7 @@ func (e *InvalidOperationException) ErrorMessage() string { return *e.Message } func (e *InvalidOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidOperationException" } return *e.ErrorCodeOverride @@ -380,7 +380,7 @@ func (e *InvalidPasswordException) ErrorMessage() string { return *e.Message } func (e *InvalidPasswordException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPasswordException" } return *e.ErrorCodeOverride @@ -407,7 +407,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -433,7 +433,7 @@ func (e *ProhibitedStateException) ErrorMessage() string { return *e.Message } func (e *ProhibitedStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ProhibitedStateException" } return *e.ErrorCodeOverride @@ -460,7 +460,7 @@ func (e *RequestedEntityTooLargeException) ErrorMessage() string { return *e.Message } func (e *RequestedEntityTooLargeException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RequestedEntityTooLargeException" } return *e.ErrorCodeOverride @@ -486,7 +486,7 @@ func (e *ResourceAlreadyCheckedOutException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyCheckedOutException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyCheckedOutException" } return *e.ErrorCodeOverride @@ -514,7 +514,7 @@ func (e *ServiceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ServiceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceUnavailableException" } return *e.ErrorCodeOverride @@ -540,7 +540,7 @@ func (e *StorageLimitExceededException) ErrorMessage() string { return *e.Message } func (e *StorageLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StorageLimitExceededException" } return *e.ErrorCodeOverride @@ -566,7 +566,7 @@ func (e *StorageLimitWillExceedException) ErrorMessage() string { return *e.Message } func (e *StorageLimitWillExceedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "StorageLimitWillExceedException" } return *e.ErrorCodeOverride @@ -592,7 +592,7 @@ func (e *TooManyLabelsException) ErrorMessage() string { return *e.Message } func (e *TooManyLabelsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyLabelsException" } return *e.ErrorCodeOverride @@ -619,7 +619,7 @@ func (e *TooManySubscriptionsException) ErrorMessage() string { return *e.Message } func (e *TooManySubscriptionsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManySubscriptionsException" } return *e.ErrorCodeOverride @@ -647,7 +647,7 @@ func (e *UnauthorizedOperationException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedOperationException" } return *e.ErrorCodeOverride @@ -673,7 +673,7 @@ func (e *UnauthorizedResourceAccessException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedResourceAccessException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedResourceAccessException" } return *e.ErrorCodeOverride diff --git a/service/worklink/types/errors.go b/service/worklink/types/errors.go index 65effe1986d..bde908c98eb 100644 --- a/service/worklink/types/errors.go +++ b/service/worklink/types/errors.go @@ -26,7 +26,7 @@ func (e *InternalServerErrorException) ErrorMessage() string { return *e.Message } func (e *InternalServerErrorException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerErrorException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -104,7 +104,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -130,7 +130,7 @@ func (e *TooManyRequestsException) ErrorMessage() string { return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride @@ -156,7 +156,7 @@ func (e *UnauthorizedException) ErrorMessage() string { return *e.Message } func (e *UnauthorizedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnauthorizedException" } return *e.ErrorCodeOverride diff --git a/service/workmail/types/errors.go b/service/workmail/types/errors.go index 478bd029890..d2e79628244 100644 --- a/service/workmail/types/errors.go +++ b/service/workmail/types/errors.go @@ -27,7 +27,7 @@ func (e *DirectoryInUseException) ErrorMessage() string { return *e.Message } func (e *DirectoryInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DirectoryInUseException" } return *e.ErrorCodeOverride @@ -53,7 +53,7 @@ func (e *DirectoryServiceAuthenticationFailedException) ErrorMessage() string { return *e.Message } func (e *DirectoryServiceAuthenticationFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DirectoryServiceAuthenticationFailedException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *DirectoryUnavailableException) ErrorMessage() string { return *e.Message } func (e *DirectoryUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "DirectoryUnavailableException" } return *e.ErrorCodeOverride @@ -108,7 +108,7 @@ func (e *EmailAddressInUseException) ErrorMessage() string { return *e.Message } func (e *EmailAddressInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EmailAddressInUseException" } return *e.ErrorCodeOverride @@ -135,7 +135,7 @@ func (e *EntityAlreadyRegisteredException) ErrorMessage() string { return *e.Message } func (e *EntityAlreadyRegisteredException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EntityAlreadyRegisteredException" } return *e.ErrorCodeOverride @@ -162,7 +162,7 @@ func (e *EntityNotFoundException) ErrorMessage() string { return *e.Message } func (e *EntityNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EntityNotFoundException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *EntityStateException) ErrorMessage() string { return *e.Message } func (e *EntityStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "EntityStateException" } return *e.ErrorCodeOverride @@ -217,7 +217,7 @@ func (e *InvalidConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidConfigurationException" } return *e.ErrorCodeOverride @@ -246,7 +246,7 @@ func (e *InvalidCustomSesConfigurationException) ErrorMessage() string { return *e.Message } func (e *InvalidCustomSesConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidCustomSesConfigurationException" } return *e.ErrorCodeOverride @@ -274,7 +274,7 @@ func (e *InvalidParameterException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterException" } return *e.ErrorCodeOverride @@ -301,7 +301,7 @@ func (e *InvalidPasswordException) ErrorMessage() string { return *e.Message } func (e *InvalidPasswordException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPasswordException" } return *e.ErrorCodeOverride @@ -327,7 +327,7 @@ func (e *LimitExceededException) ErrorMessage() string { return *e.Message } func (e *LimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LimitExceededException" } return *e.ErrorCodeOverride @@ -354,7 +354,7 @@ func (e *MailDomainInUseException) ErrorMessage() string { return *e.Message } func (e *MailDomainInUseException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MailDomainInUseException" } return *e.ErrorCodeOverride @@ -380,7 +380,7 @@ func (e *MailDomainNotFoundException) ErrorMessage() string { return *e.Message } func (e *MailDomainNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MailDomainNotFoundException" } return *e.ErrorCodeOverride @@ -407,7 +407,7 @@ func (e *MailDomainStateException) ErrorMessage() string { return *e.Message } func (e *MailDomainStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MailDomainStateException" } return *e.ErrorCodeOverride @@ -433,7 +433,7 @@ func (e *NameAvailabilityException) ErrorMessage() string { return *e.Message } func (e *NameAvailabilityException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "NameAvailabilityException" } return *e.ErrorCodeOverride @@ -460,7 +460,7 @@ func (e *OrganizationNotFoundException) ErrorMessage() string { return *e.Message } func (e *OrganizationNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OrganizationNotFoundException" } return *e.ErrorCodeOverride @@ -487,7 +487,7 @@ func (e *OrganizationStateException) ErrorMessage() string { return *e.Message } func (e *OrganizationStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OrganizationStateException" } return *e.ErrorCodeOverride @@ -513,7 +513,7 @@ func (e *ReservedNameException) ErrorMessage() string { return *e.Message } func (e *ReservedNameException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ReservedNameException" } return *e.ErrorCodeOverride @@ -539,7 +539,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -565,7 +565,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -591,7 +591,7 @@ func (e *UnsupportedOperationException) ErrorMessage() string { return *e.Message } func (e *UnsupportedOperationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedOperationException" } return *e.ErrorCodeOverride diff --git a/service/workmailmessageflow/types/errors.go b/service/workmailmessageflow/types/errors.go index e78b2d0fd81..2a2eb377d59 100644 --- a/service/workmailmessageflow/types/errors.go +++ b/service/workmailmessageflow/types/errors.go @@ -40,7 +40,7 @@ func (e *InvalidContentLocation) ErrorMessage() string { return *e.Message } func (e *InvalidContentLocation) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidContentLocation" } return *e.ErrorCodeOverride @@ -67,7 +67,7 @@ func (e *MessageFrozen) ErrorMessage() string { return *e.Message } func (e *MessageFrozen) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MessageFrozen" } return *e.ErrorCodeOverride @@ -94,7 +94,7 @@ func (e *MessageRejected) ErrorMessage() string { return *e.Message } func (e *MessageRejected) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MessageRejected" } return *e.ErrorCodeOverride @@ -120,7 +120,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/workspaces/types/errors.go b/service/workspaces/types/errors.go index 396fc167bf3..b9688fa0f5b 100644 --- a/service/workspaces/types/errors.go +++ b/service/workspaces/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -52,7 +52,7 @@ func (e *InvalidParameterValuesException) ErrorMessage() string { return *e.Message } func (e *InvalidParameterValuesException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidParameterValuesException" } return *e.ErrorCodeOverride @@ -78,7 +78,7 @@ func (e *InvalidResourceStateException) ErrorMessage() string { return *e.Message } func (e *InvalidResourceStateException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidResourceStateException" } return *e.ErrorCodeOverride @@ -105,7 +105,7 @@ func (e *OperationInProgressException) ErrorMessage() string { return *e.Message } func (e *OperationInProgressException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationInProgressException" } return *e.ErrorCodeOverride @@ -133,7 +133,7 @@ func (e *OperationNotSupportedException) ErrorMessage() string { return *e.Message } func (e *OperationNotSupportedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "OperationNotSupportedException" } return *e.ErrorCodeOverride @@ -159,7 +159,7 @@ func (e *ResourceAlreadyExistsException) ErrorMessage() string { return *e.Message } func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAlreadyExistsException" } return *e.ErrorCodeOverride @@ -185,7 +185,7 @@ func (e *ResourceAssociatedException) ErrorMessage() string { return *e.Message } func (e *ResourceAssociatedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceAssociatedException" } return *e.ErrorCodeOverride @@ -211,7 +211,7 @@ func (e *ResourceCreationFailedException) ErrorMessage() string { return *e.Message } func (e *ResourceCreationFailedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceCreationFailedException" } return *e.ErrorCodeOverride @@ -237,7 +237,7 @@ func (e *ResourceLimitExceededException) ErrorMessage() string { return *e.Message } func (e *ResourceLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceLimitExceededException" } return *e.ErrorCodeOverride @@ -265,7 +265,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -293,7 +293,7 @@ func (e *ResourceUnavailableException) ErrorMessage() string { return *e.Message } func (e *ResourceUnavailableException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceUnavailableException" } return *e.ErrorCodeOverride @@ -322,7 +322,7 @@ func (e *UnsupportedNetworkConfigurationException) ErrorMessage() string { return *e.Message } func (e *UnsupportedNetworkConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedNetworkConfigurationException" } return *e.ErrorCodeOverride @@ -353,7 +353,7 @@ func (e *UnsupportedWorkspaceConfigurationException) ErrorMessage() string { return *e.Message } func (e *UnsupportedWorkspaceConfigurationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "UnsupportedWorkspaceConfigurationException" } return *e.ErrorCodeOverride @@ -385,7 +385,7 @@ func (e *WorkspacesDefaultRoleNotFoundException) ErrorMessage() string { return *e.Message } func (e *WorkspacesDefaultRoleNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "WorkspacesDefaultRoleNotFoundException" } return *e.ErrorCodeOverride diff --git a/service/workspacesweb/types/errors.go b/service/workspacesweb/types/errors.go index 0195c58632e..694391897cc 100644 --- a/service/workspacesweb/types/errors.go +++ b/service/workspacesweb/types/errors.go @@ -26,7 +26,7 @@ func (e *AccessDeniedException) ErrorMessage() string { return *e.Message } func (e *AccessDeniedException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride @@ -55,7 +55,7 @@ func (e *ConflictException) ErrorMessage() string { return *e.Message } func (e *ConflictException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride @@ -83,7 +83,7 @@ func (e *InternalServerException) ErrorMessage() string { return *e.Message } func (e *InternalServerException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InternalServerException" } return *e.ErrorCodeOverride @@ -112,7 +112,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -143,7 +143,7 @@ func (e *ServiceQuotaExceededException) ErrorMessage() string { return *e.Message } func (e *ServiceQuotaExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ServiceQuotaExceededException" } return *e.ErrorCodeOverride @@ -173,7 +173,7 @@ func (e *ThrottlingException) ErrorMessage() string { return *e.Message } func (e *ThrottlingException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottlingException" } return *e.ErrorCodeOverride @@ -201,7 +201,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride @@ -230,7 +230,7 @@ func (e *ValidationException) ErrorMessage() string { return *e.Message } func (e *ValidationException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride diff --git a/service/xray/types/errors.go b/service/xray/types/errors.go index a90cfecfedf..39a157a5904 100644 --- a/service/xray/types/errors.go +++ b/service/xray/types/errors.go @@ -28,7 +28,7 @@ func (e *InvalidPolicyRevisionIdException) ErrorMessage() string { return *e.Message } func (e *InvalidPolicyRevisionIdException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidPolicyRevisionIdException" } return *e.ErrorCodeOverride @@ -54,7 +54,7 @@ func (e *InvalidRequestException) ErrorMessage() string { return *e.Message } func (e *InvalidRequestException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "InvalidRequestException" } return *e.ErrorCodeOverride @@ -81,7 +81,7 @@ func (e *LockoutPreventionException) ErrorMessage() string { return *e.Message } func (e *LockoutPreventionException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "LockoutPreventionException" } return *e.ErrorCodeOverride @@ -107,7 +107,7 @@ func (e *MalformedPolicyDocumentException) ErrorMessage() string { return *e.Message } func (e *MalformedPolicyDocumentException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "MalformedPolicyDocumentException" } return *e.ErrorCodeOverride @@ -134,7 +134,7 @@ func (e *PolicyCountLimitExceededException) ErrorMessage() string { return *e.Message } func (e *PolicyCountLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PolicyCountLimitExceededException" } return *e.ErrorCodeOverride @@ -160,7 +160,7 @@ func (e *PolicySizeLimitExceededException) ErrorMessage() string { return *e.Message } func (e *PolicySizeLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "PolicySizeLimitExceededException" } return *e.ErrorCodeOverride @@ -189,7 +189,7 @@ func (e *ResourceNotFoundException) ErrorMessage() string { return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride @@ -215,7 +215,7 @@ func (e *RuleLimitExceededException) ErrorMessage() string { return *e.Message } func (e *RuleLimitExceededException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "RuleLimitExceededException" } return *e.ErrorCodeOverride @@ -241,7 +241,7 @@ func (e *ThrottledException) ErrorMessage() string { return *e.Message } func (e *ThrottledException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "ThrottledException" } return *e.ErrorCodeOverride @@ -269,7 +269,7 @@ func (e *TooManyTagsException) ErrorMessage() string { return *e.Message } func (e *TooManyTagsException) ErrorCode() string { - if e.ErrorCodeOverride == nil { + if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride